/// <summary> /// Reduce el tamaño de las listas a la minima expresion posible, /// para asi optimizar la memoria, las transferncias por red y el /// almacenamiento en disco del estado de dispositivo. /// Este metodo es convocado automaticamente por la infraestructura /// del spine. /// </summary> public void Shrink() { FlashCounter.Shrink(); CrapReceivedCounter.Shrink(); StatesChanges.Shrink(); PERMANENTCounter.Shrink(); MAINTCounter.Shrink(); OFFLINECounter.Shrink(); CONNECTEDCounter.Shrink(); ONLINECounter.Shrink(); ONNETCounter.Shrink(); SHUTDOWNCounter.Shrink(); SYNCINGCounter.Shrink(); OUTOFSERVICECounter.Shrink(); //TransitionTrend.Shrink(); AverageConnectedTime.Shrink(); }
} // v2 //public Toolkit.TransitionTrend<ServiceStates> TransitionTrend { get; private set; } public void ResetCounters() { FlashCounter.Reset(); CrapReceivedCounter.Reset(); StatesChanges.Reset(); PERMANENTCounter.Reset(); MAINTCounter.Reset(); OFFLINECounter.Reset(); CONNECTEDCounter.Reset(); ONLINECounter.Reset(); ONNETCounter.Reset(); SHUTDOWNCounter.Reset(); SYNCINGCounter.Reset(); OUTOFSERVICECounter.Reset(); //TransitionTrend.Reset(); STrace.Debug(GetType().FullName, String.Format("DEVICE['{0}'/{1}]: Reseteando contadores.", Code, Id)); AverageConnectedTime.Reset(); RequireCommit = true; }