public class ConnectorServerImpl extends ConnectorServer
Constructor and Description |
---|
ConnectorServerImpl() |
Modifier and Type | Method and Description |
---|---|
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.
|
getBundleParentClassLoader, getBundleURLs, getIfAddress, getKeyHash, getKeyManagers, getMaxConnections, getMaxWorkers, getMinWorkers, getPort, getUseSSL, newInstance, setBundleParentClassLoader, setBundleURLs, setIfAddress, setKeyHash, setKeyManagers, setMaxConnections, setMaxWorkers, setMinWorkers, setPort, setUseSSL
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 © 2013. All Rights Reserved.