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

glite::rgma::SecondaryProducer Class Reference

#include <SecondaryProducer.h>

Inheritance diagram for glite::rgma::SecondaryProducer:

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

Public Member Functions

virtual TimeInterval getHistoryRetentionPeriod (std::string tableName)=0 throw (RemoteException, RGMAException, UnknownResourceException)
virtual void declareTable (std::string tableName, std::string predicate, TimeInterval historyRetentionPeriod)=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)
TupleStoreList listTupleStores () throw ( RemoteException, RGMAException)
void dropTupleStore (std::string logicalName) throw (RGMAException, RemoteException)

Detailed Description

A client uses a secondary producer to republish or store newrmation from other producers.


Member Function Documentation

virtual void glite::rgma::SecondaryProducer::declareTable std::string  tableName,
std::string  predicate,
TimeInterval  historyRetentionPeriod
throw (RemoteException, RGMAException, UnknownResourceException) [pure virtual]
 

Declares a table, specifying the retention period for history tuples. Tuples will be removed from storage when the history retention period expires.

Parameters:
tableName The name of the table to declare.
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 used.
historyRetentionPeriod The retention period for history tuples
Exceptions:
RemoteException If the service could not be contacted.
UnknownResourceException If the producer resource could not be found
RGMAException If the tableName is unknown. If the predicate is invalid. If historyRetentionPeriod is invalid.

Implemented in glite::rgma::SecondaryProducerImpl.

void glite::rgma::SecondaryProducer::dropTupleStore std::string  logicalName  )  throw (RGMAException, RemoteException) [static]
 

Permanently deletes a named tuple store.

Parameters:
logicalName Name of tuple store.
Exceptions:
RGMAException If the store does not exist or if it is in use by a producer. If no endpointReference is defined in properties.
RemoteException If the service could not be contacted.

virtual TimeInterval glite::rgma::SecondaryProducer::getHistoryRetentionPeriod std::string  tableName  )  throw (RemoteException, RGMAException, UnknownResourceException) [pure virtual]
 

Gets the retention period that is applied to history tuples for the specified table.

Parameters:
tableName Name of the table
Returns:
The retention period for history tuples.
Exceptions:
RemoteException If the service could not be contacted.
UnknownResourceException If the resource could not be found.
RGMAException If the table has not been declared.

Implemented in glite::rgma::SecondaryProducerImpl.

std::string glite::rgma::SecondaryProducer::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::SecondaryProducer::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::SecondaryProducer::getVersion  )  throw (RemoteException) [static]
 

Gets the version of this implementation.

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

TupleStoreList glite::rgma::SecondaryProducer::listTupleStores  )  throw ( RemoteException, RGMAException) [static]
 

Returns a list of existing tuple stores that can be used by Primary and Secondary Producers.

Returns:
A TupleStoreList object.
Exceptions:
RemoteException If the service could not be contacted.
RGMAException If no endpointReference is defined in properties.

void glite::rgma::SecondaryProducer::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::SecondaryProducer::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 Fri Mar 16 14:00:16 2007 for glite-rgma-api-cpp by doxygen 1.3.5