hudson.plugins.synergy.impl
Class StartCommand

java.lang.Object
  extended by hudson.plugins.synergy.impl.Command
      extended by hudson.plugins.synergy.impl.StartCommand

public class StartCommand
extends Command

A start session command. A start session command returns the CCM_ADDR to use for the following commands.


Constructor Summary
StartCommand(java.lang.String database, java.lang.String engine, java.lang.String login, java.lang.String password, boolean remoteClient, java.lang.String pathName)
          Builds a start session command.
 
Method Summary
 void addCcmAddrToSessionMapFile(hudson.FilePath ccmSessionMapFile)
           
 java.lang.String[] buildCommand(java.lang.String ccmAddr)
          Return the Synergy command line to execute as an array.
 boolean[] buildMask()
          Build a mask of values in the command line that should not be logged.
 java.lang.String getCcmAddr()
           
 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
 

Constructor Detail

StartCommand

public StartCommand(java.lang.String database,
                    java.lang.String engine,
                    java.lang.String login,
                    java.lang.String password,
                    boolean remoteClient,
                    java.lang.String pathName)
Builds a start session command. A start session command returns the CCM_ADDR to use for the following commands.

Parameters:
database - The database path
login - The user login
password - The user password
remoteClient - Use remote client flag
Method Detail

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

buildMask

public boolean[] buildMask()
Description copied from class: Command
Build a mask of values in the command line that should not be logged.

Overrides:
buildMask 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()

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

addCcmAddrToSessionMapFile

public void addCcmAddrToSessionMapFile(hudson.FilePath ccmSessionMapFile)
                                throws java.io.IOException,
                                       java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException


Copyright © 2008-2009. All Rights Reserved.