public static interface Server.Result
Future.get()
on
the return result will block until the operation is complete (the server
has finished starting, stopping, or the operation has failed). This
can then be used to query the outcome.
This provides an integer return code, which will match those documented
for command line invocation, and a Throwable
, if an exception
occurred while executing the command. If a Throwable
is returned,
it will have a translated message suitable for display to end users.
Consumers of this SPI must not implement this interface.
Modifier and Type | Method and Description |
---|---|
ServerException |
getException() |
int |
getReturnCode()
Check the return code value of the operation.
|
boolean |
successful()
Convenience method.
|
boolean successful()
int getReturnCode()
ServerException getException()
ServerException
with a translated message if an exception occurred while processing the operation, or null.