org.identityconnectors.framework.server.impl
Class ConnectorServerImpl

java.lang.Object
  extended by org.identityconnectors.framework.server.ConnectorServer
      extended by org.identityconnectors.framework.server.impl.ConnectorServerImpl

public class ConnectorServerImpl
extends ConnectorServer


Constructor Summary
ConnectorServerImpl()
           
 
Method Summary
 void awaitStop()
          Waits for the server to stop.
 boolean isStarted()
          Return true iff the server is started.
 void start()
          Starts the server.
 void stop()
          Stops the server gracefully.
 
Methods inherited from class org.identityconnectors.framework.server.ConnectorServer
getBundleParentClassLoader, getBundleURLs, getIfAddress, getKeyHash, getKeyManagers, getMaxConnections, getMaxWorkers, getMinWorkers, getPort, getUseSSL, newInstance, setBundleParentClassLoader, setBundleURLs, setIfAddress, setKeyHash, setKeyManagers, setMaxConnections, setMaxWorkers, setMinWorkers, setPort, setUseSSL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectorServerImpl

public ConnectorServerImpl()
Method Detail

isStarted

public boolean isStarted()
Description copied from class: ConnectorServer
Return true iff the server is started. Note that started is a logical state (start method has been called). It does not necessarily reflect the health of the server

Specified by:
isStarted in class ConnectorServer
Returns:
true iff the server is started.

start

public void start()
Description copied from class: ConnectorServer
Starts the server. All server settings must be configured prior to calling. The following methods are required to be called:

Specified by:
start in class ConnectorServer

stop

public void stop()
Description copied from class: ConnectorServer
Stops the server gracefully. Returns when all in-progress connections have been serviced.

Specified by:
stop in class ConnectorServer

awaitStop

public void awaitStop()
               throws InterruptedException
Description copied from class: ConnectorServer
Waits for the server to stop. Similarly to the ConnectorServer.isStarted() method, this method depends on the server's logical state. The trigger that wakes up waiting threads is a call to the ConnectorServer.stop() method, not the health of the server.

Specified by:
awaitStop in class ConnectorServer
Throws:
InterruptedException - if the waiting thread is interrupted.


Copyright © 2011. All Rights Reserved.