public final class ProcessControllerClient extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
static String |
HOST_CONTROLLER_PROCESS_NAME |
| Modifier and Type | Method and Description |
|---|---|
void |
addProcess(String processName,
int processId,
String authKey,
String[] cmd,
String workingDir,
Map<String,String> env) |
void |
close() |
static ProcessControllerClient |
connect(ProtocolClient.Configuration configuration,
String authCode,
ProcessMessageHandler messageHandler) |
void |
destroyProcess(String processName) |
void |
killProcess(String processName) |
void |
reconnectProcess(String processName,
URI managementURI,
boolean managementSubsystemEndpoint,
String authKey) |
void |
removeProcess(String processName) |
void |
requestProcessInventory() |
OutputStream |
sendStdin(String processName) |
void |
shutdown() |
void |
shutdown(int exitCode) |
void |
startProcess(String processName) |
void |
stopProcess(String processName) |
public static final String HOST_CONTROLLER_PROCESS_NAME
public static ProcessControllerClient connect(ProtocolClient.Configuration configuration, String authCode, ProcessMessageHandler messageHandler) throws IOException
IOExceptionpublic OutputStream sendStdin(String processName) throws IOException
IOExceptionpublic void addProcess(String processName, int processId, String authKey, String[] cmd, String workingDir, Map<String,String> env) throws IOException
IOExceptionpublic void startProcess(String processName) throws IOException
IOExceptionpublic void stopProcess(String processName) throws IOException
IOExceptionpublic void removeProcess(String processName) throws IOException
IOExceptionpublic void requestProcessInventory()
throws IOException
IOExceptionpublic void reconnectProcess(String processName, URI managementURI, boolean managementSubsystemEndpoint, String authKey) throws IOException
IOExceptionpublic void shutdown()
throws IOException
IOExceptionpublic void shutdown(int exitCode)
throws IOException
IOExceptionpublic void destroyProcess(String processName) throws IOException
IOExceptionpublic void killProcess(String processName) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.