Esempio n. 1
0
  /**
   * Shutdown the server
   *
   * @param immediate boolean
   */
  public void shutdownServer(boolean immediate) {

    //	Stop the RPC handlers

    if (m_udpHandler != null) {
      m_udpHandler.closeSessionHandler(this);
      m_udpHandler = null;
    }

    if (m_tcpHandler != null) {
      m_tcpHandler.closeSessionHandler(this);
      m_tcpHandler = null;
    }

    //	Fire a shutdown notification event

    fireServerEvent(ServerListener.ServerShutdown);
  }