Interface JCoServerStateChangedListener


public interface JCoServerStateChangedListener
JCo server state change listener interface. An application implements this interface if it wants to know when a server changes its state.
  • Method Details

    • serverStateChangeOccurred

      void serverStateChangeOccurred(JCoServer server, JCoServerState oldState, JCoServerState newState)
      This method is called whenever a server state change occurred. If a JCoServerStateChangedListener is added while an event is fired to already existing listeners, it won' t be notified about this last event. If a JCoServerStateChangedListener is removed from the list of listeners while an event is fired, it will be notified about this last event.
      Parameters:
      server - the server for which the state has changed
      oldState - the old state as it was before the change
      newState - the new state after ther change