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 void
awaitStop()
Waits for the server to stop.Long
getStartTime()
Gets the time when the servers was started last time.boolean
isStarted()
Return true if 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
-
-
-
-
Method Detail
-
getStartTime
public Long getStartTime()
Description copied from class:ConnectorServer
Gets the time when the servers was started last time.System.currentTimeMillis()
- Specified by:
getStartTime
in classConnectorServer
- Returns:
- last start dateTime in milliseconds
-
isStarted
public boolean isStarted()
Description copied from class:ConnectorServer
Return 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:
isStarted
in classConnectorServer
- Returns:
- true if 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 classConnectorServer
-
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 classConnectorServer
-
awaitStop
public void awaitStop() throws InterruptedException
Description copied from class:ConnectorServer
Waits 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:
awaitStop
in classConnectorServer
- Throws:
InterruptedException
- if the waiting thread is interrupted.
-
-