uk.org.ogsadai.service.resource
Class DataServiceResource

java.lang.Object
  |
  +--uk.org.ogsadai.service.resource.DataServiceResource

public class DataServiceResource
extends java.lang.Object

A data service resource is a resource exposed by a data service. It includes a connection to a data resource and an OGSA-DAI engine (as represented by a uk.org.ogsadai.dataresource.DataResourceManager).

Configuration files for the service are assumed to be located within a directory whose location is provided when the data service resource is created. At present there are two configuration files:

Author:
The OGSA-DAI Project Team

Constructor Summary
DataServiceResource(java.lang.Object id, java.lang.String defaultRoot, java.lang.String configRoot)
          Create a new data service resource - including the data resource manager.
 
Method Summary
 DataResourceManager getDataResourceManager()
          Return the DataResourceManager that is the underlying resource.
 AsynchronousDeliveryManager getDeliveryManager()
          Return the DataResourceManager that is the underlying resource.
 java.lang.Object getID()
          Return the resource ID.
 Properties getProperties()
          Return the data resource manager properties combined with properties of the data resource manager configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataServiceResource

public DataServiceResource(java.lang.Object id,
                           java.lang.String defaultRoot,
                           java.lang.String configRoot)
                    throws DataServiceResourceInternalException,
                           DataServiceResourceUserException
Create a new data service resource - including the data resource manager.

Parameters:
id - - ID of this data service resource.
defaultRoot - - default root directory for all relative paths. Can be null.
configRoot - - directory within which configuration files for this resource are located. This can be absolute or relative or null.
Throws:
DataServiceResourceInternalException - if there is an internal problem experienced when parsing files or creating a data resource manager.
DataServiceResourceUserException - if there is a user-caused problem e.g. if id is null, configuration files cannot be found, or are of the incorrect format.
Method Detail

getDeliveryManager

public AsynchronousDeliveryManager getDeliveryManager()
Return the DataResourceManager that is the underlying resource.

Returns:
DataResourceManager.

getDataResourceManager

public DataResourceManager getDataResourceManager()
Return the DataResourceManager that is the underlying resource.

Returns:
DataResourceManager.

getID

public java.lang.Object getID()
Return the resource ID.

Returns:
resource ID.

getProperties

public Properties getProperties()
Return the data resource manager properties combined with properties of the data resource manager configuration.

Returns:
properties