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,
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
IOException
public OutputStream sendStdin(String processName) throws IOException
IOException
public void addProcess(String processName, String 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, URI managementURI, boolean managementSubsystemEndpoint, String 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 © 2023 JBoss by Red Hat. All rights reserved.