hudson.plugins.synergy.impl
Class Command

java.lang.Object
  extended by hudson.plugins.synergy.impl.Command
Direct Known Subclasses:
CheckSessionCommand, CompareProjectCommand, CopyFolderCommand, CreateProjectBaselineCommand, FindAssociatedTaskCommand, FindCompletedSinceDateCommand, FindUseCommand, GetDelimiterCommand, GetNameCommand, GetProjectAttributeCommand, GetProjectInBaselineCommand, GetProjectStateCommand, ProjectConflicts, PublishBaselineCommand, SetProjectAttributeCommand, SetRoleCommand, StartCommand, StopCommand, SubProjectQueryCommand, TaskInfoCommand, UpdateCommand, WorkareaSnapshotCommand

public abstract class Command
extends java.lang.Object

Synergy text command returning some text.


Constructor Summary
Command()
           
 
Method Summary
abstract  java.lang.String[] buildCommand(java.lang.String ccmExe)
          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.
 boolean isStatusOK(int status)
          Return true if the given return status is ok for the command.
abstract  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

Command

public Command()
Method Detail

buildCommand

public abstract java.lang.String[] buildCommand(java.lang.String ccmExe)
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.


parseResult

public abstract void parseResult(java.lang.String result)
Parse the command result.


buildMask

public boolean[] buildMask()
Build a mask of values in the command line that should not be logged.


isStatusOK

public boolean isStatusOK(int status)
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.



Copyright © 2008-2009. All Rights Reserved.