Package org.jboss.as.process
Class ProcessController
- java.lang.Object
-
- org.jboss.as.process.ProcessController
-
public final class ProcessController extends Object
- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description static shortAUTH_BYTES_ENCODED_LENGTHstatic StringSTDIO_ABOUT_TO_INSTALL_MSG
-
Constructor Summary
Constructors Constructor Description ProcessController(ProtocolServer.Configuration configuration, PrintStream stdout, PrintStream stderr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProcess(String processName, int id, List<String> command, Map<String,String> env, String workingDirectory, boolean isPrivileged, boolean respawn)voiddestroyProcess(String processName)ProtocolServergetServer()org.jboss.as.process.ManagedProcessgetServerByAuthCode(byte[] code)voidkillProcess(String processName)voidremoveProcess(String processName)voidsendReconnectServerProcess(String processName, String scheme, String hostName, int port, boolean managementSubsystemEndpoint, String serverAuthToken)voidsendStdin(String recipient, InputStream source)voidshutdown()voidstartProcess(String processName)voidstopProcess(String processName)
-
-
-
Field Detail
-
STDIO_ABOUT_TO_INSTALL_MSG
public static final String STDIO_ABOUT_TO_INSTALL_MSG
- See Also:
- Constant Field Values
-
AUTH_BYTES_ENCODED_LENGTH
public static final short AUTH_BYTES_ENCODED_LENGTH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProcessController
public ProcessController(ProtocolServer.Configuration configuration, PrintStream stdout, PrintStream stderr) throws IOException
- Throws:
IOException
-
-
Method Detail
-
addProcess
public void addProcess(String processName, int id, List<String> command, Map<String,String> env, String workingDirectory, boolean isPrivileged, boolean respawn)
-
startProcess
public void startProcess(String processName)
-
stopProcess
public void stopProcess(String processName)
-
destroyProcess
public void destroyProcess(String processName)
-
killProcess
public void killProcess(String processName)
-
removeProcess
public void removeProcess(String processName)
-
sendStdin
public void sendStdin(String recipient, InputStream source) throws IOException
- Throws:
IOException
-
shutdown
public void shutdown()
-
getServerByAuthCode
public org.jboss.as.process.ManagedProcess getServerByAuthCode(byte[] code)
-
sendReconnectServerProcess
public void sendReconnectServerProcess(String processName, String scheme, String hostName, int port, boolean managementSubsystemEndpoint, String serverAuthToken)
-
getServer
public ProtocolServer getServer()
-
-