|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.wst.server.core.ServerEvent
An event fired when a server change or module changes.
Field Summary | |
---|---|
static int |
MODULE_CHANGE
For event on module changes. |
static int |
PUBLISH_STATE_CHANGE
Fired when published is needed or no longer needs to be published, or it's state has changed. |
static int |
RESTART_STATE_CHANGE
For notification when the server isRestartNeeded() property changes. |
static int |
SERVER_CHANGE
For event on server changes. |
static int |
STATE_CHANGE
For notification when the state has changed. |
Constructor Summary | |
---|---|
ServerEvent(int kind,
IServer server,
IModule[] module,
int state,
int publishingState,
boolean restartState)
Create a new ServerEvent for module change events. |
|
ServerEvent(int kind,
IServer server,
int state,
int publishingState,
boolean restartState)
Create a new server event for server change events. |
Method Summary | |
---|---|
int |
getKind()
Returns the kind of the server event. |
IModule[] |
getModule()
Returns the module tree of the module involved in the module change event, or null if the event is not a module event, i.e. |
int |
getPublishState()
Get the publish state after the change that triggers this server event. |
boolean |
getRestartState()
Get the restart state after isRestartNeeded() property change event. |
IServer |
getServer()
Returns the server involved in the change event. |
int |
getState()
Get the state after the change that triggers this server event. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int STATE_CHANGE
This kind is mutually exclusive with PUBLISH_STATE_CHANGE
and
RESTART_STATE_CHANGE
.
getKind()
,
Constant Field Valuespublic static final int PUBLISH_STATE_CHANGE
This kind is mutually exclusive with STATE_CHANGE
and
RESTART_STATE_CHANGE
.
getKind()
,
Constant Field Valuespublic static final int RESTART_STATE_CHANGE
This kind is mutually exclusive with STATE_CHANGE
and
PUBLISH_STATE_CHANGE
.
getKind()
,
Constant Field Valuespublic static final int SERVER_CHANGE
MODULE_CHANGE
.
getKind()
,
Constant Field Valuespublic static final int MODULE_CHANGE
SERVER_CHANGE
.
getKind()
,
Constant Field ValuesConstructor Detail |
public ServerEvent(int kind, IServer server, int state, int publishingState, boolean restartState)
kind
- the kind of the change. (XXX_CHANGE
). If the kind does not
include the SERVER_CHANGE
kind, the SERVER_CHANGE will be added automatically.
constants declared on ServerEvent
server
- the server that the server event takes placestate
- the server state after the change (STATE_XXX
)
constants declared on IServer
publishingState
- the server publishing state after the
change (PUBLISH_STATE_XXX
)
constants declared on IServer
restartState
- get the server restart state after the server is restart
needed property change eventpublic ServerEvent(int kind, IServer server, IModule[] module, int state, int publishingState, boolean restartState)
kind
- the kind of the change. (XXX_CHANGE
). If the kind does not
include the MODULE_CHANGE
kind, the MODULE_CHANGE will be added automatically.
constants declared on ServerEvent
server
- the server that the module event takes placemodule
- the module that has changedstate
- the module state after the change (STATE_XXX
)
constants declared on IServer
publishingState
- the module publishing state after the
change (PUBLISH_STATE_XXX
)
constants declared on IServer
restartState
- get the module restart state after the module is restart
needed property change event.Method Detail |
public int getKind()
This kind can be used to test whether this event is a server event or module event by using the following code (the example is checking for the server event): ((getKind() | SERVER_CHANGE) != 0) the following code (the example is checking for the module event): ((getKind() | MODULE_CHANGE) != 0)
XXX_CHANGE
constants declared on ServerEvent
public IModule[] getModule()
null
if the event is not a module event, i.e. isModuleEvent() is false.
null
if the event is not a module event, i.e.
isModuleEvent() is false.public int getPublishState()
PUBLISH_STATE_XXX
)
constants declared on IServer
public boolean getRestartState()
true
if restart is needed, and
false
otherwisepublic int getState()
STATE_XXX
)
constants declared on IServer
public IServer getServer()
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |