THistoryRecordStruct[] hrs = new THistoryRecordStruct[1];
THistorySpecification hsp = new THistorySpecification(pollInterval, archInterval, depthShort, depthLong, heartBeat, pTolerance, aTolerance, null);
hrs[0] = new THistoryRecordStruct(device, property, datasiz, datafmt, hsp);
String dev = "/"+context+"/"+server;
TLink lnk = new TLink(dev,"ADDHISTORY",null,new TDataType(hrs),TAccess.CA_WRITE);
return lnk.executeAndClose();
}
public static String[] getLocalHistoryProperties(String context,String server,String device)
{
int[] n = new int[1];
String dev = "/"+context+"/"+server;