Package org.wildfly.core.embedded
Interface EmbeddedManagedProcess
-
- All Known Subinterfaces:
HostController,StandaloneServer
public interface EmbeddedManagedProcessBase interface for an embedded process that can be managed with aModelControllerClient.- Author:
- Thomas.Diesler@jboss.com, Brian Stansberry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanQueryProcessState()Check if the implementation of this interface is able to use getProcessState() to retrieve the current process state.ModelControllerClientgetModelControllerClient()Gets the client that can be used to manage the embedded process.StringgetProcessState()Returns the current process state of this managed process.voidstart()Start the embedded process.voidstop()Stop the embedded process.
-
-
-
Method Detail
-
getModelControllerClient
ModelControllerClient getModelControllerClient()
Gets the client that can be used to manage the embedded process.- Returns:
- the client, or
nullif the process is not started
-
start
void start() throws EmbeddedProcessStartExceptionStart the embedded process.- Throws:
EmbeddedProcessStartException
-
stop
void stop()
Stop the embedded process.
-
getProcessState
String getProcessState()
Returns the current process state of this managed process.The returned value is a String representation of one of the possible
ControlledProcessState.Statevalues.- Returns:
- The current process state, or
nullif currently the process state is unknown. - Throws:
UnsupportedOperationException- if the requested operation is not supported by the implementation of this embedded server.
-
canQueryProcessState
boolean canQueryProcessState()
Check if the implementation of this interface is able to use getProcessState() to retrieve the current process state.The implementation class could be an implementation coming from an older server version that does not support checking the process state directly.
- Returns:
- Whether the implementation supports querying for the process state.
-
-