|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.dstore.core.client.ClientConnection
ClientConnection provides the standard means of creating a new connection to a DataStore.
Field Summary | |
---|---|
static String |
CLIENT_OLDER
|
static String |
Copyright
|
static String |
INCOMPATIBLE_CLIENT_UPDATE
|
static String |
INCOMPATIBLE_PROTOCOL
|
static String |
INCOMPATIBLE_SERVER_UPDATE
|
static String |
SERVER_OLDER
|
Constructor Summary | |
---|---|
ClientConnection(String name)
Creates a new ClientConnection instance |
|
ClientConnection(String name,
DomainNotifier notifier)
Creates a new ClientConnection instance |
|
ClientConnection(String name,
DomainNotifier notifier,
int initialSize)
Creates a new ClientConnection instance |
|
ClientConnection(String name,
int initialSize)
Creates a new ClientConnection instance |
Method Summary | |
---|---|
void |
addLoader(ExternalLoader loader)
Adds a loader to be used to instantiate the miners |
ConnectionStatus |
connect(boolean launchServer,
String user,
String password)
Connects to a remote DataStore by first communicating with a remote daemon and then connecting to the DataStore. |
ConnectionStatus |
connect(String ticket)
Connects to a remote DataStore. |
ConnectionStatus |
connect(String ticket,
int timeout)
|
void |
disconnect()
Disconnects from the DataStore and cleans up DataStore meta-information |
protected ConnectionStatus |
doConnect(String ticket)
|
DataStore |
getDataStore()
Returns the DataStore that the client is connected to. |
String |
getHost()
Returns the hostname/IP of the host to connect to |
String |
getHostDirectory()
Returns the default working directory on the host machine |
String |
getPort()
Returns the number of the socket port to connect to |
DataStoreTrustManager |
getTrustManager()
|
boolean |
isConnected()
Indicates whether the client is connected to the DataStore |
ConnectionStatus |
launchServer(String user,
String password)
Connects to a remote daemon and tells the daemon to launch a DataStore server. |
ConnectionStatus |
launchServer(String user,
String password,
int daemonPort)
Connects to a remote daemon and tells the daemon to launch a DataStore server. |
ConnectionStatus |
localConnect()
Creates and connects to a local DataStore to work with in the current process. |
void |
setHost(String host)
Specifies the hostname or IP of the host to connect to |
void |
setHostDirectory(String directory)
Specifies the default working directory on the remote machine |
void |
setLoaders(ArrayList loaders)
Specifies the loaders used to instantiate the miners |
void |
setPort(String port)
Specifies the number of the socket port to connect to |
void |
setSSLProperties(ISSLProperties properties)
|
void |
setUsingSSL(boolean flag)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String Copyright
public static String INCOMPATIBLE_SERVER_UPDATE
public static String INCOMPATIBLE_CLIENT_UPDATE
public static String SERVER_OLDER
public static String CLIENT_OLDER
public static String INCOMPATIBLE_PROTOCOL
Constructor Detail |
public ClientConnection(String name)
name
- an identifier for this connectionpublic ClientConnection(String name, int initialSize)
name
- an identifier for this connectioninitialSize
- the number of elements to preallocate in the DataStorepublic ClientConnection(String name, DomainNotifier notifier)
name
- an identifier for this connectionnotifier
- the notifier used to keep the user interface in synch with the DataStorepublic ClientConnection(String name, DomainNotifier notifier, int initialSize)
name
- an identifier for this connectionnotifier
- the notifier used to keep the user interface in synch with the DataStoreinitialSize
- the number of elements to preallocate in the DataStoreMethod Detail |
public void setSSLProperties(ISSLProperties properties)
public void setUsingSSL(boolean flag)
flag
- whether to use SSL or notpublic void setLoaders(ArrayList loaders)
loaders
- the loaderspublic void addLoader(ExternalLoader loader)
loader
- the loaderpublic void setHost(String host)
host
- the hostname or IP of the machine to connect topublic void setPort(String port)
port
- the number of the socket port to connect topublic void setHostDirectory(String directory)
directory
- the remote working directorypublic String getHost()
public String getPort()
public String getHostDirectory()
public boolean isConnected()
public void disconnect()
public ConnectionStatus localConnect()
public ConnectionStatus connect(boolean launchServer, String user, String password)
launchServer
- an indication of whether to launch a DataStore on the daemon on notuser
- the user ID of the current user on the remote machinepassword
- the password of the current user on the remote machine
public DataStoreTrustManager getTrustManager()
public ConnectionStatus connect(String ticket)
ticket
- the ticket required to be granted access to the remote DataStore
public ConnectionStatus connect(String ticket, int timeout)
protected ConnectionStatus doConnect(String ticket)
public ConnectionStatus launchServer(String user, String password)
user
- the user ID of the current user on the remote machinepassword
- the password of the current user on the remote machine
public ConnectionStatus launchServer(String user, String password, int daemonPort)
user
- the user ID of the current user on the remote machinepassword
- the password of the current user on the remote machinedaemonPort
- the port of the daemon
public DataStore getDataStore()
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |