public class LocalExecClient extends Object
Constructor and Description |
---|
LocalExecClient() |
Modifier and Type | Method and Description |
---|---|
boolean |
connect()
Connect to the Server
|
void |
disconnect()
Disconnect from the server
|
static InetSocketAddress |
getAddress() |
LocalExecResult |
getLocalExecResult() |
static void |
initialize(int clientThread,
long maxGlobalMemory)
Initialize the LocalExec Client context
|
static void |
releaseResources()
To be called when the server is shutting down to release the resources
|
void |
runOneCommand(String command,
long delay,
WaarpFuture futureCompletion)
Run one command with a specific allowed delay for execution.
|
static void |
setAddress(InetSocketAddress address) |
public static void initialize(int clientThread, long maxGlobalMemory)
public static void releaseResources()
public LocalExecResult getLocalExecResult()
public void runOneCommand(String command, long delay, WaarpFuture futureCompletion)
command
- delay
- futureCompletion
- public boolean connect()
public void disconnect()
public static InetSocketAddress getAddress()
public static void setAddress(InetSocketAddress address)
address
- the address to setCopyright © 2009–2020 Waarp. All rights reserved.