public class DefaultCommandHandle extends Object implements CommandHandle
CommandHandle interface.
Displays messages when commands sent to remote subsystems fail for any reason or time out.NONE| Constructor and Description |
|---|
DefaultCommandHandle() |
| Modifier and Type | Method and Description |
|---|---|
void |
onCancel(CancellationException exception,
CommandTask source)
Called if the command is successfully canceled.
|
void |
onExecutionFailure(Throwable exception,
CommandTask source)
Called when the target subsystem either throws an uncaught exception while trying
to execute the command, or returns an exception as the result of execution.
|
void |
onNack(org.lsst.ccs.bus.messages.CommandNack nack,
CommandTask source)
Called when the command is rejected.
|
void |
onSendingFailure(Throwable exception,
CommandTask source)
Called if the command cannot be sent to the target subsystem.
|
void |
onTimeout(TimeoutException exception,
CommandTask source)
Called if the command times out.
|
public void onSendingFailure(Throwable exception, CommandTask source)
CommandHandleCommandHandle.onResult(java.lang.Object, org.lsst.ccs.gconsole.agent.command.CommandTask).onSendingFailure in interface CommandHandleexception - Exception thrown while attempting to send the command.source - CommandTask that executed the command.public void onNack(org.lsst.ccs.bus.messages.CommandNack nack,
CommandTask source)
CommandHandleCommandHandle.onResult(java.lang.Object, org.lsst.ccs.gconsole.agent.command.CommandTask).onNack in interface CommandHandlenack - NACK.source - CommandTask that executed the command.public void onExecutionFailure(Throwable exception, CommandTask source)
CommandHandleCommandHandle.onResult(java.lang.Object, org.lsst.ccs.gconsole.agent.command.CommandTask).onExecutionFailure in interface CommandHandleexception - Exception thrown while attempting to execute the command.source - CommandTask that executed the command.public void onTimeout(TimeoutException exception, CommandTask source)
CommandHandleCommandHandle.onResult(java.lang.Object, org.lsst.ccs.gconsole.agent.command.CommandTask).onTimeout in interface CommandHandleexception - Exception thrown.source - CommandTask that executed the command.public void onCancel(CancellationException exception, CommandTask source)
CommandHandleCommandHandle.onResult(java.lang.Object, org.lsst.ccs.gconsole.agent.command.CommandTask).onCancel in interface CommandHandleexception - Exception thrown.source - CommandTask that executed the command.Copyright © 2023 LSST. All rights reserved.