de.uniba.wiai.lspi.chord.console.command
Class ChangeProtocol
java.lang.Object
de.uniba.wiai.lspi.util.console.Command
de.uniba.wiai.lspi.chord.console.command.ChangeProtocol
public class ChangeProtocol
- extends Command
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMMAND_NAME
public static final String COMMAND_NAME
- See Also:
- Constant Field Values
ChangeProtocol
public ChangeProtocol(Object[] toCommand,
PrintStream out)
exec
public void exec()
throws ConsoleException
- Description copied from class:
Command
- To be overwritten by subclasses for command execution. The work of a
command implementation is done in this method.
- Specified by:
exec in class Command
- Throws:
ConsoleException - Exception during execution.
getCommandName
public String getCommandName()
- Description copied from class:
Command
- Return the name of the command. Must not contain spaces. To be
overwritten by subclasses.
- Specified by:
getCommandName in class Command
- Returns:
- The commands name. For example:
exit.
printOutHelp
public void printOutHelp()
- Description copied from class:
Command
- To be overwritten. Display the help text of the Command.
- Specified by:
printOutHelp in class Command
Copyright © 2004-2008 Karsten Loesing, Sven Kaffille - Distributed and Mobile Systems Group, Lehrstuhl für Praktische Informatik, Universität Bamberg. All Rights Reserved.