public class WatchCommand extends BasicCommand
clientServices, files, requests
builder
localDirectory
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.
|
String |
getCVSArguments()
Returns the arguments of the command in the command-line style.
|
String |
getCVSCommand()
Returns how this command would look like when typed on the command line.
|
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,
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.
|
addArgumentRequest, addArgumentRequests, addDirectoryRequest, addRequest, addRequestForFile, addRequestForWorkingDirectory, addRequestsForDirectory, addRequestsForFile, appendFileArguments, assumeLocalPathWhenUnspecified, doesCheckFileTime, getFileEndingWith, getFiles, getRecursive, getXthFile, isRecursive, sendEntryAndModifiedRequests, setFiles, setRecursive
createBuilder, isBuilderSet, messageSent, messageSent, setBuilder
clone, fileAdded, fileInfoGenerated, fileRemoved, fileToRemove, fileUpdated, getDisplayName, getGlobalOptions, getLocalDirectory, getLocalPath, getRelativeToLocalPathInUnixStyle, getTrimmedString, hasFailed, moduleExpanded, setDisplayName, setLocalDirectory
public void execute(ClientServices client, EventManager eventManager) throws CommandException, AuthenticationException
execute
in class BasicCommand
client
- 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 eventsIllegalStateException
- 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 CVSListener
commandTerminated
in class BuildableCommand
public boolean setCVSCommand(char opt, String optArg)
setCVSCommand
in class Command
public String getOptString()
getOptString
in class Command
public void resetCVSCommand()
resetCVSCommand
in class Command
public String getCVSCommand()
getCVSCommand
in class Command
public String getCVSArguments()
getCVSArguments
in class Command
public WatchMode getWatchMode()
public void setWatchMode(WatchMode watchMode)
public Watch getWatch()
public void setWatch(Watch watch)
Copyright © 2016. All rights reserved.