public class StatusCommand extends BasicCommand
| Constructor and Description |
|---|
StatusCommand()
Construct a new status command
|
| Modifier and Type | Method and Description |
|---|---|
void |
commandTerminated(TerminationEvent e)
called when server responses with "ok" or "error", (when the command finishes)
|
Builder |
createBuilder(EventManager eventManager)
Create a builder for this command.
|
void |
execute(ClientServices client,
EventManager em)
Execute a command
|
java.lang.String |
getCVSArguments()
Returns the arguments of the command in the command-line style.
|
java.lang.String |
getCVSCommand()
This method returns how the command would looklike when typed on the command line.
|
java.lang.String |
getOptString()
String returned by this method defines which options are available for this particular command
|
boolean |
isIncludeTags()
Getter for property includeTags.
|
void |
resetCVSCommand()
resets all switches in the command.
|
boolean |
setCVSCommand(char opt,
java.lang.String optArg)
takes the arguments and sets the command.
|
void |
setIncludeTags(boolean inclTags)
Setter for property includeTags.
|
getFileEndingWith, getFiles, getRecursive, getXthFile, isRecursive, setFiles, setRecursivemessageSent, messageSent, setBuilderclone, fileAdded, fileInfoGenerated, fileRemoved, fileToRemove, fileUpdated, getDisplayName, getGlobalOptions, getLocalDirectory, getLocalPath, getRelativeToLocalPathInUnixStyle, hasFailed, moduleExpanded, setDisplayNamepublic Builder createBuilder(EventManager eventManager)
createBuilder in class BuildableCommandeventMan - the event manager used to receive events.public void execute(ClientServices client, EventManager em) throws CommandException, AuthenticationException
execute in class BasicCommandclient - the client services object that provides any necessary
services to this command, including the ability to actually process
all the requests.CommandException - if an error occurs executing the commandAuthenticationExceptionpublic boolean isIncludeTags()
public void setIncludeTags(boolean inclTags)
includeTags - New value of property includeTags.public void commandTerminated(TerminationEvent e)
commandTerminated in interface CVSListenercommandTerminated in class BuildableCommandpublic java.lang.String getCVSCommand()
getCVSCommand in class Commandpublic boolean setCVSCommand(char opt,
java.lang.String optArg)
setCVSCommand in class Commandpublic java.lang.String getOptString()
getOptString in class Commandpublic void resetCVSCommand()
resetCVSCommand in class Commandpublic java.lang.String getCVSArguments()
getCVSArguments in class Command