public class ConnectorServerImpl extends ConnectorServer
| Constructor and Description |
|---|
ConnectorServerImpl() |
| Modifier and Type | Method and 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.
|
getBundleParentClassLoader, getBundleURLs, getIfAddress, getKeyHash, getKeyManagers, getMaxConnections, getMaxWorkers, getMinWorkers, getPort, getUseSSL, newInstance, setBundleParentClassLoader, setBundleURLs, setIfAddress, setKeyHash, setKeyManagers, setMaxConnections, setMaxWorkers, setMinWorkers, setPort, setUseSSLpublic Long getStartTime()
ConnectorServerSystem.currentTimeMillis()getStartTime in class ConnectorServerpublic boolean isStarted()
ConnectorServerisStarted in class ConnectorServerpublic void start()
ConnectorServerstart in class ConnectorServerpublic void stop()
ConnectorServerstop in class ConnectorServerpublic void awaitStop()
throws InterruptedException
ConnectorServerConnectorServer.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.awaitStop in class ConnectorServerInterruptedException - if the waiting thread is interrupted.Copyright © 2022. All rights reserved.