public interface CommandListener
Modifier and Type | Method and Description |
---|---|
void |
commandCompleted(Element element,
com.mks.api.Command command,
com.mks.api.response.Response response)
Notifies a command execution is completed.
|
void |
commandFailed(Element element,
com.mks.api.Command command,
CoreException error)
Notifies a command has failed to executed properly.
|
void |
commandStarted(Element element,
com.mks.api.Command command)
Notifies a command execution is about to start.
|
void commandStarted(Element element, com.mks.api.Command command) throws CoreException
element
- the element on which a command is executed.command
- the command to execute.CoreException
- if the execution should be aborted.void commandCompleted(Element element, com.mks.api.Command command, com.mks.api.response.Response response) throws CoreException
element
- the element on which a command is executed.command
- the executed command.response
- the response obtained for the command execution.CoreException
- if the command was successfully executed but this listener considers the execution should be a failure.void commandFailed(Element element, com.mks.api.Command command, CoreException error) throws CoreException
element
- the element on which a command is executed.command
- the executed command.error
- the error that occurred during execution.CoreException
- if listener considers a different error should be reported (e.g. to get a more contextual error message).