public class DefaultCommandListener extends Object implements CommandListener
Constructor and Description |
---|
DefaultCommandListener() |
Modifier and Type | Method and Description |
---|---|
void |
commandCompleted(Element element,
com.mks.api.Command command,
com.mks.api.response.Response response)
Notification ignored by implementation.
|
void |
commandFailed(Element element,
com.mks.api.Command command,
CoreException error)
Logs the command failure and re-throw the exception.
|
void |
commandStarted(Element element,
com.mks.api.Command command)
Notification ignored by implementation.
|
public void commandStarted(Element element, com.mks.api.Command command) throws CoreException
commandStarted
in interface CommandListener
element
- the element on which a command is executed.command
- the command to execute.CoreException
- never thrown by default implementation.public void commandCompleted(Element element, com.mks.api.Command command, com.mks.api.response.Response response) throws CoreException
commandCompleted
in interface CommandListener
element
- the element on which a command is executed.command
- the executed command.response
- the response obtained for the command execution.CoreException
- never thrown by default implementation.public void commandFailed(Element element, com.mks.api.Command command, CoreException error) throws CoreException
commandFailed
in interface CommandListener
element
- the element on which a command is executed.command
- the executed command.error
- the error that occurred during execution.CoreException
- always re-throws the exception received as argument.