org.eclipse.wst.server.core
Interface IServerListener
-
public interface IServerListener
This interface is used by the server to broadcast a change of state.
Usually, the change of state will be caused by some user action,
(e.g. requesting to start a server) however, it is equally fine for
a server to broadcast a change of state through no direct user action.
(e.g. stopping because the server crashed) This information can be
used to inform the user of the change or update the UI.
Note: The server listener event MUST NOT directly be used to modify
the server's or module's state via one of the server's method. For example,
a server stopped event cannot directly trigger a start(). Doing this may
cause the thread to hang.
-
Since:
- 1.0
serverChanged
void serverChanged(
ServerEvent event)
- A server or module has been changed as specified in the event.
-
-
Parameters:
-
event
- a server event that contains information on the change