|
QuickServer v1.4.7 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface is for any class that would like to become a server hook. These are event listeners to the QuickServer.
Following types of Server hooks are currently supported. pre-startup, post-startup, pre-shutdown, post-shutdown. These classes should have a default constructor.
ServerHooks,
InitServerHook| Field Summary | |
static int |
POST_SHUTDOWN
|
static int |
POST_STARTUP
|
static int |
PRE_SHUTDOWN
|
static int |
PRE_STARTUP
|
| Method Summary | |
boolean |
handleEvent(int event)
Invoked pre/post server event. |
java.lang.String |
info()
Information about the server hook. |
void |
initHook(QuickServer quickserver)
Method called to perform any initialisation |
| Field Detail |
public static final int PRE_STARTUP
public static final int POST_STARTUP
public static final int PRE_SHUTDOWN
public static final int POST_SHUTDOWN
| Method Detail |
public java.lang.String info()
public void initHook(QuickServer quickserver)
quickserver - is the server to which hook belongs to.public boolean handleEvent(int event)
PRE_STARTUP,
POST_STARTUP,
PRE_SHUTDOWN,
POST_SHUTDOWN
|
QuickServer v1.4.7 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||