public class CheckSessionCommand extends Command
Modifier and Type | Field and Description |
---|---|
static String |
SESSION_NOT_FOUND |
Constructor and Description |
---|
CheckSessionCommand()
Checks if a session allready exists.
|
Modifier and Type | Method and Description |
---|---|
String[] |
buildCommand(String ccmAddr)
Return the Synergy command line to execute as an array.
|
String |
getCcmAddr(hudson.FilePath ccmSessionMapFile) |
boolean |
isStatusOK(int status,
String result)
Return true if the given return status is ok for the command.
|
void |
parseResult(String result)
Parse the command result.
|
public static final String SESSION_NOT_FOUND
public CheckSessionCommand()
filePath
- public String[] buildCommand(String ccmAddr)
Command
buildCommand
in class Command
public void parseResult(String result)
Command
parseResult
in class Command
public String getCcmAddr(hudson.FilePath ccmSessionMapFile) throws IOException, InterruptedException
IOException
InterruptedException
public boolean isStatusOK(int status, String result)
Command
isStatusOK
in class Command
status
- The ccm process return coderesult
- The ccm process outputCopyright © 2008-2013. All Rights Reserved.