// **********************************************************************
|
//
|
// Copyright (c) 2008-2023 VCI-Tech, Inc. All rights reserved.
|
//
|
// This copy of Ice is licensed to you under the terms described the
|
// ICE_LICENSE file included this distribution.
|
//
|
// **********************************************************************
|
|
#pragma once
|
|
#include "01-common.ice"
|
|
[["java:package:com.vci.corba"]]
|
["cs:namespace:com.vci.corba"]
|
|
// module com {
|
// module vci {
|
// module corba {
|
module cache{
|
// 缓存对象修改记录
|
struct PLCacheRecord {
|
string id; // 记录ID
|
string objId; // 对象ID
|
string objType; // 对象类型
|
string operateType; // 操作类型
|
long time; // 操作时间
|
};
|
sequence<PLCacheRecord> PLCacheRecordArray;
|
|
interface CacheService{
|
// 记录修改信息
|
string recordModifyInfo(string objType, string objId, string operate) throws common::VCIError;
|
//添加属性项
|
bool reloadCache()throws common::VCIError;
|
//
|
void resetObjType(string type) throws common::VCIError;
|
// 获取指定类型修改记录
|
PLCacheRecordArray getAllRecordByType(string objType) throws common::VCIError;
|
// 获取指定类型在指定时间之后的修改记录
|
PLCacheRecordArray getRecordByType(string objType, long time) throws common::VCIError;
|
// 清空所有类型的修改记录
|
bool clearModifyRecord() throws common::VCIError;
|
// 清空指定类型的修改记录
|
bool clearModifyRecordByType(string objType) throws common::VCIError;
|
// 获取数据库服务器时间
|
long getDBCurrentTime() throws common::VCIError;
|
}
|
}
|
// }}}
|