org.globus.ogsa.impl.base.providers.servicedata
Interface AsyncDataProvider

All Superinterfaces:
SimpleDataProvider

public interface AsyncDataProvider
extends SimpleDataProvider

Asynchronous version of provider interface.


Field Summary
static int PROVIDER_ERROR
           
static int PROVIDER_IDLE
           
static int PROVIDER_RUNNING
           
static int PROVIDER_TERMINATED
           
 
Method Summary
 int getState()
          Retrieve the current state
 void run(java.lang.String args, java.lang.String callbackName, ServiceDataProviderDocumentCallback callback, java.lang.Object context)
          Triggers the asynchronous execution of the provider, which will call the callbackName method on the specified ServiceDataProviderDocumentCallback object.
 void terminate()
          Signals the provider to shutdown, cease data callbacks and free any associated resources
 
Methods inherited from interface org.globus.ogsa.impl.base.providers.servicedata.SimpleDataProvider
getDefaultArgs, getDescription, getErrorString, getName, run
 

Field Detail

PROVIDER_IDLE

public static final int PROVIDER_IDLE
See Also:
Constant Field Values

PROVIDER_RUNNING

public static final int PROVIDER_RUNNING
See Also:
Constant Field Values

PROVIDER_ERROR

public static final int PROVIDER_ERROR
See Also:
Constant Field Values

PROVIDER_TERMINATED

public static final int PROVIDER_TERMINATED
See Also:
Constant Field Values
Method Detail

run

public void run(java.lang.String args,
                java.lang.String callbackName,
                ServiceDataProviderDocumentCallback callback,
                java.lang.Object context)
         throws java.lang.Exception
Triggers the asynchronous execution of the provider, which will call the callbackName method on the specified ServiceDataProviderDocumentCallback object. Context is defined by the calling thread.

Throws:
java.lang.Exception

terminate

public void terminate()
               throws java.lang.Exception
Signals the provider to shutdown, cease data callbacks and free any associated resources

Throws:
java.lang.Exception

getState

public int getState()
Retrieve the current state