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

glite::rgma::SecondaryProducerImpl Class Reference

#include <SecondaryProducerImpl.h>

Inheritance diagram for glite::rgma::SecondaryProducerImpl:

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

Public Member Functions

 SecondaryProducerImpl (TimeInterval terminationInterval, ProducerProperties producerProperties, StringList voNames) throw ( RGMAException)
 SecondaryProducerImpl (TimeInterval terminationInterval, ProducerProperties producerProperties) throw ( RGMAException, RemoteException)
 SecondaryProducerImpl (ResourceEndpoint &endPoint) throw (RemoteException, RGMAException)
TimeInterval getHistoryRetentionPeriod (std::string tableName) throw (RemoteException, UnknownResourceException, RGMAException)
void declareTable (std::string tableName, std::string predicate, TimeInterval historyRetentionPeriod) throw (RemoteException, UnknownResourceException, RGMAException)

Detailed Description

Implementation of a secondary producer


Constructor & Destructor Documentation

glite::rgma::SecondaryProducerImpl::SecondaryProducerImpl TimeInterval  terminationInterval,
ProducerProperties  producerProperties,
StringList  voNames
throw ( RGMAException)
 

Deprecated:
useSecondaryProducerImpl(ResourceEndpoint& endPoint) throw(RemoteException, RGMAException);


Member Function Documentation

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

Declares a table, specifying the retention period for history and latest tuples. The latestRetentionPeriod specifies the time for which a latest tuple is valid. After this time, the tuple is removed. 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 either xxxRetentionPeriod is invalid.

Implements glite::rgma::SecondaryProducer.

TimeInterval glite::rgma::SecondaryProducerImpl::getHistoryRetentionPeriod std::string  tableName  )  throw (RemoteException, UnknownResourceException, RGMAException) [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.

Implements glite::rgma::SecondaryProducer.


The documentation for this class was generated from the following files:
Generated on Wed May 17 17:48:19 2006 for glite-rgma-api-cpp by doxygen 1.3.5