Package sk.ipesoft.d2000.sysobj
Class BaseRunnable
- java.lang.Object
-
- sk.ipesoft.d2000.base.D2Base
-
- sk.ipesoft.d2000.sysobj.CommonRunnable
-
- sk.ipesoft.d2000.sysobj.PlatformRunnable
-
- sk.ipesoft.d2000.sysobj.BaseRunnable
-
- All Implemented Interfaces:
java.lang.Comparable
,IRunnableCommon
- Direct Known Subclasses:
AppRunnable
public abstract class BaseRunnable extends PlatformRunnable implements IRunnableCommon
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BaseRunnable.LogPriority
-
Field Summary
-
Fields inherited from class sk.ipesoft.d2000.base.D2Base
__col, __hobj, __indirectCol, __indirectHOBJ, __indirectRow, __internalId, __locVarId, __row
-
-
Constructor Summary
Constructors Constructor Description BaseRunnable(int eventId, int hobj, int locVarId, int row, int col, int instanceId)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addNoteNotificationListener(INoteNotificationListener listener)
boolean
authUser(java.lang.String userName, java.lang.String pwdMD)
Corresponds to ESL function %AuthUserint
calcStatFuncArr(D2Base archobj, int row, int col, java.util.Date startTime, java.util.Date endTime, int step, int deepTime, StatFunction statFunc, int validPerc, double param, ColumnBase dstValuesCol, int archiveInstance)
Corresponds to ESL action CALCSTATFUNCARRvoid
callESLAsync(D2Process procIdent, SOCallable pict, int instance, java.lang.String procName, D2Base... params)
Corresponds to ESL action CALL ASYNCvoid
callESLAsync(D2Process procIdent, SOCallable pict, int instance, D2Base eslInterface, java.lang.String procName, D2Base... params)
void
callESLAsync(SOCallable pict, java.lang.String procName, int instance, D2Process procIdent, D2Base... params)
Deprecated.ConversationContext
callESLAsync_B(ConversationListener cctx, D2Process procIdent, SOCallable pict, int instance, java.lang.String procName, D2Base... params)
ConversationContext
callESLAsync_B(ConversationListener cctx, D2Process procIdent, SOCallable pict, int instance, D2Base eslInterface, java.lang.String procName, D2Base... params)
void
callESLAsync_BE(ConversationListener cctx, D2Process procIdent, SOCallable pict, int instance, java.lang.String procName, D2Base... params)
void
callESLAsync_BE(ConversationListener cctx, D2Process procIdent, SOCallable pict, int instance, D2Base eslInterface, java.lang.String procName, D2Base... params)
void
callESLSync(D2Process procIdent, SOCallable pict, int instance, java.lang.String procName, D2Base... params)
Corresponds to ESL action CALL SYNCvoid
callESLSync(D2Process procIdent, SOCallable pict, int instance, D2Base eslInterface, java.lang.String procName, D2Base... params)
void
callESLSync(SOCallable pict, java.lang.String procName, int instance, D2Process procIdent, D2Base... params)
Deprecated.void
callJavaAsync(D2Process procIdent, SOCallable pict, int instance, java.lang.String procName, D2Base... params)
Corresponds to ESL action CALLJ ASYNCvoid
callJavaAsync(SOCallable pict, java.lang.String procName, int instance, D2Process procIdent, D2Base[] params)
Deprecated.ConversationContext
callJavaAsync_B(ConversationListener cctx, D2Process procIdent, SOCallable pict, int instance, java.lang.String procName, D2Base... params)
void
callJavaAsync_BE(ConversationListener cctx, D2Process procIdent, SOCallable pict, int instance, java.lang.String procName, D2Base... params)
void
callJavaSync(D2Process procIdent, SOCallable pict, int instance, java.lang.String procName, D2Base... params)
Corresponds to ESL action CALLJ SYNCvoid
callJavaSync(SOCallable pict, java.lang.String procName, int instance, D2Process procIdent, D2Base... params)
Deprecated.java.lang.String
createPictureNote(int picture_bhbj, int picture_l_inst, java.util.Date btime, java.util.Date etime, int effective_before, int effective_after, java.lang.String text, java.lang.String author)
D2SD
createStructOfType(int hobj)
Create instance of struct.D2SD
createStructOfType(java.lang.String name)
Create instance of struct.DBTrans
dbTransOpen(SODatabase database)
Corresponds to ESL action DB_TRANS_OPENDBTrans
dbTransOpen(SODBTable dbtable)
void
deleteArchiveValuesAsync(D2Base obj, int row, int col, java.util.Date beginTime, java.util.Date endTime, boolean recalc)
void
deleteArchiveValuesSync(D2Base obj, int row, int col, java.util.Date beginTime, java.util.Date endTime, boolean recalc)
D2Base
fromString(java.lang.String value, SOStatusText statusText)
AbortSignal
getAbortSignal()
java.lang.String
getAccess(java.lang.String name)
Corresponds to ESL action GETACCESS, only global version (PUBLIC).java.lang.String
getAccess(java.lang.String name, java.lang.String description)
Corresponds to ESL action GETACCESS, only global version (PUBLIC).AccessLevel
getAccessLevel(D2Base object)
Corresponds to ESL function %GetAccessLevelAccessLevel
getAccessLevel(D2Base object, D2Base accessingObject)
Corresponds to ESL function %GetAccessLeveljava.lang.String
getApplDir()
Corresponds to ESL function %GetApplDirint
getArchArr(D2Base archobj, int row, int col, ColumnBase dstValuesStr, ColumnBase dstFlagsStr, java.util.Date startTime, java.util.Date endTime, int oversampleStep, int maxData)
Corresponds to ESL actions GETARCHARRint
getArchArr(D2Base archobj, int row, int col, D2SD dstValuesStr, int dstValueCol, D2SD dstFlagsStr, int dstFlagsCol, java.util.Date startTime, java.util.Date endTime, int oversampleStep, int maxData)
Deprecated.void
getArchiveStruct(D2SD obj, D2SD dst, java.util.Date time)
Corresponds to ESL action GETARCHSTRUCTArchiveReadResult
getArchiveValues(D2Base archobj, int row, int col, ColumnBase dstValuesStr, ColumnBase dstFlagsStr, java.util.Date startTime, java.util.Date endTime, int oversampleStep, int maxData)
Corresponds to ESL actions GETARCHARR, GETARCHROW, GETARCHCOL, GETARCHARR_TO_CNTArchiveValues[]
getArchiveValues(ArchiveRequest... archarr)
Corresponds to ESL actions GETARCHARR, GETARCHROW, GETARCHCOLSOUser
getCurrentUser()
Corresponds to ESL function %GetUserObjNameSOProcess
getHostProcess()
Corresponds to ESL function %GetParentProcessHBJjava.lang.String
getInstallDir()
Corresponds to ESL function %GetInstallDirjava.lang.String
getMetadata(java.lang.String key)
Corresponds to ESL function %HI_GetMetadataD2Base
getObjectByHOBJ(int hobj)
Returns object from hobjD2Base
getObjectByName(java.lang.String name)
Returns object from nameD2Base[]
getObjectsByHOBJ(int... hobjs)
Returns objects array from hobjs arrayD2Base[]
getObjectsByName(java.lang.String... names)
Returns objects array from object names arrayjava.lang.String
getUserObjName()
Deprecated.java.util.Date
getUserPasswordExpirationTime(int userHOBJ)
java.util.Date
getUserPasswordExpirationTime(java.lang.String username)
void
insertArchArrAsync(D2Base archobj, int row, int col, D2Base[] values, boolean recalcStats)
void
insertArchArrSync(D2Base archobj, int row, int col, D2Base[] values, boolean recalcStats)
int
lngGetCurrLngIdx()
Corresponds to ESL function %LNG_GetCurrLngIdxjava.lang.String
lngTranslate(java.lang.String str)
Corresponds to ESL function %LNG_Translatejava.lang.String
lngTranslate(java.lang.String str, int lngIdx)
Corresponds to ESL function %LNG_Translatevoid
log(java.lang.String message, BaseRunnable.LogPriority priority, boolean addLineNumber)
Corresponds to ESL action LOGEXvoid
onEnd()
Corresponds to ESL action ENDvoid
onInit()
Corresponds to ESL action BEGIND2Base
openObjectByHOBJ(int hobj)
Corresponds to ESL function OpenObject [D2000 ObjAPI]D2Base
openObjectByName(java.lang.String name)
Corresponds to ESL function OpenObject [D2000 ObjAPI]void
releaseAccess(java.lang.String name)
Corresponds to ESL action RELEASEACCESS, only global version (PUBLIC).void
removeNoteNotificationListener(INoteNotificationListener listener)
byte[]
sendByteArray(D2Process procIdent, SOCallable pict, int instance, java.lang.String procName, byte[] byteArray)
Deprecated.byte[]
sendByteArray(SOCallable pict, java.lang.String procName, int instance, D2Process procIdent, byte[] byteArray)
Deprecated.void
sendByteArrayAsync(D2Process procIdent, SOCallable pict, int instance, java.lang.String procName, byte[] byteArray)
RPC call with byte array param ASYNCbyte[]
sendByteArraySync(D2Process procIdent, SOCallable pict, int instance, java.lang.String procName, byte[] byteArray)
RPC call with byte array param SYNCvoid
serverGetFile(java.lang.String srcServerPath, java.lang.String dstClientPath)
void
serverSetFile(java.lang.String srcClientPath, java.lang.String dstServerPath)
void
startTimer(long intervalMS, ITimerListener listener)
Corresponds to entry OnTimervoid
startTimer(ITimerListener listener, long intervalMS)
Deprecated.void
updatePictureNote(java.lang.String note_uuid, boolean valid, java.util.Date btime, java.util.Date etime, int effective_before, int effective_after, java.lang.String text, java.lang.String author)
java.lang.String
valueToString(D2Base value, int idxTransPal)
Corresponds to ESL function %HI_To_Stringjava.lang.String
valueToString(D2Base value, SOStatusText statusText)
Corresponds to ESL function %HI_To_Stringjava.lang.String
valueToString(D2Base value, SOStatusText statusText, int idxTransPal)
Corresponds to ESL function %HI_To_String-
Methods inherited from class sk.ipesoft.d2000.sysobj.PlatformRunnable
exportCSV, exportCSV, exportCSV, isTCLEnvironment
-
Methods inherited from class sk.ipesoft.d2000.sysobj.CommonRunnable
leftStr, makeRGB, realToStr, realToStr, rightStr, round
-
Methods inherited from class sk.ipesoft.d2000.base.D2Base
add, addChangeListener, addFlags, asUnivalValue, compareTo, divide, equals, equals, getCol, getFlag, getFlagMask, getFlags, getHOBJ, getLimitStatus, getLimitStatusOrdinal, getLocVarId, getObjectInfo, getProcessAlarmStatus, getProcessAlarmStatusOrdinal, getProcessAlarmTime, getProcessAlarmTimeMiliseconds, getReferencedCol, getReferencedHOBJ, getReferencedRow, getRow, getStatusMask, getTime, getTimeMiliseconds, getTimeMilliseconds, getUnivalObjectReference, getValid, getValueType, getWeak, is, isBackedExternally, isFromAda, isStatusSet, isValid, multiply, removeChangeListener, removeFlags, setAs, setData, setFlag, setFlag, setFlags, setFlags, setIndirect, setInvalid, setLocVarId, setTime, setTimeMiliseconds, setTimeMilliseconds, setVal, setVal, setWeak, setWeak, substract, toString
-
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface sk.ipesoft.d2000.sysobj.IRunnableCommon
closeDirect, isTCLEnvironment
-
-
-
-
Field Detail
-
STATUS_Valid
public static final int STATUS_Valid
-
STATUS_ProcAlarm
public static final int STATUS_ProcAlarm
-
STATUS_NoAckPAlarm
public static final int STATUS_NoAckPAlarm
-
STATUS_PrAlSilent
public static final int STATUS_PrAlSilent
-
STATUS_Weak
public static final int STATUS_Weak
-
STATUS_NoAckValue
public static final int STATUS_NoAckValue
-
STATUS_Transient
public static final int STATUS_Transient
-
STATUS_Default
public static final int STATUS_Default
-
STATUS_Manual
public static final int STATUS_Manual
-
STATUS_AlCrit
public static final int STATUS_AlCrit
-
STATUS_Unknown
public static final int STATUS_Unknown
-
LIMITSTATUS_InLimit
public static final int LIMITSTATUS_InLimit
-
LIMITSTATUS_VL_Limit
public static final int LIMITSTATUS_VL_Limit
-
LIMITSTATUS_L_Limit
public static final int LIMITSTATUS_L_Limit
-
LIMITSTATUS_H_Limit
public static final int LIMITSTATUS_H_Limit
-
LIMITSTATUS_VH_Limit
public static final int LIMITSTATUS_VH_Limit
-
LIMITSTATUS_LimitsProblem
public static final int LIMITSTATUS_LimitsProblem
-
PROCALARMSTATUS_NoAlarm
public static final int PROCALARMSTATUS_NoAlarm
-
PROCALARMSTATUS_ToOn
public static final int PROCALARMSTATUS_ToOn
-
PROCALARMSTATUS_ToOff
public static final int PROCALARMSTATUS_ToOff
-
PROCALARMSTATUS_On
public static final int PROCALARMSTATUS_On
-
PROCALARMSTATUS_Off
public static final int PROCALARMSTATUS_Off
-
PROCALARMSTATUS_Err
public static final int PROCALARMSTATUS_Err
-
PROCALARMSTATUS_Oscillate
public static final int PROCALARMSTATUS_Oscillate
-
PROCALARMSTATUS_ErrCmdOn
public static final int PROCALARMSTATUS_ErrCmdOn
-
PROCALARMSTATUS_ErrCmdOff
public static final int PROCALARMSTATUS_ErrCmdOff
-
PROCALARMSTATUS_SwToTrans
public static final int PROCALARMSTATUS_SwToTrans
-
PROCALARMSTATUS_SwToOff
public static final int PROCALARMSTATUS_SwToOff
-
PROCALARMSTATUS_SwToOn
public static final int PROCALARMSTATUS_SwToOn
-
PROCALARMSTATUS_SwToErr
public static final int PROCALARMSTATUS_SwToErr
-
PROCALARMSTATUS_SwTrans
public static final int PROCALARMSTATUS_SwTrans
-
PROCALARMSTATUS_SwOff
public static final int PROCALARMSTATUS_SwOff
-
PROCALARMSTATUS_SwOn
public static final int PROCALARMSTATUS_SwOn
-
PROCALARMSTATUS_SwErr
public static final int PROCALARMSTATUS_SwErr
-
PROCALARMSTATUS_ErrZalCmdOff
public static final int PROCALARMSTATUS_ErrZalCmdOff
-
PROCALARMSTATUS_HL
public static final int PROCALARMSTATUS_HL
-
PROCALARMSTATUS_VHL
public static final int PROCALARMSTATUS_VHL
-
PROCALARMSTATUS_LL
public static final int PROCALARMSTATUS_LL
-
PROCALARMSTATUS_VLL
public static final int PROCALARMSTATUS_VLL
-
PROCALARMSTATUS_ToHL
public static final int PROCALARMSTATUS_ToHL
-
PROCALARMSTATUS_ToVHL
public static final int PROCALARMSTATUS_ToVHL
-
PROCALARMSTATUS_ToLL
public static final int PROCALARMSTATUS_ToLL
-
PROCALARMSTATUS_ToVLL
public static final int PROCALARMSTATUS_ToVLL
-
PROCALARMSTATUS_ErrWriteCmd
public static final int PROCALARMSTATUS_ErrWriteCmd
-
PROCALARMSTATUS_Change
public static final int PROCALARMSTATUS_Change
-
PROCALARMSTATUS_A29
public static final int PROCALARMSTATUS_A29
-
PROCALARMSTATUS_A30
public static final int PROCALARMSTATUS_A30
-
PROCALARMSTATUS_A31
public static final int PROCALARMSTATUS_A31
-
PROCALARMSTATUS_SysPrAl
public static final int PROCALARMSTATUS_SysPrAl
-
FLAG_A
@Deprecated public static final int FLAG_A
Deprecated.- See Also:
- Constant Field Values
-
FLAG_B
@Deprecated public static final int FLAG_B
Deprecated.- See Also:
- Constant Field Values
-
FLAG_C
@Deprecated public static final int FLAG_C
Deprecated.- See Also:
- Constant Field Values
-
FLAG_D
@Deprecated public static final int FLAG_D
Deprecated.- See Also:
- Constant Field Values
-
FLAG_E
@Deprecated public static final int FLAG_E
Deprecated.- See Also:
- Constant Field Values
-
FLAG_F
@Deprecated public static final int FLAG_F
Deprecated.- See Also:
- Constant Field Values
-
FLAG_G
@Deprecated public static final int FLAG_G
Deprecated.- See Also:
- Constant Field Values
-
FLAG_H
@Deprecated public static final int FLAG_H
Deprecated.- See Also:
- Constant Field Values
-
FLAG_I
@Deprecated public static final int FLAG_I
Deprecated.- See Also:
- Constant Field Values
-
FLAG_J
@Deprecated public static final int FLAG_J
Deprecated.- See Also:
- Constant Field Values
-
FLAG_K
@Deprecated public static final int FLAG_K
Deprecated.- See Also:
- Constant Field Values
-
ARCFLAG_START
public static final int ARCFLAG_START
- See Also:
- Constant Field Values
-
ARCFLAG_STOP
public static final int ARCFLAG_STOP
- See Also:
- Constant Field Values
-
ARCFLAG_BLOCK
public static final int ARCFLAG_BLOCK
- See Also:
- Constant Field Values
-
ARCFLAG_UNBLOCK
public static final int ARCFLAG_UNBLOCK
- See Also:
- Constant Field Values
-
ARCFLAG_DELETED
public static final int ARCFLAG_DELETED
- See Also:
- Constant Field Values
-
ARCFLAG_USERMODIFY
public static final int ARCFLAG_USERMODIFY
- See Also:
- Constant Field Values
-
ARCFLAG_OLDVAL
public static final int ARCFLAG_OLDVAL
- See Also:
- Constant Field Values
-
ARCFLAG_PROCESMODIFY
public static final int ARCFLAG_PROCESMODIFY
- See Also:
- Constant Field Values
-
ARCFLAG_LOADDATA
public static final int ARCFLAG_LOADDATA
- See Also:
- Constant Field Values
-
ARCFLAG_MONO_TIME
public static final int ARCFLAG_MONO_TIME
- See Also:
- Constant Field Values
-
ARCFLAG_K
public static final int ARCFLAG_K
- See Also:
- Constant Field Values
-
ARCFLAG_L
public static final int ARCFLAG_L
- See Also:
- Constant Field Values
-
ARCFLAG_M
public static final int ARCFLAG_M
- See Also:
- Constant Field Values
-
ARCFLAG_N
public static final int ARCFLAG_N
- See Also:
- Constant Field Values
-
ARCFLAG_O
public static final int ARCFLAG_O
- See Also:
- Constant Field Values
-
ARCFLAG_VER1
public static final int ARCFLAG_VER1
- See Also:
- Constant Field Values
-
OM_NORMAL
public static final int OM_NORMAL
- See Also:
- Constant Field Values
-
OM_DLG
public static final int OM_DLG
- See Also:
- Constant Field Values
-
OM_MODAL
public static final int OM_MODAL
- See Also:
- Constant Field Values
-
_ERR_ARCHIV_NOT_RUNNING
public static final int _ERR_ARCHIV_NOT_RUNNING
- See Also:
- Constant Field Values
-
_DB_READ
public static final int _DB_READ
- See Also:
- Constant Field Values
-
_DB_MODIFY
public static final int _DB_MODIFY
- See Also:
- Constant Field Values
-
_defaultTrans
public DBTrans _defaultTrans
-
-
Method Detail
-
onInit
public void onInit()
Corresponds to ESL action BEGIN
-
onEnd
public void onEnd()
Corresponds to ESL action END
-
getAccessLevel
public AccessLevel getAccessLevel(D2Base object)
Corresponds to ESL function %GetAccessLevel
-
getAccessLevel
public AccessLevel getAccessLevel(D2Base object, D2Base accessingObject)
Corresponds to ESL function %GetAccessLevel
-
callESLAsync
public final void callESLAsync(D2Process procIdent, SOCallable pict, int instance, D2Base eslInterface, java.lang.String procName, D2Base... params)
-
callESLAsync_BE
public final void callESLAsync_BE(ConversationListener cctx, D2Process procIdent, SOCallable pict, int instance, D2Base eslInterface, java.lang.String procName, D2Base... params)
-
callESLAsync_B
public final ConversationContext callESLAsync_B(ConversationListener cctx, D2Process procIdent, SOCallable pict, int instance, D2Base eslInterface, java.lang.String procName, D2Base... params)
-
callESLSync
public final void callESLSync(D2Process procIdent, SOCallable pict, int instance, D2Base eslInterface, java.lang.String procName, D2Base... params) throws ExceptionRPCAbort, ExceptionRPCNotFound, ExceptionRPCNotRunning, ExceptionRPCParameterError, ExceptionRPCRemoteException
-
callESLSync
@Deprecated public final void callESLSync(SOCallable pict, java.lang.String procName, int instance, D2Process procIdent, D2Base... params)
Deprecated.
-
callESLSync
public final void callESLSync(D2Process procIdent, SOCallable pict, int instance, java.lang.String procName, D2Base... params) throws ExceptionRPCAbort, ExceptionRPCNotFound, ExceptionRPCNotRunning, ExceptionRPCParameterError, ExceptionRPCRemoteException
Corresponds to ESL action CALL SYNC- Parameters:
procIdent
-pict
-instance
-procName
-params
-- Throws:
ExceptionRPCAbort
ExceptionRPCNotFound
ExceptionRPCNotRunning
ExceptionRPCParameterError
ExceptionRPCRemoteException
-
callESLAsync_B
public final ConversationContext callESLAsync_B(ConversationListener cctx, D2Process procIdent, SOCallable pict, int instance, java.lang.String procName, D2Base... params)
-
callESLAsync_BE
public final void callESLAsync_BE(ConversationListener cctx, D2Process procIdent, SOCallable pict, int instance, java.lang.String procName, D2Base... params)
-
callESLAsync
@Deprecated public final void callESLAsync(SOCallable pict, java.lang.String procName, int instance, D2Process procIdent, D2Base... params)
Deprecated.
-
callESLAsync
public final void callESLAsync(D2Process procIdent, SOCallable pict, int instance, java.lang.String procName, D2Base... params)
Corresponds to ESL action CALL ASYNC- Parameters:
procIdent
-pict
-instance
-procName
-params
-
-
callJavaSync
@Deprecated public final void callJavaSync(SOCallable pict, java.lang.String procName, int instance, D2Process procIdent, D2Base... params)
Deprecated.
-
callJavaSync
public final void callJavaSync(D2Process procIdent, SOCallable pict, int instance, java.lang.String procName, D2Base... params) throws ExceptionRPCAbort, ExceptionRPCNotFound, ExceptionRPCNotRunning, ExceptionRPCParameterError, ExceptionRPCRemoteException
Corresponds to ESL action CALLJ SYNC- Parameters:
procIdent
-pict
-instance
-procName
-params
-- Throws:
ExceptionRPCAbort
ExceptionRPCNotFound
ExceptionRPCNotRunning
ExceptionRPCParameterError
ExceptionRPCRemoteException
-
callJavaAsync_B
public final ConversationContext callJavaAsync_B(ConversationListener cctx, D2Process procIdent, SOCallable pict, int instance, java.lang.String procName, D2Base... params)
-
callJavaAsync_BE
public final void callJavaAsync_BE(ConversationListener cctx, D2Process procIdent, SOCallable pict, int instance, java.lang.String procName, D2Base... params)
-
callJavaAsync
@Deprecated public final void callJavaAsync(SOCallable pict, java.lang.String procName, int instance, D2Process procIdent, D2Base[] params)
Deprecated.
-
callJavaAsync
public final void callJavaAsync(D2Process procIdent, SOCallable pict, int instance, java.lang.String procName, D2Base... params)
Corresponds to ESL action CALLJ ASYNC- Parameters:
procIdent
-pict
-instance
-procName
-params
-
-
sendByteArray
@Deprecated public final byte[] sendByteArray(SOCallable pict, java.lang.String procName, int instance, D2Process procIdent, byte[] byteArray)
Deprecated.
-
sendByteArray
@Deprecated public final byte[] sendByteArray(D2Process procIdent, SOCallable pict, int instance, java.lang.String procName, byte[] byteArray)
Deprecated.
-
sendByteArraySync
public final byte[] sendByteArraySync(D2Process procIdent, SOCallable pict, int instance, java.lang.String procName, byte[] byteArray) throws ExceptionRPCAbort, ExceptionRPCNotFound, ExceptionRPCNotRunning, ExceptionRPCParameterError, ExceptionRPCRemoteException
RPC call with byte array param SYNC- Parameters:
procIdent
-pict
-instance
-procName
-byteArray
-- Returns:
- Throws:
ExceptionRPCAbort
ExceptionRPCNotFound
ExceptionRPCNotRunning
ExceptionRPCParameterError
ExceptionRPCRemoteException
-
sendByteArrayAsync
public final void sendByteArrayAsync(D2Process procIdent, SOCallable pict, int instance, java.lang.String procName, byte[] byteArray)
RPC call with byte array param ASYNC- Parameters:
procIdent
-pict
-instance
-procName
-byteArray
-
-
getArchArr
public final int getArchArr(D2Base archobj, int row, int col, ColumnBase dstValuesStr, ColumnBase dstFlagsStr, java.util.Date startTime, java.util.Date endTime, int oversampleStep, int maxData)
Description copied from interface:IRunnableCommon
Corresponds to ESL actions GETARCHARR- Specified by:
getArchArr
in interfaceIRunnableCommon
-
getArchiveValues
public ArchiveReadResult getArchiveValues(D2Base archobj, int row, int col, ColumnBase dstValuesStr, ColumnBase dstFlagsStr, java.util.Date startTime, java.util.Date endTime, int oversampleStep, int maxData)
Description copied from interface:IRunnableCommon
Corresponds to ESL actions GETARCHARR, GETARCHROW, GETARCHCOL, GETARCHARR_TO_CNT- Specified by:
getArchiveValues
in interfaceIRunnableCommon
-
getArchArr
@Deprecated public final int getArchArr(D2Base archobj, int row, int col, D2SD dstValuesStr, int dstValueCol, D2SD dstFlagsStr, int dstFlagsCol, java.util.Date startTime, java.util.Date endTime, int oversampleStep, int maxData)
Deprecated.
-
calcStatFuncArr
public final int calcStatFuncArr(D2Base archobj, int row, int col, java.util.Date startTime, java.util.Date endTime, int step, int deepTime, StatFunction statFunc, int validPerc, double param, ColumnBase dstValuesCol, int archiveInstance)
Corresponds to ESL action CALCSTATFUNCARR- Returns:
-
getApplDir
public final java.lang.String getApplDir()
Corresponds to ESL function %GetApplDir- Returns:
-
getInstallDir
public final java.lang.String getInstallDir()
Corresponds to ESL function %GetInstallDir- Returns:
-
getCurrentUser
public final SOUser getCurrentUser()
Corresponds to ESL function %GetUserObjName- Returns:
-
getUserObjName
@Deprecated public final java.lang.String getUserObjName()
Deprecated.
-
getObjectByHOBJ
public final D2Base getObjectByHOBJ(int hobj)
Returns object from hobj- Parameters:
hobj
-- Returns:
-
getObjectByName
public final D2Base getObjectByName(java.lang.String name)
Returns object from name- Parameters:
name
-- Returns:
-
openObjectByHOBJ
public final D2Base openObjectByHOBJ(int hobj)
Corresponds to ESL function OpenObject [D2000 ObjAPI]- Parameters:
hobj
-- Returns:
-
openObjectByName
public final D2Base openObjectByName(java.lang.String name)
Corresponds to ESL function OpenObject [D2000 ObjAPI]- Parameters:
name
-- Returns:
-
valueToString
public final java.lang.String valueToString(D2Base value, SOStatusText statusText)
Corresponds to ESL function %HI_To_String- Parameters:
value
-statusText
-- Returns:
-
valueToString
public final java.lang.String valueToString(D2Base value, SOStatusText statusText, int idxTransPal)
Corresponds to ESL function %HI_To_String- Parameters:
value
-statusText
-idxTransPal
-- Returns:
-
valueToString
public final java.lang.String valueToString(D2Base value, int idxTransPal)
Corresponds to ESL function %HI_To_String- Parameters:
value
-idxTransPal
-- Returns:
-
fromString
public final D2Base fromString(java.lang.String value, SOStatusText statusText)
-
lngTranslate
public final java.lang.String lngTranslate(java.lang.String str)
Corresponds to ESL function %LNG_Translate- Parameters:
str
-- Returns:
-
lngTranslate
public final java.lang.String lngTranslate(java.lang.String str, int lngIdx)
Corresponds to ESL function %LNG_Translate- Parameters:
str
-lngIdx
-- Returns:
-
lngGetCurrLngIdx
public final int lngGetCurrLngIdx()
Corresponds to ESL function %LNG_GetCurrLngIdx- Returns:
-
startTimer
public void startTimer(long intervalMS, ITimerListener listener)
Corresponds to entry OnTimer- Parameters:
intervalMS
-listener
-
-
startTimer
@Deprecated public void startTimer(ITimerListener listener, long intervalMS)
Deprecated.
-
getMetadata
public java.lang.String getMetadata(java.lang.String key)
Description copied from interface:IRunnableCommon
Corresponds to ESL function %HI_GetMetadata- Specified by:
getMetadata
in interfaceIRunnableCommon
-
log
public final void log(java.lang.String message, BaseRunnable.LogPriority priority, boolean addLineNumber)
Corresponds to ESL action LOGEX- Parameters:
message
- message to logpriority
- priority of messageaddLineNumber
- if true, then inserts also line number into message
-
getAccess
public final java.lang.String getAccess(java.lang.String name, java.lang.String description)
Corresponds to ESL action GETACCESS, only global version (PUBLIC). ESL script of the same scheme instance is understood as different scheme instance.- Parameters:
name
- unique namedescription
- user defined description- Returns:
- null on success, else identification of script with the same name
-
getAccess
public final java.lang.String getAccess(java.lang.String name)
Corresponds to ESL action GETACCESS, only global version (PUBLIC). ESL script of the same scheme instance is understood as different scheme instance.- Parameters:
name
- unique name- Returns:
- null on success, else identification of script with the same name
-
releaseAccess
public final void releaseAccess(java.lang.String name)
Corresponds to ESL action RELEASEACCESS, only global version (PUBLIC). ESL script of the same scheme instance is understood as different scheme instance.- Parameters:
name
- unique name
-
getHostProcess
public SOProcess getHostProcess()
Description copied from interface:IRunnableCommon
Corresponds to ESL function %GetParentProcessHBJ- Specified by:
getHostProcess
in interfaceIRunnableCommon
-
deleteArchiveValuesSync
public void deleteArchiveValuesSync(D2Base obj, int row, int col, java.util.Date beginTime, java.util.Date endTime, boolean recalc)
-
deleteArchiveValuesAsync
public void deleteArchiveValuesAsync(D2Base obj, int row, int col, java.util.Date beginTime, java.util.Date endTime, boolean recalc)
-
getArchiveValues
public ArchiveValues[] getArchiveValues(ArchiveRequest... archarr)
Description copied from interface:IRunnableCommon
Corresponds to ESL actions GETARCHARR, GETARCHROW, GETARCHCOL- Specified by:
getArchiveValues
in interfaceIRunnableCommon
-
getArchiveStruct
public void getArchiveStruct(D2SD obj, D2SD dst, java.util.Date time)
Description copied from interface:IRunnableCommon
Corresponds to ESL action GETARCHSTRUCT- Specified by:
getArchiveStruct
in interfaceIRunnableCommon
-
dbTransOpen
public final DBTrans dbTransOpen(SODatabase database)
Description copied from interface:IRunnableCommon
Corresponds to ESL action DB_TRANS_OPEN- Specified by:
dbTransOpen
in interfaceIRunnableCommon
-
getObjectsByHOBJ
public D2Base[] getObjectsByHOBJ(int... hobjs)
Description copied from interface:IRunnableCommon
Returns objects array from hobjs array- Specified by:
getObjectsByHOBJ
in interfaceIRunnableCommon
- Returns:
-
getObjectsByName
public D2Base[] getObjectsByName(java.lang.String... names)
Description copied from interface:IRunnableCommon
Returns objects array from object names array- Specified by:
getObjectsByName
in interfaceIRunnableCommon
- Returns:
-
createStructOfType
public D2SD createStructOfType(int hobj)
Create instance of struct. variable of type defined by hobj- Parameters:
hobj
-- Returns:
-
createStructOfType
public D2SD createStructOfType(java.lang.String name)
Create instance of struct. variable of type defined by name- Parameters:
name
-- Returns:
-
authUser
public boolean authUser(java.lang.String userName, java.lang.String pwdMD)
Corresponds to ESL function %AuthUser- Parameters:
userName
-pwdMD
-- Returns:
-
serverGetFile
public final void serverGetFile(java.lang.String srcServerPath, java.lang.String dstClientPath)
-
serverSetFile
public final void serverSetFile(java.lang.String srcClientPath, java.lang.String dstServerPath)
-
getAbortSignal
public final AbortSignal getAbortSignal()
-
insertArchArrAsync
public void insertArchArrAsync(D2Base archobj, int row, int col, D2Base[] values, boolean recalcStats)
- Specified by:
insertArchArrAsync
in interfaceIRunnableCommon
-
insertArchArrSync
public void insertArchArrSync(D2Base archobj, int row, int col, D2Base[] values, boolean recalcStats)
- Specified by:
insertArchArrSync
in interfaceIRunnableCommon
-
getUserPasswordExpirationTime
public java.util.Date getUserPasswordExpirationTime(int userHOBJ)
- Specified by:
getUserPasswordExpirationTime
in interfaceIRunnableCommon
-
getUserPasswordExpirationTime
public java.util.Date getUserPasswordExpirationTime(java.lang.String username)
- Specified by:
getUserPasswordExpirationTime
in interfaceIRunnableCommon
-
createPictureNote
public java.lang.String createPictureNote(int picture_bhbj, int picture_l_inst, java.util.Date btime, java.util.Date etime, int effective_before, int effective_after, java.lang.String text, java.lang.String author)
- Specified by:
createPictureNote
in interfaceIRunnableCommon
-
updatePictureNote
public void updatePictureNote(java.lang.String note_uuid, boolean valid, java.util.Date btime, java.util.Date etime, int effective_before, int effective_after, java.lang.String text, java.lang.String author)
- Specified by:
updatePictureNote
in interfaceIRunnableCommon
-
addNoteNotificationListener
public final void addNoteNotificationListener(INoteNotificationListener listener)
-
removeNoteNotificationListener
public final void removeNoteNotificationListener(INoteNotificationListener listener)
-
-