com.esri.aims.mtier.model.admin
Class SdeConnections

java.lang.Object
  extended by com.esri.aims.mtier.model.admin.SdeConnections

public class SdeConnections
extends Object

Contains information on current gsrvr (Application Server) connections to an ArcSDE application server instance.


Constructor Summary
SdeConnections()
          Constructs an instance of a SdeConnections object.
SdeConnections(ConnectionProxy connection, SdeServer sdeserver)
          Constructs a SdeConnections object and populates the current ArcSDE connections to the given ArcSDE application server.
 
Method Summary
 void addConnection(SdeConnection connection)
          Adds the given ArcSDE connection to the SdeConnections object.
 SdeConnection getSdeConnection(int index)
          Returns the ArcSDE connection at given index.
 int size()
          Returns the size of this collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SdeConnections

public SdeConnections()
Constructs an instance of a SdeConnections object.


SdeConnections

public SdeConnections(ConnectionProxy connection,
                      SdeServer sdeserver)
               throws ConnectionParameterException,
                      AuthenticationException,
                      com.esri.aims.mtier.io.http.UnableToPingEsrimapException,
                      com.esri.aims.mtier.model.axl.ErrorAndWarningException
Constructs a SdeConnections object and populates the current ArcSDE connections to the given ArcSDE application server.

Parameters:
connection - a ConnectionProxy object
sdeserver - a SdeServer object
Throws:
ConnectionParameterException
AuthenticationException
com.esri.aims.mtier.io.http.UnableToPingEsrimapException
com.esri.aims.mtier.model.axl.ErrorAndWarningException
Method Detail

getSdeConnection

public SdeConnection getSdeConnection(int index)
Returns the ArcSDE connection at given index. The only way to obtain an instance of a SdeConnections class is as shown below:
 
 SdeConnections cnns=new SdeConnections();
 cnns.getSdeConnections(connectionproxy,sdeserver);
 for (int i=0;i++,i<=cnns.size()) {
      SdeConnection cnn=cnns.getSdeConnection(i);
      System.out.println(cnn.getNode());
      System.out.println(cnn.getPid());
 }
  

Returns:
a SdeConnection object

addConnection

public void addConnection(SdeConnection connection)
Adds the given ArcSDE connection to the SdeConnections object.

Parameters:
connection - the SdeConnection object to be added

size

public int size()
Returns the size of this collection.