Package org.jboss.as.process
Class ProcessControllerClient
- java.lang.Object
-
- org.jboss.as.process.ProcessControllerClient
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class ProcessControllerClient extends Object implements Closeable
A client to the Process Controller.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description static StringHOST_CONTROLLER_PROCESS_NAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProcess(String processName, int processId, String[] cmd, String workingDir, Map<String,String> env)voidclose()static ProcessControllerClientconnect(ProtocolClient.Configuration configuration, String authCode, ProcessMessageHandler messageHandler)voiddestroyProcess(String processName)voidkillProcess(String processName)voidreconnectServerProcess(String processName, URI managementURI, boolean managementSubsystemEndpoint, String serverAuthToken)voidremoveProcess(String processName)voidrequestProcessInventory()OutputStreamsendStdin(String processName)voidshutdown()voidshutdown(int exitCode)voidstartProcess(String processName)voidstopProcess(String processName)
-
-
-
Field Detail
-
HOST_CONTROLLER_PROCESS_NAME
public static final String HOST_CONTROLLER_PROCESS_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
connect
public static ProcessControllerClient connect(ProtocolClient.Configuration configuration, String authCode, ProcessMessageHandler messageHandler) throws IOException
- Throws:
IOException
-
sendStdin
public OutputStream sendStdin(String processName) throws IOException
- Throws:
IOException
-
addProcess
public void addProcess(String processName, int processId, String[] cmd, String workingDir, Map<String,String> env) throws IOException
- Throws:
IOException
-
startProcess
public void startProcess(String processName) throws IOException
- Throws:
IOException
-
stopProcess
public void stopProcess(String processName) throws IOException
- Throws:
IOException
-
removeProcess
public void removeProcess(String processName) throws IOException
- Throws:
IOException
-
requestProcessInventory
public void requestProcessInventory() throws IOException- Throws:
IOException
-
reconnectServerProcess
public void reconnectServerProcess(String processName, URI managementURI, boolean managementSubsystemEndpoint, String serverAuthToken) throws IOException
- Throws:
IOException
-
shutdown
public void shutdown() throws IOException- Throws:
IOException
-
shutdown
public void shutdown(int exitCode) throws IOException- Throws:
IOException
-
destroyProcess
public void destroyProcess(String processName) throws IOException
- Throws:
IOException
-
killProcess
public void killProcess(String processName) throws IOException
- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-