|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.service.resource.DataServiceResource
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:
DIRECTORY/dataResourceConfig.xml - data resource
configuration file.DIRECTORY/activityConfig.xml - activity
configuration file.
| 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 |
public DataServiceResource(java.lang.Object id,
java.lang.String defaultRoot,
java.lang.String configRoot)
throws DataServiceResourceInternalException,
DataServiceResourceUserException
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.
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 |
public AsynchronousDeliveryManager getDeliveryManager()
public DataResourceManager getDataResourceManager()
public java.lang.Object getID()
public Properties getProperties()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||