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

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

public class ServerCollection
extends Object

Represents a collection of server objects.


Constructor Summary
ServerCollection()
          Constructs a new ServerCollection object.
 
Method Summary
 void addServer(Server server)
          Adds a server to the collection.
 Server getServer(int index)
          Returns a Server at given index, but does not remove it from the collection.
static ServerCollection getServers(ConnectionProxy connection)
          Returns a ServerCollection object which is a collection of all Services running on the machine defined by the connection.
 int indexOfServer(Server server)
          Returns the index of the given Server in the collection.
 void removeServer(Server server)
          Removes the specified Server from the collection.
 int size()
          Returns the size of the Server collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerCollection

public ServerCollection()
Constructs a new ServerCollection object.

Method Detail

getServers

public static ServerCollection getServers(ConnectionProxy connection)
                                   throws ConnectionParameterException,
                                          AuthenticationException,
                                          com.esri.aims.mtier.io.http.UnableToPingEsrimapException,
                                          com.esri.aims.mtier.model.axl.AXLAttributeException
Returns a ServerCollection object which is a collection of all Services running on the machine defined by the connection.

Throws:
ConnectionParameterException
AuthenticationException
com.esri.aims.mtier.io.http.UnableToPingEsrimapException
com.esri.aims.mtier.model.axl.AXLAttributeException

addServer

public void addServer(Server server)
Adds a server to the collection.


getServer

public Server getServer(int index)
Returns a Server at given index, but does not remove it from the collection.


indexOfServer

public int indexOfServer(Server server)
Returns the index of the given Server in the collection. If the server is not contained in the collection, then -1 is returned.


removeServer

public void removeServer(Server server)
Removes the specified Server from the collection.


size

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