public class WatchersCommand extends BasicCommand
clientServices, files, requestsbuilderlocalDirectory| 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.
|
String |
getCVSArguments()
Returns the arguments of the command in the command-line style.
|
String |
getCVSCommand()
This method returns how the command would looklike when typed on the
command line.
|
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,
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, setRecursiveisBuilderSet, messageSent, messageSent, setBuilderclone, fileAdded, fileInfoGenerated, fileRemoved, fileToRemove, fileUpdated, getDisplayName, getGlobalOptions, getLocalDirectory, getLocalPath, getRelativeToLocalPathInUnixStyle, getTrimmedString, hasFailed, moduleExpanded, setDisplayName, setLocalDirectorypublic Builder createBuilder(EventManager eventManager)
createBuilder in class BuildableCommandeventMan - the event manager used to receive events.public 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 requestsCommandException - if an error occurs executing the commandAuthenticationExceptionpublic void commandTerminated(TerminationEvent e)
commandTerminated in interface CVSListenercommandTerminated in class BuildableCommandpublic String getCVSCommand()
getCVSCommand in class Commandpublic boolean setCVSCommand(char opt,
String optArg)
setCVSCommand in class Commandpublic String getOptString()
getOptString in class Commandpublic void resetCVSCommand()
resetCVSCommand in class Commandpublic String getCVSArguments()
getCVSArguments in class CommandCopyright © 2013. All rights reserved.