|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
This is the interface implemented by ConnectorService (formerly System) objects.
A connector service manages a live connection to a remote system, with operations for connecting and disconnecting, and storing information typically cached from a subsystem: user ID, password, port, etc.
The SubSystem interface includes a method, getConnectorService(), which returns an instance of an object that implements this interface for that subsystem.
A single connector service object can be unique to a subsystem instance, but
it can also be shared across multiple subsystems in a single host if those
subsystems share a physical connection to the remote system. This sharing is done via
subclasses of AbstractConnectorServiceManager
which are returned by another getter method in SubSystem.
| Method Summary | |
|---|---|
void |
addCommunicationsListener(ICommunicationsListener listener)
Register a communications listener |
void |
clearPasswordCache()
Clear internal password cache. |
void |
clearPasswordCache(boolean clearDiskCache)
Clear internal password cache. |
void |
clearUserIdCache()
Clear internal userId cache. |
void |
connect(IProgressMonitor monitor)
Attempt to connect to the remote system. |
void |
deregisterSubSystem(ISubSystem ss)
Deregister the subsystem |
void |
disconnect(IProgressMonitor monitor)
Disconnect from the remote system |
String |
getHomeDirectory()
Return the home directory of the remote system for the current user, if available. |
IHost |
getHost()
Return the host |
String |
getHostName()
Return the host name for the connection this system's subsystem is associated with |
String |
getHostType()
Return the system type for this connection. |
String |
getName()
Return the name of this connector service |
int |
getPort()
Return the port for this connector |
ISubSystem |
getPrimarySubSystem()
Return the subsystem object this system is associated with |
IServerLauncherProperties |
getRemoteServerLauncherProperties()
Returns the value of the 'Remote Server Launcher' containment reference. |
ISubSystem[] |
getSubSystems()
Return all the subsystems that use this service |
String |
getTempDirectory()
Return the temp directory of the remote system for the current user, if available. |
String |
getUserId()
Return the userId for this system's subsystem we are associated with |
String |
getVersionReleaseModification()
Return the version, release, modification of the remote system, if connected, if applicable and if available. |
boolean |
hasRemoteServerLauncherProperties()
|
boolean |
inheritConnectionUserPassword()
Return true if this system can inherit the uid and password of other ISystems in this connection |
boolean |
isConnected()
Return true if currently connected. |
boolean |
isPasswordCached()
Return true if password is currently cached. |
boolean |
isPasswordCached(boolean onDisk)
Return true if password is currently cached. |
boolean |
isSuppressSignonPrompt()
Returns the suppressSignonPrompt flag. |
boolean |
isUsingSSL()
|
void |
notifyConnection()
Notifies all listeners of a connection through a communications event |
void |
notifyDisconnection()
Notifies all listeners of a disconnection through a communications event |
void |
notifyError()
Notifies all listeners of an error through a communications event |
void |
promptForPassword(boolean forcePrompt)
Return the password for this system's subsystem we are associated with. |
void |
registerSubSystem(ISubSystem ss)
Set the subsystem, when its not known at constructor time |
void |
removeCommunicationsListener(ICommunicationsListener listener)
Remove a communications listener |
boolean |
requiresPassword()
If a password is supported this is used to determine if the password is required. |
boolean |
requiresUserId()
Report if this connector service requires a user id. |
void |
reset()
Reset after some fundamental change, such as a hostname change. |
void |
setHost(IHost host)
|
void |
setIsUsingSSL(boolean flag)
|
void |
setPassword(String matchingUserId,
String password)
Set the password if you got it from somewhere |
void |
setPassword(String matchingUserId,
String password,
boolean persist)
Set the password if you got it from somewhere |
void |
setPort(int port)
Set the port for this connector |
void |
setRemoteServerLauncherProperties(IServerLauncherProperties value)
Sets the value of the ' Remote Server Launcher' containment reference |
void |
setSuppressSignonPrompt(boolean suppressSignonPrompt)
Sets the suppressSignonPrompt flag. |
void |
setUserId(String userId)
Set the user id for this connector |
boolean |
shareUserPasswordWithConnection()
|
boolean |
supportsPassword()
Can be used to determine if a password field is present on a login dialog for this connector service. |
boolean |
supportsRemoteServerLaunching()
|
boolean |
supportsServerLaunchProperties()
Tell us if this subsystem factory supports server launch properties, which allow the user to configure how the server-side code for these subsystems are started. |
boolean |
supportsUserId()
Report if this connector service can use a user identifier. |
| Methods inherited from interface org.eclipse.rse.core.model.IRSEModelObject |
|---|
getDescription |
| Methods inherited from interface org.eclipse.rse.core.model.IPropertySetContainer |
|---|
addPropertySet, addPropertySets, createPropertySet, createPropertySet, getPropertySet, getPropertySets, removePropertySet |
| Methods inherited from interface org.eclipse.rse.core.persistance.IRSEPersistableContainer |
|---|
commit, isDirty, setDirty, setWasRestored, wasRestored |
| Method Detail |
public ISubSystem getPrimarySubSystem()
public ISubSystem[] getSubSystems()
public void registerSubSystem(ISubSystem ss)
public void deregisterSubSystem(ISubSystem ss)
ss - public boolean isConnected()
public void connect(IProgressMonitor monitor)
throws Exception
Exception
public void disconnect(IProgressMonitor monitor)
throws Exception
Exceptionpublic void notifyDisconnection()
public void notifyConnection()
public void notifyError()
public void reset()
public String getVersionReleaseModification()
Up to each implementer to decide if this will be cached.
public String getHomeDirectory()
Up to each implementer to decide how to implement, and if this will be cached.
public String getTempDirectory()
Up to each implementer to decide how to implement, and if this will be cached.
public String getHostType()
public String getName()
getName in interface IRSEModelObjectpublic void setHost(IHost host)
public IHost getHost()
public String getHostName()
public int getPort()
public void setPort(int port)
port - public String getUserId()
public void setUserId(String userId)
userId - public boolean isUsingSSL()
public void setIsUsingSSL(boolean flag)
public void promptForPassword(boolean forcePrompt)
throws InterruptedException
If not currently set in transient memory, prompts the user for a password.
Throws InterruptedException if user is prompted and user cancels that prompt.
forcePrompt - forces the prompt dialog to be displayed even if the password is currently
in memory.
InterruptedException
public void setPassword(String matchingUserId,
String password)
public void setPassword(String matchingUserId,
String password,
boolean persist)
public void clearUserIdCache()
public void clearPasswordCache()
public void clearPasswordCache(boolean clearDiskCache)
clearDiskCache - if true, clears the password from diskpublic boolean isPasswordCached()
public boolean isPasswordCached(boolean onDisk)
public boolean inheritConnectionUserPassword()
public boolean shareUserPasswordWithConnection()
public void addCommunicationsListener(ICommunicationsListener listener)
public void removeCommunicationsListener(ICommunicationsListener listener)
public boolean isSuppressSignonPrompt()
public void setSuppressSignonPrompt(boolean suppressSignonPrompt)
suppressSignonPrompt - public IServerLauncherProperties getRemoteServerLauncherProperties()
Parent Sub System'.
Get the remote server launcher, which may be null. This an optional object containing properties used to launch the remote server that communicates with this subsystem.
#setRemoteServerLauncher(IServerLauncherProperties),
org.eclipse.rse.core.subsystems.SubsystemsPackage#getSubSystem_RemoteServerLauncher(),
org.eclipse.rse.core.subsystems.IServerLauncherProperties#getParentSubSystempublic void setRemoteServerLauncherProperties(IServerLauncherProperties value)
Remote Server Launcher' containment reference.
Set the remote server launcher, which is an optional object containing
properties used to launch the remote server that communicates with this subsystem.
value - the new value of the 'Remote Server Launcher' containment reference.#getRemoteServerLauncher()public boolean hasRemoteServerLauncherProperties()
public boolean supportsRemoteServerLaunching()
public boolean supportsServerLaunchProperties()
public boolean supportsUserId()
public boolean requiresUserId()
public boolean supportsPassword()
public boolean requiresPassword()
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||