|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEObjectImpl
com.ibm.etools.systems.model.impl.SystemConnectionPoolImpl
A pool of connection objects. There is one pool per profile.
Field Summary | |
---|---|
static String |
copyright
|
protected String |
name
|
protected static String |
NAME_EDEFAULT
The default value of the ' Name ' attribute |
Constructor Summary | |
---|---|
protected |
SystemConnectionPoolImpl()
Default constructor. |
Method Summary | |
---|---|
boolean |
addConnection(SystemConnection conn)
Adds given connection to the list. |
SystemConnection |
cloneConnection(SystemConnectionPool targetPool,
SystemConnection conn,
String aliasName)
Duplicates a given connection in this list within this list or another list. |
SystemConnection |
createConnection(String systemType,
String aliasName,
String hostName)
Create a connection object, given only the minimal information. |
SystemConnection |
createConnection(String systemType,
String aliasName,
String hostName,
String description)
Create a connection object, given all the possible attributes except default userId. |
SystemConnection |
createConnection(String systemType,
String aliasName,
String hostName,
String description,
String defaultUserId,
int defaultUserIdLocation)
Create a connection object, given all the possible attributes. |
void |
deleteConnection(SystemConnection conn)
Removes a given connection from the list and deletes it from disk. |
Object |
eGet(EStructuralFeature eFeature,
boolean resolve)
|
boolean |
eIsSet(EStructuralFeature eFeature)
|
void |
eSet(EStructuralFeature eFeature,
Object newValue)
|
protected EClass |
eStaticClass()
|
void |
eUnset(EStructuralFeature eFeature)
|
SystemConnection |
getConnection(int pos)
Return the connection at the given zero-based offset |
SystemConnection |
getConnection(String aliasName)
Return a connection object, given its alias name. |
int |
getConnectionCount()
Return the number of SystemConnection objects within this pool. |
protected IFolder |
getConnectionFolder(String connectionFolderName)
Return the folder for a given connection folder name |
protected IFolder |
getConnectionFolder(SystemConnection connection)
Return the folder for a given connection |
int |
getConnectionPosition(SystemConnection conn)
Return the zero-based position of a SystemConnection object within its profile. |
EList |
getConnections()
|
protected static SystemMOFHelpers |
getMOFHelpers()
|
String |
getName()
|
protected static String |
getRootSaveFileName(String connectionName)
Return the root save file name without the extension .xmi |
protected static String |
getRootSaveFileName(SystemConnection connection)
Return the root save file name without the extension .xmi |
protected static String |
getSaveFileName(SystemConnection connection)
Return the unqualified save file name with the extension .xmi |
static SystemConnectionPool |
getSystemConnectionPool(SystemProfile profile)
Return (and create if necessary) the connection pool for a given system profile. |
SystemConnection[] |
getSystemConnections()
Return array of connections in this pool |
SystemProfile |
getSystemProfile()
Return the system profile that owns this connection pool |
protected void |
invalidateCache()
|
void |
moveConnections(SystemConnection[] conns,
int delta)
Move existing connections a given number of positions in the same pool. |
void |
orderConnections(String[] names)
Order connections according to user preferences. |
void |
printConnections()
Private debug method to print connections, to test restored ok. |
void |
renameConnection(SystemConnection conn,
String newName)
Renames a given connection in the list. |
void |
renameConnectionPool(String newName)
Rename this connection pool. |
static void |
reset()
Reset for a full refresh from disk, such as after a team synch |
protected void |
restore()
Restore connections from disk |
protected SystemConnection |
restore(String connectionName)
Restore a connection of a given name from disk... |
void |
save()
Save all connections to disk. |
void |
save(SystemConnection connection)
Attempt to save single connection to disk. |
void |
setName(String newName)
|
String |
toString()
|
String |
toStringGen()
|
void |
updateConnection(SystemConnection conn,
String systemType,
String aliasName,
String hostName,
String description,
String defaultUserId,
int defaultUserIdLocation)
Update an existing connection given the new information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final String NAME_EDEFAULT
Name
' attribute.
getName()
public static final String copyright
protected String name
Constructor Detail |
protected SystemConnectionPoolImpl()
Method Detail |
protected EClass eStaticClass()
public static void reset()
public static SystemConnectionPool getSystemConnectionPool(SystemProfile profile) throws Exception
Exception
public SystemProfile getSystemProfile()
getSystemProfile
in interface SystemConnectionPool
public void renameConnectionPool(String newName)
renameConnectionPool
in interface SystemConnectionPool
public void printConnections()
public SystemConnection createConnection(String systemType, String aliasName, String hostName) throws Exception
THE RESULTING CONNECTION OBJECT IS ADDED TO THE LIST OF EXISTING CONNECTIONS FOR YOU.
createConnection
in interface SystemConnectionPool
systemType
- system type matching one of the system type names defined via the
systemtype extension point.aliasName
- unique connection name.hostName
- ip name of host.
Exception
public SystemConnection createConnection(String systemType, String aliasName, String hostName, String description) throws Exception
THE RESULTING CONNECTION OBJECT IS ADDED TO THE LIST OF EXISTING CONNECTIONS FOR YOU.
createConnection
in interface SystemConnectionPool
systemType
- system type matching one of the system type names defined via the
systemtype extension point.aliasName
- unique connection name.hostName
- ip name of host.description
- optional description of the connection. Can be null.
Exception
public SystemConnection createConnection(String 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.
createConnection
in interface SystemConnectionPool
systemType
- system type matching one of the system type names 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. See ISystemUserIdConstants
Exception
public void updateConnection(SystemConnection conn, String systemType, String aliasName, String hostName, String description, String defaultUserId, int defaultUserIdLocation) throws Exception
updateConnection
in interface SystemConnectionPool
conn
- SystemConnection to be updatedsystemType
- system type matching one of the system type names 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. See ISystemUserIdConstants
Exception
public SystemConnection[] getSystemConnections()
getSystemConnections
in interface SystemConnectionPool
protected void invalidateCache()
public SystemConnection getConnection(String aliasName)
getConnection
in interface SystemConnectionPool
aliasName
- unique aliasName (case insensitive) to search on.
public SystemConnection getConnection(int pos)
getConnection
in interface SystemConnectionPool
public int getConnectionPosition(SystemConnection conn)
getConnectionPosition
in interface SystemConnectionPool
public int getConnectionCount()
getConnectionCount
in interface SystemConnectionPool
public boolean addConnection(SystemConnection conn)
PLEASE NOTE:
addConnection
in interface SystemConnectionPool
conn
- SystemConnection object to add
public void deleteConnection(SystemConnection conn)
This will:
deleteConnection
in interface SystemConnectionPool
conn
- SystemConnection object to removepublic void renameConnection(SystemConnection conn, String newName) throws Exception
renameConnection
in interface SystemConnectionPool
conn
- SystemConnection object to renamenewName
- The new name to give that connection.
Exception
public SystemConnection cloneConnection(SystemConnectionPool targetPool, SystemConnection conn, String aliasName) throws Exception
cloneConnection
in interface SystemConnectionPool
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 clone
Exception
public void moveConnections(SystemConnection[] conns, int delta)
moveConnections
in interface SystemConnectionPool
conns
- Array of SystemConnections to move.public void orderConnections(String[] names)
orderConnections
in interface SystemConnectionPool
public void save() throws Exception
save
in interface SystemConnectionPool
Exception
public void save(SystemConnection connection) throws Exception
save
in interface SystemConnectionPool
Exception
protected void restore() throws Exception
Exception
protected SystemConnection restore(String connectionName) throws Exception
Exception
protected IFolder getConnectionFolder(SystemConnection connection)
protected IFolder getConnectionFolder(String connectionFolderName)
protected static String getSaveFileName(SystemConnection connection)
protected static String getRootSaveFileName(SystemConnection connection)
protected static String getRootSaveFileName(String connectionName)
protected static SystemMOFHelpers getMOFHelpers()
public String toString()
public String getName()
getName
in interface SystemConnectionPool
public void setName(String newName)
setName
in interface SystemConnectionPool
newName
- The new value of the Name attributepublic EList getConnections()
getConnections
in interface SystemConnectionPool
public Object eGet(EStructuralFeature eFeature, boolean resolve)
public boolean eIsSet(EStructuralFeature eFeature)
public void eSet(EStructuralFeature eFeature, Object newValue)
public void eUnset(EStructuralFeature eFeature)
public String toStringGen()
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |