org.LexGrid.LexBIG.cagrid.LexEVSGridService.LexBIGServiceMetadata.service.globus.resource
Class LexBIGServiceMetadataResourceBase

java.lang.Object
  extended by gov.nih.nci.cagrid.introduce.servicetools.ReflectionResource
      extended by org.LexGrid.LexBIG.cagrid.LexEVSGridService.LexBIGServiceMetadata.service.globus.resource.LexBIGServiceMetadataResourceBase
All Implemented Interfaces:
org.globus.wsrf.RemoveCallback, org.globus.wsrf.Resource, org.globus.wsrf.ResourceIdentifier, org.globus.wsrf.ResourceLifetime, org.globus.wsrf.ResourceProperties
Direct Known Subclasses:
LexBIGServiceMetadataResource

public abstract class LexBIGServiceMetadataResourceBase
extends gov.nih.nci.cagrid.introduce.servicetools.ReflectionResource
implements org.globus.wsrf.Resource, org.globus.wsrf.RemoveCallback

DO NOT EDIT: This class is autogenerated! This class is the base class of the resource type created for this service. It contains accessor and utility methods for managing any resource properties of these resource as well as code for registering any properties selected to the index service.


Field Summary
private  java.net.URL baseURL
           
private  boolean beingLoaded
           
private  LexBIGServiceMetadataResourceConfiguration configuration
           
private  org.globus.wsrf.ResourceKey key
           
(package private) static org.apache.commons.logging.Log logger
           
private  gov.nih.nci.cagrid.advertisement.AdvertisementClient registrationClient
           
 
Constructor Summary
LexBIGServiceMetadataResourceBase()
           
 
Method Summary
 LexBIGServiceMetadataResourceConfiguration getConfiguration()
           
 org.globus.wsrf.ResourceKey getResourceKey()
           
 void initialize(java.lang.Object resourceBean, javax.xml.namespace.QName resourceElementQName, java.lang.Object id)
           
 void refreshRegistration(boolean forceRefresh)
          This checks the configuration file, and attempts to register to the IndexService if shouldPerformRegistration==true.
 void remove()
           
protected  void setResourceKey(org.globus.wsrf.ResourceKey key)
           
 void setTerminationTime(java.util.Calendar time)
           
 
Methods inherited from class gov.nih.nci.cagrid.introduce.servicetools.ReflectionResource
createNewResourceProperty, createNewResourceProperty, getCurrentTime, getID, getResourceBean, getResourcePropertySet, getTerminationTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static final org.apache.commons.logging.Log logger

configuration

private LexBIGServiceMetadataResourceConfiguration configuration

key

private org.globus.wsrf.ResourceKey key

registrationClient

private gov.nih.nci.cagrid.advertisement.AdvertisementClient registrationClient

baseURL

private java.net.URL baseURL

beingLoaded

private boolean beingLoaded
Constructor Detail

LexBIGServiceMetadataResourceBase

public LexBIGServiceMetadataResourceBase()
Method Detail

initialize

public void initialize(java.lang.Object resourceBean,
                       javax.xml.namespace.QName resourceElementQName,
                       java.lang.Object id)
                throws org.globus.wsrf.ResourceException
Overrides:
initialize in class gov.nih.nci.cagrid.introduce.servicetools.ReflectionResource
Throws:
org.globus.wsrf.ResourceException
See Also:
Initializable.initialize()

setTerminationTime

public void setTerminationTime(java.util.Calendar time)
Specified by:
setTerminationTime in interface org.globus.wsrf.ResourceLifetime
Overrides:
setTerminationTime in class gov.nih.nci.cagrid.introduce.servicetools.ReflectionResource
See Also:
ResourceLifetime.setTerminationTime(java.util.Calendar)

getConfiguration

public LexBIGServiceMetadataResourceConfiguration getConfiguration()

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).


getResourceKey

public org.globus.wsrf.ResourceKey getResourceKey()

setResourceKey

protected void setResourceKey(org.globus.wsrf.ResourceKey key)

remove

public void remove()
            throws org.globus.wsrf.ResourceException
Specified by:
remove in interface org.globus.wsrf.RemoveCallback
Throws:
org.globus.wsrf.ResourceException