00001 #ifndef SERVICESTATUS_H
00002 #define SERVICESTATUS_H
00003
00004 #include <is/isinfo.h>
00005
00006
00007
00008
00015 class ServiceStatus: public ISInfo {
00016 public:
00017
00020 unsigned long done;
00021
00024 unsigned long queue;
00025
00028 float averageTimeEach;
00029
00032 float timeLeft;
00033
00034
00035 ServiceStatus( )
00036 : ISInfo( "ServiceStatus" )
00037 {
00038 done = 0;
00039 queue = 0;
00040 averageTimeEach = 0;
00041 timeLeft = 0;
00042
00043
00044
00045
00046 }
00047
00048 ~ServiceStatus(){
00049
00050
00051
00052
00053 }
00054
00055 protected:
00056 ServiceStatus( const char * type )
00057 : ISInfo( type )
00058 {
00059 done = 0;
00060 queue = 0;
00061 averageTimeEach = 0;
00062 timeLeft = 0;
00063
00064
00065
00066
00067 }
00068
00069 void publishGuts( ISostream & out ){
00070 out << done << queue << averageTimeEach << timeLeft;
00071 }
00072
00073 void refreshGuts( ISistream & in ){
00074 in >> done >> queue >> averageTimeEach >> timeLeft;
00075 }
00076
00077
00078
00079
00080 };
00081
00082
00083
00084
00085 #endif // SERVICESTATUS_H