public interface ServerHook
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| Modifier and Type | Field and Description |
|---|---|
static int |
POST_SHUTDOWN |
static int |
POST_STARTUP |
static int |
PRE_SHUTDOWN |
static int |
PRE_STARTUP |
| Modifier and Type | Method and Description |
|---|---|
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
|
static final int PRE_STARTUP
static final int POST_STARTUP
static final int PRE_SHUTDOWN
static final int POST_SHUTDOWN
java.lang.String info()
void initHook(QuickServer quickserver)
quickserver - is the server to which hook belongs to.boolean handleEvent(int event)
PRE_STARTUP,
POST_STARTUP,
PRE_SHUTDOWN,
POST_SHUTDOWNCopyright © 2003-2014 QuickServer.org