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

glite::rgma::OnDemandProducer Class Reference

#include <OnDemandProducer.h>

Inheritance diagram for glite::rgma::OnDemandProducer:

glite::rgma::ResourceImpl glite::rgma::Resource glite::rgma::OnDemandProducerImpl List of all members.

Public Member Functions

virtual void declareStaticTable (std::string tableName, std::string predicate)=0 throw (RemoteException, RGMAException, UnknownResourceException)

Static Public Member Functions

std::string getVersion () throw (RemoteException)
std::string getProperty (std::string name, std::string parameter) throw (RemoteException, RGMAException)
std::string getProperty (std::string name) throw (RemoteException, RGMAException)
void setProperty (std::string name, std::string value, std::string parameter) throw (RemoteException, RGMAException)
void setProperty (std::string name, std::string value) throw (RemoteException, RGMAException)

Detailed Description

A client uses an OnDemandProducer to publish data into R-GMA when the cost of creating each message is high. The OnDemandProducer only generates messages when there is a specific query from a Consumer.


Member Function Documentation

virtual void glite::rgma::OnDemandProducer::declareStaticTable std::string  tableName,
std::string  predicate
throw (RemoteException, RGMAException, UnknownResourceException) [pure virtual]
 

Declares a static table into which this Producer can publish. A subset of a table can be declared using a predicate. A static table has no MeasurementDate/Time associated with each tuple.

Parameters:
tableName The name of the table to publish into.
predicate An SQL WHERE clause defining the subset of a table that this Producer will publish. To publish to the whole table, an empty predicate can be defined using "".
Exceptions:
RemoteException If the service could not be contacted.
UnknownResourceException If the producer resource could not be found
RGMAException If table tableName is not in the Schema. If the predicate is invalid.

Implemented in glite::rgma::OnDemandProducerImpl.

std::string glite::rgma::OnDemandProducer::getProperty std::string  name  )  throw (RemoteException, RGMAException) [static]
 

Gets the value of the specified service property.

Parameters:
name Name of property.
Returns:
Current value of property.
Exceptions:
RemoteException If the service could not be contacted.
RGMAException If the name/parameter combination is invalid.

std::string glite::rgma::OnDemandProducer::getProperty std::string  name,
std::string  parameter
throw (RemoteException, RGMAException) [static]
 

Gets the value of the specified service property.

Parameters:
name Name of property.
parameter Parameter to property
Returns:
Current value of property.
Exceptions:
RemoteException If the service could not be contacted.
RGMAException If the name/parameter combination is invalid.

std::string glite::rgma::OnDemandProducer::getVersion  )  throw (RemoteException) [static]
 

Gets the version of this implementation.

Returns:
The version number.
Exceptions:
RemoteException If the service could not be contacted.

void glite::rgma::OnDemandProducer::setProperty std::string  name,
std::string  value
throw (RemoteException, RGMAException) [static]
 

Changes the value of the specified service property.

Parameters:
name Name of property.
value New value of property.
Exceptions:
RemoteException If the service could not be contacted.
RGMAException If the name/parameter combination is invalid.

void glite::rgma::OnDemandProducer::setProperty std::string  name,
std::string  value,
std::string  parameter
throw (RemoteException, RGMAException) [static]
 

Changes the value of the specified service property.

Parameters:
name Name of property.
value New value of property.
parameter Parameter to property
Exceptions:
RemoteException If the service could not be contacted.
RGMAException If the name/parameter combination is invalid.


The documentation for this class was generated from the following files:
Generated on Thu May 11 19:23:43 2006 for glite-rgma-api-cpp by doxygen 1.3.5