|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.uniba.wiai.lspi.util.console.Command
de.uniba.wiai.lspi.chord.console.command.CrashNodes
public class CrashNodes
This command can be used to crash a number of nodes in the local chord
network. The names of the nodes must be provided with help of
NAMES_PARAM.
crash -help into the
console.
| Field Summary | |
|---|---|
static String |
ALL_PARAM
Parameter to define that all nodes should be crashed. |
static String |
COMMAND_NAME
The name of this command. |
static String |
NAMES_PARAM
The name of the parameter defining the names of the nodes to crash. |
| Fields inherited from class de.uniba.wiai.lspi.util.console.Command |
|---|
HELP_ARG1, HELP_ARG2, out, parameters, toCommand |
| Constructor Summary | |
|---|---|
CrashNodes(Object[] toCommand1,
PrintStream out1)
Creates a new instance of CrashNodes |
|
| Method Summary | |
|---|---|
void |
exec()
To be overwritten by subclasses for command execution. |
String |
getCommandName()
Return the name of the command. |
void |
printOutHelp()
To be overwritten. |
| Methods inherited from class de.uniba.wiai.lspi.util.console.Command |
|---|
addParameter, execute, setParameters, setPrintStream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String COMMAND_NAME
public static final String NAMES_PARAM
public static final String ALL_PARAM
| Constructor Detail |
|---|
public CrashNodes(Object[] toCommand1,
PrintStream out1)
toCommand1 - out1 - | Method Detail |
|---|
public void exec()
throws ConsoleException
Command
exec in class CommandConsoleException - Exception during execution.public String getCommandName()
Command
getCommandName in class Commandexit.public void printOutHelp()
Command
printOutHelp in class Command
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||