예제 #1
0
 public FakeNodeSnapshot()
 {
     NetworkPartitions = new List <string>
     {
         "node1@rabbitmq",
         "node2@rabbitmq",
         "node3@rabbitmq"
     };
     Runtime = new FakeBrokerRuntimeSnapshot(38, 36, 5.3M);
     Disk    = new FakeDiskSnapshot(8, true, 5.5M);
     Memory  = new FakeMemorySnapshot(273, 270, true);
     OS      = new OperatingSystemSnapshotImpl(100, 90, 5.5M);
     AvailableCoresDetected = 1;
 }
예제 #2
0
 public NodeSnapshotImpl(SystemOverviewInfo systemOverview, NodeInfo node)
 {
     Identifier        = node.Name;
     Uptime            = node.Uptime;
     ClusterIdentifier = systemOverview.ClusterName;
     OS                     = new OperatingSystemSnapshotImpl(node);
     Runtime                = new BrokerRuntimeSnapshotImpl(systemOverview, node);
     ContextSwitching       = new ContextSwitchDetailsImpl(node);
     Disk                   = new DiskSnapshotImpl(node);
     NetworkPartitions      = node.Partitions.ToList();
     AvailableCoresDetected = node.AvailableCoresDetected;
     Memory                 = new MemorySnapshotImpl(node);
     IsRunning              = node.IsRunning;
     InterNodeHeartbeat     = node.NetworkTickTime;
 }
예제 #3
0
 public FakeNodeSnapshot1(ulong availableSockets, ulong usedSockets, decimal socketUsageRate)
 {
     OS = new OperatingSystemSnapshotImpl(availableSockets, usedSockets, socketUsageRate);
 }