|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectmessageServerP.Command
public class Command
A command given by the administrator through the Human interface.
Field Summary | |
---|---|
private java.lang.String |
str
|
private int |
type
|
Constructor Summary | |
---|---|
private |
Command(int type)
The constructor for a command with no arguments. |
private |
Command(int type,
java.lang.String str)
The constructor for a command with one string as argument. |
Method Summary | |
---|---|
java.lang.String |
getFilename()
|
boolean |
isBackup()
|
boolean |
isChangeInterfaceToGUI()
|
boolean |
isChangeInterfaceToText()
|
boolean |
isPrintLoadStatistics()
|
boolean |
isPrintUsersStatistics()
|
boolean |
isShutdown()
|
static Command |
makeBackup(java.lang.String filename)
"backup" command constructor. |
static Command |
makeChangeInterfaceToGUI()
"change interface to gui" command constructor. |
static Command |
makeChangeInterfaceToText()
"change interface to textual" command constructor. |
static Command |
makePrintLoadStatistics()
"print load statistics" command constructor. |
static Command |
makePrintUsersStatistics()
"print user statistics" command constructor. |
static Command |
makeShutdown()
"shutdown" command constructor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int type
private java.lang.String str
Constructor Detail |
---|
private Command(int type)
type
- the command type.private Command(int type, java.lang.String str)
type
- the command type.str
- the string argumentMethod Detail |
---|
public boolean isPrintUsersStatistics()
public boolean isPrintLoadStatistics()
public boolean isShutdown()
public boolean isChangeInterfaceToGUI()
public boolean isChangeInterfaceToText()
public boolean isBackup()
public static Command makePrintUsersStatistics()
public static Command makePrintLoadStatistics()
public static Command makeShutdown()
public static Command makeChangeInterfaceToGUI()
public static Command makeChangeInterfaceToText()
public static Command makeBackup(java.lang.String filename)
filename
- the file name to backup to.
public java.lang.String getFilename()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |