Package org.netxms.client.events
Class ActionExecutionConfiguration
java.lang.Object
org.netxms.client.events.ActionExecutionConfiguration
Action execution data
-
Constructor Summary
ModifierConstructorDescriptionActionExecutionConfiguration
(long actionId, String timerDelay, String snoozeTime, String timerKey, String blockingTimerKey) Create new action execution configurationprotected
ActionExecutionConfiguration
(NXCPMessage msg, long baseId) Create action execution configuration from NXCP messageCopy constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
fillMessage
(NXCPMessage msg, long baseId) Fill NXCP messagelong
Get action IDGet blocking timer key.Get timer delay.Get timer keyvoid
setBlockingTimerKey
(String blockingTimerKey) Set blocking timer keyvoid
setSnoozeTime
(String snoozeTime) void
setTimerDelay
(String timerDelay) Set timer delay.void
setTimerKey
(String timerKey) Set timer key
-
Constructor Details
-
ActionExecutionConfiguration
public ActionExecutionConfiguration(long actionId, String timerDelay, String snoozeTime, String timerKey, String blockingTimerKey) Create new action execution configuration- Parameters:
actionId
- action IDtimerDelay
- timer delay in secondssnoozeTime
- snoozeTime in secondstimerKey
- timer keyblockingTimerKey
- timer key for blocking the action
-
ActionExecutionConfiguration
Create action execution configuration from NXCP message- Parameters:
msg
- NXCP messagebaseId
- base field ID
-
ActionExecutionConfiguration
Copy constructor- Parameters:
src
- source object
-
-
Method Details
-
fillMessage
Fill NXCP message- Parameters:
msg
- NXCP messagebaseId
- base field ID
-
getTimerDelay
Get timer delay.- Returns:
- timer delay in seconds
-
setTimerDelay
Set timer delay.- Parameters:
timerDelay
- timer delay in seconds
-
getTimerKey
Get timer key- Returns:
- current timer key
-
setTimerKey
Set timer key- Parameters:
timerKey
- new timer key
-
getActionId
public long getActionId()Get action ID- Returns:
- action ID
-
getBlockingTimerKey
Get blocking timer key.- Returns:
- blocking timer key or empty string if not set
-
setBlockingTimerKey
Set blocking timer key- Parameters:
blockingTimerKey
- blocking timer key
-
getSnoozeTime
- Returns:
- the snoozeTime
-
setSnoozeTime
- Parameters:
snoozeTime
- the snoozeTime to set
-