org.cagrid.transfer.context.service.globus.resource
Class TransferServiceContextResource
java.lang.Object
gov.nih.nci.cagrid.introduce.servicetools.ReflectionResource
org.cagrid.transfer.context.service.globus.resource.TransferServiceContextResourceBase
org.cagrid.transfer.context.service.globus.resource.TransferServiceContextResource
- All Implemented Interfaces:
- org.globus.wsrf.PersistenceCallback, org.globus.wsrf.RemoveCallback, org.globus.wsrf.Resource, org.globus.wsrf.ResourceIdentifier, org.globus.wsrf.ResourceLifetime, org.globus.wsrf.ResourceProperties, org.globus.wsrf.security.SecureResource, org.globus.wsrf.TopicListAccessor
public class TransferServiceContextResource
- extends TransferServiceContextResourceBase
The implementation of this TransferServiceContextResource type.
| Methods inherited from class org.cagrid.transfer.context.service.globus.resource.TransferServiceContextResourceBase |
getConfiguration, getDataStorageDescriptor, getResourceKey, getSecurityDescriptor, getTopicList, load, refreshRegistration, setDataStorageDescriptor, setResourceKey, setSecurityDescriptor, setTerminationTime, store |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransferServiceContextResource
public TransferServiceContextResource()
initialize
public void initialize(java.lang.Object resourceBean,
javax.xml.namespace.QName resourceElementQName,
java.lang.Object id)
throws org.globus.wsrf.ResourceException
- Description copied from class:
ReflectionResource
- This should be called before any other resource property addition is made
as it will create resource properties object based on the resource
properties defined in the schema. It is possible to override the
implementation of certain resources properties by adding a new
ResourceProperty object to the resource property set after this method
has been called. This method should be called in the constructor of the
concrete resource class, or shortly after the parameterless constructor
has been called.
- Overrides:
initialize in class TransferServiceContextResourceBase
- Parameters:
resourceBean - Object An instance of the Axis-generated class corresponding
to the resource property set global Schema type or element
(with local type) used by the port type definition. That class
has JavaBean properties matching all the resource properties
of the port type. The ReflectionResource constructor creates
the ResourceProperty objects based on the resource bean, which
JavaBean properties SHOULD thus have been initialized
beforehand. This object provides an easy way to initialize the
values of the resource properties.
resourceElementQName - QName The QName of the resource properties element used by the
port type. This corresponds to the value of the
'wsrp:ResourceProperties' attribute. If the type of this
element is anonymous (i.e. inlined in the element declaration)
then this parameter is optional. If it is non-null though, its
value takes precedence over Axis-generated metadata.
id - Object The resource key object for this resource. This is used
to set the ID property of this object as a ResourceIdentifier,
if the resource class doesn't create it automatically.
- Throws:
org.globus.wsrf.ResourceException- See Also:
Initializable.initialize()
getDataStagedCallback
public DataStagedCallback getDataStagedCallback()
stage
public void stage(DataDescriptor dd,
DataStagedCallback callback)
throws java.lang.Exception
- Throws:
java.lang.Exception
stage
public void stage(byte[] data,
DataDescriptor dd)
throws java.lang.Exception
- Throws:
java.lang.Exception
stage
public void stage(java.io.InputStream is,
DataDescriptor dd)
throws java.lang.Exception
- Throws:
java.lang.Exception
stage
public void stage(java.io.File file,
DataDescriptor dd,
boolean shouldDeleteFileOnDestroy)
throws java.lang.Exception
- Throws:
java.lang.Exception
remove
public void remove()
throws org.globus.wsrf.ResourceException
- Specified by:
remove in interface org.globus.wsrf.RemoveCallback- Overrides:
remove in class TransferServiceContextResourceBase
- Throws:
org.globus.wsrf.ResourceException