|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.larsan.urd.cmd.CmdEvent
The command event is thrown by the command reader. Listeners should implement
the CmdEventListener.
| Field Summary | |
static int |
HELP
Help command, print a help message to screen. |
static int |
INFO
List service info command |
static int |
KILL
Kill command, immediate shutdown. |
static int |
LIST
List service command |
static int |
SHUTDOWN
Shutdown frameowrk command |
static int |
START
Start service command |
static int |
STOP
Stop service command |
static int |
THREADS
List all threads |
| Constructor Summary | |
CmdEvent(int type,
CmdWriter writer)
Create an event. |
|
CmdEvent(int type,
CmdWriter writer,
java.lang.String[] args)
Create an event with a type and arguments. |
|
| Method Summary | |
java.lang.String[] |
getArguments()
Get event arguments. |
int |
getType()
Get event type. |
CmdWriter |
getWriter()
Get the source writer of this event. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int KILL
public static final int HELP
public static final int START
public static final int STOP
public static final int LIST
public static final int SHUTDOWN
public static final int INFO
public static final int THREADS
| Constructor Detail |
public CmdEvent(int type,
CmdWriter writer,
java.lang.String[] args)
type - Event type, static identifiers in this classargs - Event arguments, may be null
public CmdEvent(int type,
CmdWriter writer)
type - Event type, static identifiers in this class| Method Detail |
public int getType()
public java.lang.String[] getArguments()
public CmdWriter getWriter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||