public class WatchersCommand extends BasicCommand
clientServices, files, requests
builder
localDirectory
Constructor and Description |
---|
WatchersCommand()
Construct a new watchers 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)
Creates and returns the WatchersBuilder.
|
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()
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
|
void |
resetCVSCommand()
resets all switches in the command.
|
boolean |
setCVSCommand(char opt,
java.lang.String optArg)
takes the arguments and sets the command.
|
addArgumentRequest, addArgumentRequests, addDirectoryRequest, addRequest, addRequestForFile, addRequestForWorkingDirectory, addRequestsForDirectory, addRequestsForFile, appendFileArguments, assumeLocalPathWhenUnspecified, doesCheckFileTime, getFileEndingWith, getFiles, getRecursive, getXthFile, isRecursive, sendEntryAndModifiedRequests, setFiles, setRecursive
isBuilderSet, messageSent, messageSent, setBuilder
clone, fileAdded, fileInfoGenerated, fileRemoved, fileToRemove, fileUpdated, getDisplayName, getGlobalOptions, getLocalDirectory, getLocalPath, getRelativeToLocalPathInUnixStyle, getTrimmedString, hasFailed, moduleExpanded, setDisplayName, setLocalDirectory
public Builder createBuilder(EventManager eventManager)
createBuilder
in class BuildableCommand
eventMan
- the event manager used to receive events.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 requestsCommandException
- if an error occurs executing the commandAuthenticationException
public void commandTerminated(TerminationEvent e)
commandTerminated
in interface CVSListener
commandTerminated
in class BuildableCommand
public java.lang.String getCVSCommand()
getCVSCommand
in class Command
public boolean setCVSCommand(char opt, java.lang.String optArg)
setCVSCommand
in class Command
public java.lang.String getOptString()
getOptString
in class Command
public void resetCVSCommand()
resetCVSCommand
in class Command
public java.lang.String getCVSArguments()
getCVSArguments
in class Command
Built on January 12 2013. | Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.