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

glite::rgma::PrimaryProducerImpl Class Reference

#include <PrimaryProducerImpl.h>

Inheritance diagram for glite::rgma::PrimaryProducerImpl:

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

Public Member Functions

 PrimaryProducerImpl (TimeInterval terminationInterval, ProducerProperties producerProperties, StringList voNames) throw ( RGMAException)
 PrimaryProducerImpl (TimeInterval terminationInterval, ProducerProperties producerProperties) throw ( RGMAException, RemoteException)
 PrimaryProducerImpl (ResourceEndpoint &endPoint) throw (RemoteException, RGMAException, RemoteException)
TimeInterval getHistoryRetentionPeriod (std::string tableName) throw (RemoteException, UnknownResourceException, RGMAException)
TimeInterval getLatestRetentionPeriod (std::string tableName) throw (RemoteException, UnknownResourceException, RGMAException)
void declareTable (std::string tableName, std::string predicate, TimeInterval historyRetentionPeriod, TimeInterval latestRetentionPeriod) throw (RemoteException, UnknownResourceException, RGMAException)
void insert (std::string insertStatement) throw (RemoteException, UnknownResourceException, RGMAException)
void insert (std::string insertStatement, TimeInterval latestRetentionPeriod) throw (RemoteException, UnknownResourceException, RGMAException)
void insertList (StringList insertStatements) throw (RemoteException, UnknownResourceException, RGMAException)
void PrimaryProducerImpl::insertList (StringList insertStatements, TimeInterval latestRetentionPeriod) throw (RemoteException, UnknownResourceException, RGMAException)

Detailed Description

Implementation of a producer


Constructor & Destructor Documentation

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

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


Member Function Documentation

void glite::rgma::PrimaryProducerImpl::declareTable std::string  tableName,
std::string  predicate,
TimeInterval  historyRetentionPeriod,
TimeInterval  latestRetentionPeriod
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
latestRetentionPeriod The retention period for latest 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::PrimaryProducer.

TimeInterval glite::rgma::PrimaryProducerImpl::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::PrimaryProducer.

TimeInterval glite::rgma::PrimaryProducerImpl::getLatestRetentionPeriod std::string  tableName  )  throw (RemoteException, UnknownResourceException, RGMAException) [virtual]
 

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

Parameters:
tableName Name of the table
Returns:
The retention period for latest 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::PrimaryProducer.

void glite::rgma::PrimaryProducerImpl::insert std::string  insertStatement,
TimeInterval  latestRetentionPeriod
throw (RemoteException, UnknownResourceException, RGMAException) [virtual]
 

Publishes data by inserting a tuple into a table, both specified by the SQL INSERT statement.

Parameters:
insertStatement An SQL INSERT statement providing the data to publish and the table into which to put it.
latestRetentionPeriod Latest retention period for this tuple (overrides LRP defined for table).
Exceptions:
RemoteException If the service could not be contacted.
UnknownResourceException If the producer resource could not be found
RGMAException If the table in the insert has not been declared. If the inserted tuple does not match its table's declared predicate
See also:
insertList

insert

Implements glite::rgma::PrimaryProducer.

void glite::rgma::PrimaryProducerImpl::insert std::string  insertStatement  )  throw (RemoteException, UnknownResourceException, RGMAException) [virtual]
 

Publishes data by inserting a tuple into a table, both specified by the SQL INSERT statement.

Parameters:
insertStatement An SQL INSERT statement providing the data to publish and the table into which to put it.
Exceptions:
RemoteException If the service could not be contacted.
UnknownResourceException If the producer resource could not be found
RGMAException If the table in the insert has not been declared. If the inserted tuple does not match its table's declared predicate
See also:
insertList

Implements glite::rgma::PrimaryProducer.

void glite::rgma::PrimaryProducerImpl::insertList StringList  insertStatements  )  throw (RemoteException, UnknownResourceException, RGMAException) [virtual]
 

Publishes using a list of SQL INSERT statements.

Parameters:
insertStatements A list of SQL INSERT statements.
latestRetentionPeriod the retention period for latest queries
Exceptions:
RemoteException If the service could not be contacted.
UnknownResourceException If the producer resource could not be found
RGMAException If the table in any insert has not been declared. If any inserted tuple does not match its table's declared predicate
See also:
insert

Implements glite::rgma::PrimaryProducer.

void glite::rgma::PrimaryProducerImpl::PrimaryProducerImpl::insertList StringList  insertStatements,
TimeInterval  latestRetentionPeriod
throw (RemoteException, UnknownResourceException, RGMAException)
 

Publishes using a list of SQL INSERT statements.

Parameters:
insertStatements A list of SQL INSERT statements.
latestRetentionPeriod the retention period for latest queries
Exceptions:
RemoteException If the service could not be contacted.
UnknownResourceException If the producer resource could not be found
RGMAException If the table in any insert has not been declared. If any inserted tuple does not match its table's declared predicate
See also:
insert


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