Package org.netxms.client.events
Class ActionExecutionConfiguration
java.lang.Object
org.netxms.client.events.ActionExecutionConfiguration
Action execution data
- 
Constructor SummaryConstructorsModifierConstructorDescriptionActionExecutionConfiguration(long actionId, String timerDelay, String snoozeTime, String timerKey, String blockingTimerKey) Create new action execution configurationprotectedActionExecutionConfiguration(NXCPMessage msg, long baseId) Create action execution configuration from NXCP messageCopy constructor
- 
Method SummaryModifier and TypeMethodDescriptionvoidfillMessage(NXCPMessage msg, long baseId) Fill NXCP messagelongGet action IDGet blocking timer key.Get timer delay.Get timer keybooleanisActive()If action should be executedvoidsetActive(boolean active) Set if action should be activevoidsetBlockingTimerKey(String blockingTimerKey) Set blocking timer keyvoidsetSnoozeTime(String snoozeTime) voidsetTimerDelay(String timerDelay) Set timer delay.voidsetTimerKey(String timerKey) Set timer key
- 
Constructor Details- 
ActionExecutionConfigurationpublic ActionExecutionConfiguration(long actionId, String timerDelay, String snoozeTime, String timerKey, String blockingTimerKey) Create new action execution configuration- Parameters:
- actionId- action ID
- timerDelay- timer delay in seconds
- snoozeTime- snoozeTime in seconds
- timerKey- timer key
- blockingTimerKey- timer key for blocking the action
 
- 
ActionExecutionConfigurationCreate action execution configuration from NXCP message- Parameters:
- msg- NXCP message
- baseId- base field ID
 
- 
ActionExecutionConfigurationCopy constructor- Parameters:
- src- source object
 
 
- 
- 
Method Details- 
fillMessageFill NXCP message- Parameters:
- msg- NXCP message
- baseId- base field ID
 
- 
getTimerDelayGet timer delay.- Returns:
- timer delay in seconds
 
- 
setTimerDelaySet timer delay.- Parameters:
- timerDelay- timer delay in seconds
 
- 
getTimerKeyGet timer key- Returns:
- current timer key
 
- 
setTimerKeySet timer key- Parameters:
- timerKey- new timer key
 
- 
getActionIdpublic long getActionId()Get action ID- Returns:
- action ID
 
- 
getBlockingTimerKeyGet blocking timer key.- Returns:
- blocking timer key or empty string if not set
 
- 
setBlockingTimerKeySet blocking timer key- Parameters:
- blockingTimerKey- blocking timer key
 
- 
getSnoozeTime- Returns:
- the snoozeTime
 
- 
setSnoozeTime- Parameters:
- snoozeTime- the snoozeTime to set
 
- 
isActivepublic boolean isActive()If action should be executed- Returns:
- true if is active
 
- 
setActivepublic void setActive(boolean active) Set if action should be active
 
-