public interface DaemonCommandExecuter
Daemons use implementations of this interface to do the heavy lifting of actual performing commands.
| Modifier and Type | Method and Description |
|---|---|
void |
executeCommand(Connection<Object> connection,
Command command,
DaemonContext daemonContext,
DaemonStateCoordinator daemonStateCoordinator)
Handle the given command, and communicate as necessary with the client over the given connection.
|
void executeCommand(Connection<Object> connection, Command command, DaemonContext daemonContext, DaemonStateCoordinator daemonStateCoordinator)
If an error occurs during the action of the command that is to be reasonably expected (e.g. a failure in actually running the build for a Build command), the exception should be reported to the client and NOT thrown from this method.
The command param may be null, which means the client disconnected before sending a command.
Copyright © 2013. All rights reserved