uk.ac.soton.itinnovation.grid.service.ogsadai
Class DefaultOgsaDaiInstance

java.lang.Object
  extended by uk.org.ogsadai.service.wsi.dataservice.impl.DataServiceImpl
      extended by uk.org.ogsadai.service.wsi.dataservice.impl.ConfigurableDataServiceImpl
          extended by uk.ac.soton.itinnovation.grid.service.ogsadai.DefaultOgsaDaiInstance
All Implemented Interfaces:
Remote, OgsaDaiInstance, SecurityContextProvider, DataServiceResourceFactory, ConfigurableDataServicePortType, DataServicePortType

public class DefaultOgsaDaiInstance
extends ConfigurableDataServiceImpl
implements OgsaDaiInstance

The default implementation of OgsaDaiInstance. Extends ConfigurableDataServiceImpl to provide access to OGSA-DAI's methods.

Author:
ds

Field Summary
protected static org.apache.log4j.Logger log
           
 
Fields inherited from class uk.org.ogsadai.service.wsi.dataservice.impl.DataServiceImpl
mResourceFactoryUtil, mResourcesFile, mURL, RESOURCE_ATTR, RESOURCE_ELT
 
Constructor Summary
DefaultOgsaDaiInstance()
          Note - initialiseInstance(java.lang.String, java.lang.String) must be called before this constructor
 
Method Summary
 SecurityContext getSecurityContext()
           
static void initialiseInstance(String configFilesPath, String schemaUrl)
          Setup the MessageContext with information about configuration files required by OGSA-DAI.
 void setDbName(String dbName)
          Set the name of the data resource that subsequent OGSA-DAI methods should operate on.
 void setSecurityContext(String distinguishedName)
          Set security credentials to be used by subsequent OGSA-DAI methods.
 
Methods inherited from class uk.org.ogsadai.service.wsi.dataservice.impl.ConfigurableDataServiceImpl
deploy, undeploy
 
Methods inherited from class uk.org.ogsadai.service.wsi.dataservice.impl.DataServiceImpl
createResource, createResource, createResourceFromComponentFactory, createResourceFromComponents, createResourceFromConfigDirectory, getBlock, getDataServiceResource, getFully, getMultipleResourceProperties, getNBlocks, getNewResourceName, getNewResourceName, getResourceConfigDirectory, getResourceProperty, getVersion, listResources, perform, putBlock, putFully, removeResource, removeResource, terminate, throwAuthorisationFault, throwInternalFault, throwRequestFault, throwResourceUnknownFault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface uk.org.ogsadai.service.wsi.dataservice.ConfigurableDataServicePortType
deploy, getBlock, getFully, getMultipleResourceProperties, getNBlocks, getResourceProperty, getVersion, listResources, perform, putBlock, putFully, terminate, undeploy
 

Field Detail

log

protected static org.apache.log4j.Logger log
Constructor Detail

DefaultOgsaDaiInstance

public DefaultOgsaDaiInstance()
                       throws InternalFaultType
Note - initialiseInstance(java.lang.String, java.lang.String) must be called before this constructor

Throws:
InternalFaultType
Method Detail

initialiseInstance

public static void initialiseInstance(String configFilesPath,
                                      String schemaUrl)
Setup the MessageContext with information about configuration files required by OGSA-DAI. This must be called before the constructor.

Parameters:
configFilesPath - A path to a directory containing OGSA-DAI's deployed data resources
schemaUrl - A path to a directory containing OGSA-DAI XML schema

setDbName

public void setDbName(String dbName)
Description copied from interface: OgsaDaiInstance
Set the name of the data resource that subsequent OGSA-DAI methods should operate on. This name is individual to each thread.

Specified by:
setDbName in interface OgsaDaiInstance

setSecurityContext

public void setSecurityContext(String distinguishedName)
Description copied from interface: OgsaDaiInstance
Set security credentials to be used by subsequent OGSA-DAI methods. Usually this is the resource ID of the subscription that is being used to access the resource. These security credentials are individual to each thread.

Specified by:
setSecurityContext in interface OgsaDaiInstance

getSecurityContext

public SecurityContext getSecurityContext()
Specified by:
getSecurityContext in interface SecurityContextProvider
Overrides:
getSecurityContext in class DataServiceImpl


Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.