Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

glite::rgma::ConsumerFactory Class Reference

#include <ConsumerFactory.h>

List of all members.

Public Member Functions

virtual ConsumercreateConsumer (TimeInterval terminationInterval, std::string selectStatement, QueryProperties queryProperties)=0 throw (RemoteException, RGMAException)
virtual ConsumerreconnectConsumer (ResourceEndpoint &resourceEndpoint)=0 throw (RGMAException, RemoteException, UnknownResourceException)


Detailed Description

A factory to create Consumers.


Member Function Documentation

virtual Consumer* glite::rgma::ConsumerFactory::createConsumer TimeInterval  terminationInterval,
std::string  selectStatement,
QueryProperties  queryProperties
throw (RemoteException, RGMAException) [pure virtual]
 

Creates a consumer with a specific SELECT query and query type. The Consumer will only consume data from the VO's listed in voNames.

Parameters:
terminationInterval The interval after which this Consumer will be removed from the remote service if there has been no contact from the API.
selectStatement An SQL SELECT statement.
queryType The type of the query.
Returns:
A pointer to new Consumer.
Exceptions:
RemoteException If the service could not be contacted.
RGMAException If the select statement is invalid. If no endpointReference is defined in properties.

virtual Consumer* glite::rgma::ConsumerFactory::reconnectConsumer ResourceEndpoint resourceEndpoint  )  throw (RGMAException, RemoteException, UnknownResourceException) [pure virtual]
 

Reconnects to an existing Consumer and checks that it is still active by sending a showSignOfLife call.

Parameters:
resourceEndpoint Endpoint of the consumer.
Returns:
A reference to the Consumer.


The documentation for this class was generated from the following file:
Generated on Wed Apr 25 19:11:33 2007 for glite-rgma-api-cpp by doxygen 1.3.5