public class RetryCommandCommand extends Object implements XControlCommand
Constructor and Description |
---|
RetryCommandCommand(int commandId) |
Modifier and Type | Method and Description |
---|---|
void |
execute()
The commands execution logic should be implemented here, the general notion is that these are
void return type as the cluster gets the command and the caller has no control over the
returned results.
|
int |
getCommandId() |
void |
setCommandId(int commandId) |
public void execute() throws Exception
The commands execution logic should be implemented here, the general notion is that these are void return type as the cluster gets the command and the caller has no control over the returned results. However if another command is used to look for a result in this command, you may use command class field and set the value to it so that the other command could read the value
It is important to note that the implementer of this interface MUST throw an exception in the case of failing to execute this command, as that will be required to monitor the \ failed cluster command by the clustering framework
execute
in interface XControlCommand
Exception
- in case of a failure in executing the commandpublic int getCommandId()
public void setCommandId(int commandId)
Copyright © 2016–2019 AdroitLogic. All rights reserved.