public class StartCommand extends Command
Constructor and Description |
---|
StartCommand(String database,
String engine,
String login,
String password,
boolean remoteClient,
String pathName,
boolean isUnix)
Builds a start session command.
|
Modifier and Type | Method and Description |
---|---|
void |
addCcmAddrToSessionMapFile(hudson.FilePath ccmSessionMapFile) |
String[] |
buildCommand(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.
|
String |
getCcmAddr() |
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 StartCommand(String database, String engine, String login, String password, boolean remoteClient, String pathName, boolean isUnix)
database
- The database pathlogin
- The user loginpassword
- The user passwordremoteClient
- Use remote client flagpathName
- The path namepublic String[] buildCommand(String ccmAddr)
Command
buildCommand
in class Command
public boolean[] buildMask()
Command
public void parseResult(String result)
Command
parseResult
in class Command
public String getCcmAddr()
public boolean isStatusOK(int status, String result)
Command
isStatusOK
in class Command
status
- The ccm process return coderesult
- The ccm process outputpublic void addCcmAddrToSessionMapFile(hudson.FilePath ccmSessionMapFile) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2008-2013. All Rights Reserved.