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 |
destroyProcess(String processName) |
void |
killProcess(String processName) |
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
IOException
public OutputStream sendStdin(String processName) throws IOException
IOException
public void addProcess(String processName, byte[] authKey, String[] cmd, String workingDir, Map<String,String> env) throws IOException
IOException
public void startProcess(String processName) throws IOException
IOException
public void stopProcess(String processName) throws IOException
IOException
public void removeProcess(String processName) throws IOException
IOException
public void requestProcessInventory() throws IOException
IOException
public void reconnectProcess(String processName, String hostName, int port, boolean managementSubsystemEndpoint, byte[] authKey) throws IOException
IOException
public void shutdown() throws IOException
IOException
public void shutdown(int exitCode) throws IOException
IOException
public void destroyProcess(String processName) throws IOException
IOException
public void killProcess(String processName) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2013 JBoss by Red Hat. All rights reserved.