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

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

public class ServiceCollection
extends Object

Represents a collection of service objects.


Constructor Summary
ServiceCollection()
          Constructs an instance of a ServiceCollection object.
 
Method Summary
 void addService(Service service)
          Adds the specified service to the collection.
 Service getService(int index)
          Returns, but does not remove, a service from the collection.
static ServiceCollection getServices(ConnectionProxy connection)
          Returns a collection of all services running on the machine as defined by the connection.
 int indexOfService(Service service)
          Returns the index of the given service in the collection.
 void removeService(Service service)
          Removes the specified service from the collection.
 int size()
          Returns the size of the collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceCollection

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

Method Detail

getServices

public static ServiceCollection getServices(ConnectionProxy connection)
                                     throws ConnectionParameterException,
                                            AuthenticationException,
                                            com.esri.aims.mtier.io.http.UnableToPingEsrimapException,
                                            com.esri.aims.mtier.model.axl.ErrorAndWarningException
Returns a collection of all services running on the machine as defined by the connection.

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

addService

public void addService(Service service)
Adds the specified service to the collection.


getService

public Service getService(int index)
Returns, but does not remove, a service from the collection.


indexOfService

public int indexOfService(Service service)
Returns the index of the given service in the collection. If the service is not contained in the collection, then -1 is returned.


removeService

public void removeService(Service service)
Removes the specified service from the collection.


size

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