public class CommandRunningFitClient extends FitClient
Modifier and Type | Class and Description |
---|---|
static interface |
CommandRunningFitClient.CommandRunningStrategy |
static class |
CommandRunningFitClient.InProcessCommandRunner
Runs commands in fast mode (in-process).
|
static class |
CommandRunningFitClient.OutOfProcessCommandRunner
Runs commands by starting a new process.
|
Modifier and Type | Field and Description |
---|---|
static int |
TIMEOUT |
Constructor and Description |
---|
CommandRunningFitClient(CommandRunningFitClient.CommandRunningStrategy commandRunningStrategy) |
Modifier and Type | Method and Description |
---|---|
void |
acceptSocket(java.net.Socket s) |
boolean |
isConnectionEstablished() |
void |
join() |
void |
kill() |
void |
start() |
addFitClientListener, checkForPulse, done, exceptionOccurred, isSuccessfullyStarted, send
public CommandRunningFitClient(CommandRunningFitClient.CommandRunningStrategy commandRunningStrategy)
public void start() throws java.io.IOException
java.io.IOException
public void acceptSocket(java.net.Socket s) throws java.io.IOException, java.lang.InterruptedException
acceptSocket
in interface SocketAccepter
acceptSocket
in class FitClient
java.io.IOException
java.lang.InterruptedException
public boolean isConnectionEstablished()