public final class ProcessController extends Object
Modifier and Type | Field and Description |
---|---|
static short |
AUTH_BYTES_ENCODED_LENGTH |
static short |
AUTH_BYTES_LENGTH |
Constructor and Description |
---|
ProcessController(ProtocolServer.Configuration configuration,
PrintStream stdout,
PrintStream stderr) |
Modifier and Type | Method and Description |
---|---|
void |
addProcess(String processName,
List<String> command,
Map<String,String> env,
String workingDirectory,
boolean isPrivileged,
boolean respawn) |
void |
addProcess(String processName,
String authKey,
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 scheme,
String hostName,
int port,
boolean managementSubsystemEndpoint,
String asAuthKey) |
void |
sendStdin(String recipient,
InputStream source) |
void |
shutdown() |
void |
startProcess(String processName) |
void |
stopProcess(String processName) |
public static final short AUTH_BYTES_LENGTH
public static final short AUTH_BYTES_ENCODED_LENGTH
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, String 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 scheme, String hostName, int port, boolean managementSubsystemEndpoint, String asAuthKey)
public ProtocolServer getServer()
Copyright © 2023 JBoss by Red Hat. All rights reserved.