org.sdnplatform.sync.client
Class SyncClient.QuitCommand

java.lang.Object
  extended by org.sdnplatform.sync.client.ShellCommand
      extended by org.sdnplatform.sync.client.SyncClient.QuitCommand
Enclosing class:
SyncClient

protected static class SyncClient.QuitCommand
extends ShellCommand

Quit command

Author:
readams

Field Summary
 
Fields inherited from class org.sdnplatform.sync.client.ShellCommand
mapper, mjf
 
Constructor Summary
protected SyncClient.QuitCommand()
           
 
Method Summary
 boolean execute(java.lang.String[] tokens, java.lang.String line)
          Execute the command on the given tokens
 java.lang.String syntaxString()
          Return syntax description
 
Methods inherited from class org.sdnplatform.sync.client.ShellCommand
serializeJson, validateJson
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncClient.QuitCommand

protected SyncClient.QuitCommand()
Method Detail

execute

public boolean execute(java.lang.String[] tokens,
                       java.lang.String line)
Description copied from class: ShellCommand
Execute the command on the given tokens

Specified by:
execute in class ShellCommand
Parameters:
tokens - the argument tokens. The first token will be the command
line - the whole command line
Returns:
whether to exit the shell after the command

syntaxString

public java.lang.String syntaxString()
Description copied from class: ShellCommand
Return syntax description

Specified by:
syntaxString in class ShellCommand
Returns:
the syntax string