Class ConnectorServerImpl
- java.lang.Object
-
- org.identityconnectors.framework.server.ConnectorServer
-
- org.identityconnectors.framework.server.impl.ConnectorServerImpl
-
public class ConnectorServerImpl extends ConnectorServer
-
-
Constructor Summary
Constructors Constructor Description ConnectorServerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidawaitStop()Waits for the server to stop.LonggetStartTime()Gets the time when the servers was started last time.booleanisStarted()Return true if the server is started.voidstart()Starts the server.voidstop()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
-
-
-
-
Method Detail
-
getStartTime
public Long getStartTime()
Description copied from class:ConnectorServerGets the time when the servers was started last time.System.currentTimeMillis()- Specified by:
getStartTimein classConnectorServer- Returns:
- last start dateTime in milliseconds
-
isStarted
public boolean isStarted()
Description copied from class:ConnectorServerReturn true if 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:
isStartedin classConnectorServer- Returns:
- true if the server is started.
-
start
public void start()
Description copied from class:ConnectorServerStarts the server. All server settings must be configured prior to calling. The following methods are required to be called:- Specified by:
startin classConnectorServer
-
stop
public void stop()
Description copied from class:ConnectorServerStops the server gracefully. Returns when all in-progress connections have been serviced.- Specified by:
stopin classConnectorServer
-
awaitStop
public void awaitStop() throws InterruptedExceptionDescription copied from class:ConnectorServerWaits for the server to stop. Similarly to theConnectorServer.isStarted()method, this method depends on the server's logical state. The trigger that wakes up waiting threads is a call to theConnectorServer.stop()method, not the health of the server.- Specified by:
awaitStopin classConnectorServer- Throws:
InterruptedException- if the waiting thread is interrupted.
-
-