|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface Server.Result
Result of a start or stop operation. Calling 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.
Method Summary | |
---|---|
ServerException |
getException()
|
int |
getReturnCode()
Check the return code value of the operation. |
boolean |
successful()
Convenience method. |
Method Detail |
---|
boolean successful()
int getReturnCode()
ServerException getException()
ServerException
with a translated message if an exception occurred while processing the operation, or null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |