Package org.eso.ias.command
Class CommandListener.CmdExecutionResult
java.lang.Object
org.eso.ias.command.CommandListener.CmdExecutionResult
- Enclosing interface:
- CommandListener
The data structure that the listener returns to the
CommandManager
-
Field Summary
Modifier and TypeFieldDescriptionfinal boolean
Set if the the manager must restart the process Only one between mustRestart and mustShutdown can be set at the same timefinal boolean
Set if the the manager must shut the process down Only one between mustRestart and mustShutdown can be set at the same timeAdditional properties, if anyfinal CommandExitStatus
The execution status of the command -
Constructor Summary
ConstructorDescriptionCmdExecutionResult
(CommandExitStatus status) Constructor with no properties when no stratup and no shutdown is requiredCmdExecutionResult
(CommandExitStatus status, Map<String, String> props, boolean mustShutdown, boolean mustRestart) Constructor. -
Method Summary
-
Field Details
-
status
The execution status of the command -
properties
Additional properties, if any -
mustRestart
public final boolean mustRestartSet if the the manager must restart the process Only one between mustRestart and mustShutdown can be set at the same time -
mustShutdown
public final boolean mustShutdownSet if the the manager must shut the process down Only one between mustRestart and mustShutdown can be set at the same time
-
-
Constructor Details
-
CmdExecutionResult
public CmdExecutionResult(CommandExitStatus status, Map<String, String> props, boolean mustShutdown, boolean mustRestart) Constructor. Only one between mustRestart and mustShutdown can be set at the same time- Parameters:
status
- The exit status of the commandprops
- The map of propertis, if anymustRestart
- Set if the the manager must restart the processmustShutdown
- Set if the the manager must shut the process down
-
CmdExecutionResult
Constructor with no properties when no stratup and no shutdown is required- Parameters:
status
- The exit status of the command
-