dalclient
Class DALConnection

java.lang.Object
  extended bydalclient.DALConnection
Direct Known Subclasses:
ConeConnection, SiapConnection

public class DALConnection
extends java.lang.Object

Generic data access layer (DAL) client connection to a service or set of services. At this point the protocol is stateless and a "connection" is nothing more than a list of service URLs. Queries require a connection context be established first.


Method Summary
 void addService(java.lang.String service)
          Add a service to an existing connection.
 DALQuery getDALQuery()
          Get a new query context for this connection.
 int getServiceCount()
          Get a count of the number of services in a connection context.
 java.lang.String getServiceURL(int i)
          Get an individual service URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addService

public void addService(java.lang.String service)
Add a service to an existing connection.

Parameters:
service - The endpoint (baseURL) of the service

getServiceCount

public int getServiceCount()
Get a count of the number of services in a connection context.


getServiceURL

public java.lang.String getServiceURL(int i)
Get an individual service URL.

Parameters:
i - The index of the service to be returned.

getDALQuery

public DALQuery getDALQuery()
Get a new query context for this connection.