|
RSE Release 2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISystemHostPool
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.rse.core.model.IRSEPersistableContainer |
|---|
NO_CHILDREN |
| Method Summary | |
|---|---|
boolean |
addHost(IHost conn)
Add a new connection to the list. |
IHost |
cloneHost(ISystemHostPool targetPool,
IHost conn,
String aliasName)
Duplicates a given connection in this list within this list or another list. |
IHost |
createHost(IRSESystemType systemType,
String aliasName,
String hostName)
Create a connection object, given only the minimal information. |
IHost |
createHost(IRSESystemType systemType,
String aliasName,
String hostName,
String description)
Create a connection object, given all the possible attributes except default userId. |
IHost |
createHost(IRSESystemType systemType,
String aliasName,
String hostName,
String description,
String defaultUserId,
int defaultUserIdLocation)
Create a connection object, given all the possible attributes. |
void |
deleteHost(IHost conn)
Removes a given connection from the list and deletes it from disk. |
IHost |
getHost(int pos)
Return the connection at the given zero-based offset |
IHost |
getHost(String aliasName)
Return a connection given its name. |
int |
getHostCount()
Return the number of SystemConnection objects within this pool. |
List |
getHostList()
|
int |
getHostPosition(IHost conn)
Return the zero-based position of a SystemConnection object within its profile. |
IHost[] |
getHosts()
Return array of connections in this pool |
String |
getName()
|
ISystemProfile |
getSystemProfile()
Return the system profile that owns this connection pool |
void |
moveHosts(IHost[] conns,
int delta)
Move existing connections a given number of positions in the same pool. |
void |
orderHosts(String[] names)
Order connections according to user preferences. |
void |
renameHost(IHost conn,
String newName)
Renames a given connection in the list. |
void |
renameHostPool(String newName)
Rename this connection pool. |
void |
setName(String value)
|
void |
updateHost(IHost conn,
IRSESystemType systemType,
String aliasName,
String hostName,
String description,
String defaultUserId,
int defaultUserIdLocation)
Update an existing connection given the new information. |
| Methods inherited from interface org.eclipse.rse.core.model.IRSEPersistableContainer |
|---|
commit, getPersistableChildren, getPersistableParent, isDirty, isTainted, setDirty, setTainted, setWasRestored, wasRestored |
| Method Detail |
|---|
ISystemProfile getSystemProfile()
void renameHostPool(String newName)
IHost[] getHosts()
IHost createHost(IRSESystemType systemType,
String aliasName,
String hostName)
throws Exception
THE RESULTING CONNECTION OBJECT IS ADDED TO THE LIST OF EXISTING CONNECTIONS FOR YOU.
systemType - system type matching one of the system types
defined via the systemTypes extension point.aliasName - unique connection name.hostName - ip name of host.
Exception
IHost createHost(IRSESystemType systemType,
String aliasName,
String hostName,
String description)
throws Exception
THE RESULTING CONNECTION OBJECT IS ADDED TO THE LIST OF EXISTING CONNECTIONS FOR YOU.
systemType - system type matching one of the system types
defined via the systemTypes extension point.aliasName - unique connection name.hostName - ip name of host.description - optional description of the connection. Can be null.
Exception
IHost createHost(IRSESystemType systemType,
String aliasName,
String hostName,
String description,
String defaultUserId,
int defaultUserIdLocation)
throws Exception
The new connection is added to the list and saved to disk.
systemType - system type matching one of the system types
defined via the systemTypes extension point.aliasName - unique connection name.hostName - ip name of host.description - optional description of the connection. Can be null.defaultUserId - userId to use as the default for the subsystems.defaultUserIdLocation - where to set the given default user Id. See IRSEUserIdConstants for values.
ExceptionIRSEUserIdConstants
void updateHost(IHost conn,
IRSESystemType systemType,
String aliasName,
String hostName,
String description,
String defaultUserId,
int defaultUserIdLocation)
throws Exception
conn - SystemConnection to be updatedsystemType - system type matching one of the system types
defined via the systemType extension point.aliasName - unique connection name.hostName - ip name of host.description - optional description of the connection. Can be null.defaultUserId - userId to use as the default for the subsystems.defaultUserIdLocation - where to set the given default user Id from IRSEUserIdConstants.
ExceptionIRSEUserIdConstantsIHost getHost(String aliasName)
IHost getHost(int pos)
boolean addHost(IHost conn)
void deleteHost(IHost conn)
This will:
conn - SystemConnection object to remove
void renameHost(IHost conn,
String newName)
throws Exception
conn - SystemConnection object to renamenewName - The new name to give that connection.
Exceptionint getHostPosition(IHost conn)
int getHostCount()
IHost cloneHost(ISystemHostPool targetPool,
IHost conn,
String aliasName)
throws Exception
targetPool - The SystemConnectionPool to hold the copied connection. Can equal this connection, as long as alias name is uniqueconn - SystemConnection object (within our pool) to clonealiasName - New, unique, alias name to give this connection. Clone will fail if this is not unique.
Exception
void moveHosts(IHost[] conns,
int delta)
conns - Array of SystemConnections to move.delta - the amount by which to move the hosts within this poolvoid orderHosts(String[] names)
String getName()
void setName(String value)
value - The new value of the Name attributeList getHostList()
|
RSE Release 2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||