public final class ProcessController extends Object
Constructor and Description |
---|
ProcessController(ProtocolServer.Configuration configuration,
PrintStream stdout,
PrintStream stderr) |
Modifier and Type | Method and Description |
---|---|
void |
addProcess(String processName,
byte[] authKey,
List<String> command,
Map<String,String> env,
String workingDirectory,
boolean isPrivileged,
boolean respawn) |
void |
addProcess(String processName,
List<String> command,
Map<String,String> env,
String workingDirectory,
boolean isPrivileged,
boolean respawn) |
void |
destroyProcess(String processName) |
ProtocolServer |
getServer() |
org.jboss.as.process.ManagedProcess |
getServerByAuthCode(byte[] code) |
void |
killProcess(String processName) |
void |
removeProcess(String processName) |
void |
sendReconnectProcess(String processName,
String hostName,
int port,
boolean managementSubsystemEndpoint,
byte[] asAuthKey) |
void |
sendStdin(String recipient,
InputStream source) |
void |
shutdown() |
void |
startProcess(String processName) |
void |
stopProcess(String processName) |
public ProcessController(ProtocolServer.Configuration configuration, PrintStream stdout, PrintStream stderr) throws IOException
IOException
public void addProcess(String processName, List<String> command, Map<String,String> env, String workingDirectory, boolean isPrivileged, boolean respawn)
public void addProcess(String processName, byte[] authKey, List<String> command, Map<String,String> env, String workingDirectory, boolean isPrivileged, boolean respawn)
public void startProcess(String processName)
public void stopProcess(String processName)
public void destroyProcess(String processName)
public void killProcess(String processName)
public void removeProcess(String processName)
public void sendStdin(String recipient, InputStream source) throws IOException
IOException
public void shutdown()
public org.jboss.as.process.ManagedProcess getServerByAuthCode(byte[] code)
public void sendReconnectProcess(String processName, String hostName, int port, boolean managementSubsystemEndpoint, byte[] asAuthKey)
public ProtocolServer getServer()
Copyright © 2014 JBoss by Red Hat. All rights reserved.