public interface ControlCommand
Implementations of this interface should comply to the general command pattern semantics and it is expected that the command will have setters and getters for all the required fields to re-construct the command, as the framework uses bean introspection and reflection to serialize and build the commands.Therefore it is a must to have a default constructor for all the implementations of this interface
|Modifier and Type||Method and Description|
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.
void execute() throws Exception
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
Exception- in case of a failure in executing the command
Copyright © 2010–2016 AdroitLogic. All rights reserved.