예제 #1
0
 public FakeQueueSnapshot1(ulong total, int number)
 {
     Identifier = $"Queue{number}";
     Node       = "Node0";
     Messages   = new QueueChurnMetricsImpl(total);
     Memory     = new QueueMemoryDetailsImpl(total);
 }
예제 #2
0
 public QueueSnapshotImpl(QueueInfo queue)
 {
     Identifier          = queue.Name;
     VirtualHost         = queue.VirtualHost;
     Node                = queue.Node;
     Messages            = new QueueChurnMetricsImpl(queue);
     Memory              = new QueueMemoryDetailsImpl(queue);
     Consumers           = queue.Consumers;
     ConsumerUtilization = queue.ConsumerUtilization;
     IdleSince           = queue.IdleSince;
 }
예제 #3
0
 public FakeQueueSnapshot4(ulong total)
 {
     Memory = new QueueMemoryDetailsImpl(total);
 }