62 lines
1.2 KiB
C++
62 lines
1.2 KiB
C++
/*********************************************************************
|
|
*
|
|
* file: ZioICEI
|
|
*
|
|
* copyright: Shanghai Baosight Software Co., Ltd.
|
|
*
|
|
* author: zoufuzhou
|
|
*********************************************************************/
|
|
#ifndef __ZIO_ICEI_h__
|
|
#define __ZIO_ICEI_h__
|
|
|
|
#include <proxy/MessageICE.h>
|
|
#include <zio/FileJson.h>
|
|
#include <common/BasicStruct.h>
|
|
#include <zlib/MemCachedClient.h>
|
|
#include <base/TCMTime.h>
|
|
|
|
namespace baosight
|
|
{
|
|
|
|
class ZioICEI : virtual public MessageICE
|
|
{
|
|
public:
|
|
ZioICEI();
|
|
~ZioICEI();
|
|
|
|
public:
|
|
|
|
|
|
virtual void SendDataShort(::Ice::Int ,
|
|
const ::Ice::ByteSeq& ,
|
|
::Ice::Int ,
|
|
const Ice::Current&);
|
|
|
|
virtual void SendDataLong(::Ice::Int,
|
|
const ::Ice::ByteSeq&,
|
|
::Ice::Int,
|
|
const ::std::string&,
|
|
const ::std::string&,
|
|
const ::std::string&,
|
|
const Ice::Current&);
|
|
|
|
virtual void TimeNotify(::Ice::Int,
|
|
const ::Ice::ByteSeq&,
|
|
const Ice::Current&);
|
|
|
|
protected:
|
|
short Proxy(int eventNo,const string& proxyName, const char* keyValue,int length);
|
|
|
|
private:
|
|
FileJson* p_file;
|
|
FileJson* p_file_pdi;
|
|
MemCachedClient m_mc;
|
|
MessageICEPrx zdb_proxy;
|
|
TCMTime prewrite;
|
|
bool status;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|