org.globus.ogsa.impl.base.providers.servicedata
Class ServiceDataProviderExecutionTask
java.lang.Object
java.util.TimerTask
org.globus.ogsa.impl.base.providers.servicedata.ServiceDataProviderExecutionTask
- All Implemented Interfaces:
- java.lang.Runnable
- public class ServiceDataProviderExecutionTask
- extends java.util.TimerTask
This timer task executes a service data provider using the provider information
specified at construction time. The result data is then inserted into a
ServiceDataSet object, which should also be provided at construction time.
Any existing service data in the container bearing the same name as the new
data will be deleted if the provider executes successfully.
Methods inherited from class java.util.TimerTask |
cancel, scheduledExecutionTime |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceDataProviderExecutionTask
public ServiceDataProviderExecutionTask(ServiceDataProviderExecutionType providerInfo,
org.globus.ogsa.ServiceDataSet serviceDataSet,
ServiceDataProviderExecutionCallback execCallback,
ServiceDataProviderDocumentCallback docCallback,
java.lang.String requestedHandler)
throws java.lang.Exception
- Creates a new instance of ServiceDataProviderExecutionTaskDataProviderExecutionTask
getProviderInfo
public ServiceDataProviderExecutionType getProviderInfo()
getContainer
public org.globus.ogsa.ServiceDataSet getContainer()
getExecCallback
public ServiceDataProviderExecutionCallback getExecCallback()
getDocCallback
public ServiceDataProviderDocumentCallback getDocCallback()
getInstance
public java.lang.Object getInstance()
getExitStatus
public boolean getExitStatus()
- Returns a boolean indicating success or failure during provider execution
getErrorString
public java.lang.String getErrorString()
run
public void run()
- Executes the previously specified ServiceDataProvider and inserts the
resulting output into the previously specified ServiceDataContainer