public final class ProcessControllerClient extends Object implements Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
addProcess(String processName,
byte[] authKey,
String[] cmd,
String workingDir,
Map<String,String> env) |
void |
close() |
static ProcessControllerClient |
connect(ProtocolClient.Configuration configuration,
byte[] authCode,
ProcessMessageHandler messageHandler) |
void |
reconnectProcess(String processName,
String hostName,
int port,
boolean managementSubsystemEndpoint,
byte[] 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 ProcessControllerClient connect(ProtocolClient.Configuration configuration, byte[] authCode, ProcessMessageHandler messageHandler) throws IOException
IOExceptionpublic OutputStream sendStdin(String processName) throws IOException
IOExceptionpublic void addProcess(String processName, byte[] 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, String hostName, int port, boolean managementSubsystemEndpoint, byte[] authKey) throws IOException
IOExceptionpublic void shutdown()
throws IOException
IOExceptionpublic void shutdown(int exitCode)
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.