public static interface DOFServer.StateListener
Modifier and Type | Method and Description |
---|---|
void |
removed(DOFServer server,
DOFException exception)
This method is called when this listener is removed from the DOFServer.
|
void |
stateChanged(DOFServer server,
DOFServer.State state)
This method will be called immediately when the listener
is added to the server with the current state of the server
(either "started" or "!started") and then will be called whenever
the state changes.
|
void stateChanged(DOFServer server, DOFServer.State state)
server
- The server that has changed state. This will never be null.state
- The current state of the server. This will never be null.void removed(DOFServer server, DOFException exception)
server
- The server which this listener was on. This will never be null.exception
- The exception that caused this listener to be removed, null means it was removed normally.