Class ConnectionManager
java.lang.Object
ecmwf.common.ecaccess.ConnectionManager
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionManager(Class<?> name, String host, short port, boolean replace) Instantiates a new connection manager.ConnectionManager(Class<?> name, String host, short port, boolean replace, ClientInterface client) Instantiates a new connection manager. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidConnect.longCurrent time millis.voidDisconnected.Gets the connection.booleanChecks if is connected.voidshutdown()Shutdown.
-
Constructor Details
-
ConnectionManager
public ConnectionManager(Class<?> name, String host, short port, boolean replace, ClientInterface client) throws ConnectionException Instantiates a new connection manager.- Parameters:
name- the namehost- the hostport- the portreplace- the replaceclient- the client- Throws:
ConnectionException- the connection exception
-
ConnectionManager
public ConnectionManager(Class<?> name, String host, short port, boolean replace) throws ConnectionException Instantiates a new connection manager.- Parameters:
name- the namehost- the hostport- the portreplace- the replace- Throws:
ConnectionException- the connection exception
-
-
Method Details
-
getConnection
Gets the connection.- Returns:
- the connection
- Throws:
ConnectionException- the connection exception
-
currentTimeMillis
public long currentTimeMillis()Current time millis.- Returns:
- the long
-
connect
protected void connect(String host) throws RemoteException, ServerNotActiveException, NotBoundException, ConnectionException Connect.- Parameters:
host- the host- Throws:
RemoteException- the remote exceptionServerNotActiveException- the server not active exceptionNotBoundException- the not bound exceptionConnectionException- the connection exception
-
isConnected
public boolean isConnected()Checks if is connected.- Returns:
- true, if is connected
-
disconnected
public void disconnected()Disconnected. -
shutdown
public void shutdown()Shutdown.
-