org.globus.ogsa.impl.base.providers.servicedata
Class ServiceDataProviderExecutionTask

java.lang.Object
  extended byjava.util.TimerTask
      extended byorg.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.


Constructor Summary
ServiceDataProviderExecutionTask(ServiceDataProviderExecutionType providerInfo, org.globus.ogsa.ServiceDataSet serviceDataSet, ServiceDataProviderExecutionCallback execCallback, ServiceDataProviderDocumentCallback docCallback, java.lang.String requestedHandler)
          Creates a new instance of ServiceDataProviderExecutionTaskDataProviderExecutionTask
 
Method Summary
 org.globus.ogsa.ServiceDataSet getContainer()
           
 ServiceDataProviderDocumentCallback getDocCallback()
           
 java.lang.String getErrorString()
           
 ServiceDataProviderExecutionCallback getExecCallback()
           
 boolean getExitStatus()
          Returns a boolean indicating success or failure during provider execution
 java.lang.Object getInstance()
           
 ServiceDataProviderExecutionType getProviderInfo()
           
 void run()
          Executes the previously specified ServiceDataProvider and inserts the resulting output into the previously specified ServiceDataContainer
 
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
 

Constructor Detail

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

Method Detail

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