hudson.plugins.synergy.impl
Class CheckSessionCommand
java.lang.Object
hudson.plugins.synergy.impl.Command
hudson.plugins.synergy.impl.CheckSessionCommand
public class CheckSessionCommand
- extends Command
|
Constructor Summary |
CheckSessionCommand()
Checks if a session allready exists. return's the CCM addr if the session
allready exists |
|
Method Summary |
java.lang.String[] |
buildCommand(java.lang.String ccmAddr)
Return the Synergy command line to execute as an array. |
java.lang.String |
getCcmAddr(hudson.FilePath ccmSessionMapFile)
|
boolean |
isStatusOK(int status)
Return true if the given return status is ok for the command. |
void |
parseResult(java.lang.String result)
Parse the command result. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SESSION_NOT_FOUND
public static final java.lang.String SESSION_NOT_FOUND
- See Also:
- Constant Field Values
CheckSessionCommand
public CheckSessionCommand()
- Checks if a session allready exists. return's the CCM addr if the session
allready exists
- Parameters:
filePath -
buildCommand
public java.lang.String[] buildCommand(java.lang.String ccmAddr)
- Description copied from class:
Command
- Return the Synergy command line to execute as an array.
The line must start with the ccmExe location, which is given as the first method parameter.
- Specified by:
buildCommand in class Command
parseResult
public void parseResult(java.lang.String result)
- Description copied from class:
Command
- Parse the command result.
- Specified by:
parseResult in class Command
getCcmAddr
public java.lang.String getCcmAddr(hudson.FilePath ccmSessionMapFile)
throws java.io.IOException,
java.lang.InterruptedException
- Throws:
java.io.IOException
java.lang.InterruptedException
isStatusOK
public boolean isStatusOK(int status)
- Description copied from class:
Command
- Return true if the given return status is ok for the command.
The default is to return true if the status is 0 or 1.
- Overrides:
isStatusOK in class Command
Copyright © 2008-2009. All Rights Reserved.