gov.nih.nci.cagrid.workflow.service.globus.resource
Class BaseResource

java.lang.Object
  extended by gov.nih.nci.cagrid.workflow.service.globus.resource.BaseResource
All Implemented Interfaces:
org.globus.wsrf.Resource, org.globus.wsrf.ResourceProperties

public class BaseResource
extends java.lang.Object
implements org.globus.wsrf.Resource, org.globus.wsrf.ResourceProperties


Constructor Summary
BaseResource()
           
 
Method Summary
 ResourceConfiguration getConfiguration()
           
 org.globus.wsrf.ResourcePropertySet getResourcePropertySet()
           
 ServiceMetadata getServiceMetadataMD()
           
protected  org.globus.wsrf.ResourceProperty getServiceMetadataRP()
           
 void initialize()
           
 void refreshRegistration(boolean forceRefresh)
          This checks the configuration file, and attempts to register to the IndexService if shouldPerformRegistration==true.
 void setServiceMetadataMD(ServiceMetadata serviceMetadata)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseResource

public BaseResource()
Method Detail

initialize

public void initialize()
                throws java.lang.Exception
Throws:
java.lang.Exception

refreshRegistration

public void refreshRegistration(boolean forceRefresh)
This checks the configuration file, and attempts to register to the IndexService if shouldPerformRegistration==true. It will first read the current container URL, and compare it against the saved value. If the value exists, it will only try to reregister if the values are different. This exists to handle fixing the registration URL which may be incorrect during initialization, then later corrected during invocation. The existence of baseURL does not imply successful registration (a non-null registrationClient does). We will only attempt to reregister when the URL changes (to prevent attempting registration with each invocation if there is a configuration problem).


getServiceMetadataRP

protected org.globus.wsrf.ResourceProperty getServiceMetadataRP()

getServiceMetadataMD

public ServiceMetadata getServiceMetadataMD()

setServiceMetadataMD

public void setServiceMetadataMD(ServiceMetadata serviceMetadata)

getConfiguration

public ResourceConfiguration getConfiguration()

getResourcePropertySet

public org.globus.wsrf.ResourcePropertySet getResourcePropertySet()
Specified by:
getResourcePropertySet in interface org.globus.wsrf.ResourceProperties