|
Remote System Explorer DataStore Release 3.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.dstore.core.client.ClientConnection
public class ClientConnection
ClientConnection provides the standard means of creating a new connection to a DataStore.
Field Summary | |
---|---|
static String |
CANNOT_CONNECT
|
static String |
CLIENT_OLDER
|
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,
IDomainNotifier notifier)
Creates a new ClientConnection instance |
|
ClientConnection(String name,
IDomainNotifier notifier,
int initialSize)
Creates a new ClientConnection instance |
|
ClientConnection(String name,
int initialSize)
Creates a new ClientConnection instance |
Method Summary | |
---|---|
void |
addLoader(IExternalLoader 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)
|
ConnectionStatus |
connectDaemon(int daemonPort,
int timeout)
Connect to a remote daemon |
void |
disconnect()
Disconnects from the DataStore and cleans up DataStore meta-information |
protected ConnectionStatus |
doConnect(String ticket)
|
int |
getClientMinor()
|
int |
getClientVersion()
|
IDataStoreCompatibilityHandler |
getCompatibilityHandler()
|
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 |
Socket |
getLaunchSocket()
Reeturns the launch socket |
String |
getPort()
Returns the number of the socket port to connect to |
int |
getServerMinor()
|
int |
getServerVersion()
|
IDataStoreTrustManager |
getTrustManager()
|
boolean |
isConnected()
Indicates whether the client is connected to the DataStore |
boolean |
isKnownStatus(String status)
|
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 |
launchServer(String user,
String password,
int daemonPort,
int timeout)
|
ConnectionStatus |
localConnect()
Creates and connects to a local DataStore to work with in the current process. |
void |
setCompatibilityHandler(IDataStoreCompatibilityHandler handler)
|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String INCOMPATIBLE_SERVER_UPDATE
public static final String INCOMPATIBLE_CLIENT_UPDATE
public static final String SERVER_OLDER
public static final String CLIENT_OLDER
public static final String INCOMPATIBLE_PROTOCOL
public static final String CANNOT_CONNECT
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, IDomainNotifier notifier)
name
- an identifier for this connectionnotifier
- the notifier used to keep the user interface in synch
with the DataStorepublic ClientConnection(String name, IDomainNotifier 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 int getClientVersion()
public int getClientMinor()
public int getServerVersion()
public int getServerMinor()
public void setSSLProperties(ISSLProperties properties)
public void setCompatibilityHandler(IDataStoreCompatibilityHandler handler)
public IDataStoreCompatibilityHandler getCompatibilityHandler()
public void setLoaders(ArrayList loaders)
loaders
- the loaderspublic void addLoader(IExternalLoader 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 IDataStoreTrustManager 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 ConnectionStatus launchServer(String user, String password, int daemonPort, int timeout)
public ConnectionStatus connectDaemon(int daemonPort, int timeout)
daemonPort
- the port of the daemon
public Socket getLaunchSocket()
public DataStore getDataStore()
public boolean isKnownStatus(String status)
|
Remote System Explorer DataStore Release 3.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |