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, setUseSSL
public Long getStartTime()
ConnectorServer
System.currentTimeMillis()
getStartTime
in class ConnectorServer
public boolean isStarted()
ConnectorServer
isStarted
in class ConnectorServer
public void start()
ConnectorServer
start
in class ConnectorServer
public void stop()
ConnectorServer
stop
in class ConnectorServer
public void awaitStop() throws InterruptedException
ConnectorServer
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.awaitStop
in class ConnectorServer
InterruptedException
- if the waiting thread is interrupted.Copyright © 2022. All rights reserved.