public class WatchCommand extends BasicCommand
| Constructor and Description |
|---|
WatchCommand()
Construct a new WatchCommand.
|
| Modifier and Type | Method and Description |
|---|---|
void |
commandTerminated(TerminationEvent e)
If a builder was set-up, it's outputDone() method is called.
|
void |
execute(ClientServices client,
EventManager eventManager)
Executes this command.
|
java.lang.String |
getCVSArguments()
Returns the arguments of the command in the command-line style.
|
java.lang.String |
getCVSCommand()
Returns how this command would look like when typed on the command line.
|
java.lang.String |
getOptString()
String returned by this method defines which options are available for
this command.
|
Watch |
getWatch()
Returns the watch.
|
WatchMode |
getWatchMode()
Returns the WatchMode.
|
void |
resetCVSCommand()
Resets all switches in this command.
|
boolean |
setCVSCommand(char opt,
java.lang.String optArg)
Uses the specified argument to set the appropriate properties.
|
void |
setWatch(Watch watch)
Sets the watch.
|
void |
setWatchMode(WatchMode watchMode)
Sets the WatchMode.
|
getFileEndingWith, getFiles, getRecursive, getXthFile, isRecursive, setFiles, setRecursivecreateBuilder, messageSent, messageSent, setBuilderclone, fileAdded, fileInfoGenerated, fileRemoved, fileToRemove, fileUpdated, getDisplayName, getGlobalOptions, getLocalDirectory, getLocalPath, getRelativeToLocalPathInUnixStyle, hasFailed, moduleExpanded, setDisplayNamepublic void execute(ClientServices client, EventManager eventManager) 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 requestseventManager - the EventManager used for sending eventsjava.lang.IllegalStateException - if the commands options aren't set correctlyAuthenticationException - if the connection could not be establishedCommandException - if some other thing gone wrongpublic void commandTerminated(TerminationEvent e)
commandTerminated in interface CVSListenercommandTerminated in class BuildableCommandpublic 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 getCVSCommand()
getCVSCommand in class Commandpublic java.lang.String getCVSArguments()
getCVSArguments in class Commandpublic WatchMode getWatchMode()
public void setWatchMode(WatchMode watchMode)
public Watch getWatch()
public void setWatch(Watch watch)