public class StatCommandHandler extends AbstractStubCommandHandler implements CommandHandler
status property.
Each invocation record stored by this CommandHandler includes the following data element key/values:
PATHNAME_KEY ("pathname") - the pathname of the directory (or file) submitted on the
invocation (the first command parameter); this parameter is optional, so the value may be null.
SystCommandHandler| Modifier and Type | Field and Description |
|---|---|
static String |
PATHNAME_KEY |
replyCode, replyMessageKey, replyTextLOG| Constructor and Description |
|---|
StatCommandHandler()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handleCommand(Command command,
Session session,
InvocationRecord invocationRecord)
Handle the specified command for the session.
|
void |
setStatus(String status)
Set the contents of the status to send back as the reply text for this command
|
sendReply, sendReply, setReplyCode, setReplyMessageKey, setReplyTextclearInvocations, getInvocation, handleCommand, numberOfInvocations, sendReplyassertValidReplyCode, getReplyTextBundle, quotes, setReplyTextBundleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleCommandpublic static final String PATHNAME_KEY
public void handleCommand(Command command, Session session, InvocationRecord invocationRecord)
AbstractTrackingCommandHandlerhandleCommand in class AbstractTrackingCommandHandlercommand - - the Command to be handledsession - - the session on which the Command was submittedinvocationRecord - - the InvocationRecord; CommandHandlers are expected to add
handler-specific data to the InvocationRecord, as appropriatepublic void setStatus(String status)
status - - the statusCopyright © 2016. All rights reserved.