Beispiel #1
0
        public bool ServiceStart()
        {
            SentBytes     = new Gauge64();
            SentMessages  = new Gauge64();
            ReceivedBytes = new Gauge64();

            _outChannel = new PipelineChannel();
            _outChannel.Setup(_remoteUri, _localUri, _contextThreads);
            _outChannel.MessageReceived += OutChannelMessageReceived;
            _outChannel.Start();
            return(true);
        }
 private void FixVersion1()
 {
     Organization        = "";
     FlashCounter        = new Gauge64();
     CrapReceivedCounter = new Gauge64();
     StatesChanges       = new Gauge64();
     PERMANENTCounter    = new Gauge64();
     MAINTCounter        = new Gauge64();
     OFFLINECounter      = new Gauge64();
     CONNECTEDCounter    = new Gauge64();
     ONLINECounter       = new Gauge64();
     ONNETCounter        = new Gauge64();
     SHUTDOWNCounter     = new Gauge64();
     SYNCINGCounter      = new Gauge64();
     OUTOFSERVICECounter = new Gauge64();
     //TransitionTrend = new Toolkit.TransitionTrend<ServiceStates>();
     AverageConnectedTime = new ArithmeticMean(32);
 }
 private void Version2(SerializationInfo info)
 {
     Version1(info);
     Organization        = info.GetString((ObjectVersion < 6 ? "District" : "Organization"));
     FlashCounter        = new Gauge64((Counter64)info.GetValue("FlashCounter", typeof(Counter64)));
     CrapReceivedCounter = new Gauge64((Counter64)info.GetValue("CrapReceivedCounter", typeof(Counter64)));
     StatesChanges       = new Gauge64((Counter64)info.GetValue("StatesChanges", typeof(Counter64)));
     PERMANENTCounter    = new Gauge64((Counter64)info.GetValue("PERMANENTCounter", typeof(Counter64)));
     MAINTCounter        = new Gauge64((Counter64)info.GetValue("MAINTCounter", typeof(Counter64)));
     OFFLINECounter      = new Gauge64((Counter64)info.GetValue("OFFLINECounter", typeof(Counter64)));
     CONNECTEDCounter    = new Gauge64((Counter64)info.GetValue("CONNECTEDCounter", typeof(Counter64)));
     ONLINECounter       = new Gauge64((Counter64)info.GetValue("ONLINECounter", typeof(Counter64)));
     ONNETCounter        = new Gauge64((Counter64)info.GetValue("ONNETCounter", typeof(Counter64)));
     SHUTDOWNCounter     = new Gauge64((Counter64)info.GetValue("SHUTDOWNCounter", typeof(Counter64)));
     SYNCINGCounter      = new Gauge64((Counter64)info.GetValue("SYNCINGCounter", typeof(Counter64)));
     OUTOFSERVICECounter = new Gauge64((Counter64)info.GetValue("STOCKCounter", typeof(Counter64)));
     //TransitionTrend = (Toolkit.TransitionTrend<ServiceStates>)info.GetValue("TransitionTrend", typeof(Toolkit.TransitionTrend<ServiceStates>));
     AverageConnectedTime = new ArithmeticMean(32);
 }
Beispiel #4
0
 // constructor utilizado al crear la base de datos
 public DeviceState(short id, States initial_state)
 {
     STrace.Debug(GetType().FullName, String.Format("DEVICE_STATE: constructor de ALTA id={0}.", id));
     Id                  = id;
     ServiceState        = initial_state;
     QTreeState          = DeviceTypes.QTreeStates.UNKNOWN;
     firstActivity       = DateTime.MinValue;
     LastCommit          = DateTime.MinValue;
     FlashCounter        = new Gauge64();
     CrapReceivedCounter = new Gauge64();
     StatesChanges       = new Gauge64();
     PERMANENTCounter    = new Gauge64();
     MAINTCounter        = new Gauge64();
     OFFLINECounter      = new Gauge64();
     CONNECTEDCounter    = new Gauge64();
     ONLINECounter       = new Gauge64();
     ONNETCounter        = new Gauge64();
     SHUTDOWNCounter     = new Gauge64();
     SYNCINGCounter      = new Gauge64();
     OUTOFSERVICECounter = new Gauge64();
     //TransitionTrend     = new Toolkit.TransitionTrend<ServiceStates>();
     AverageConnectedTime = new ArithmeticMean(32);
 }
 public UnderlayingNetworkLayerUDP()
 {
     SentBytes     = new Gauge64();
     ReceivedBytes = new Gauge64();
 }