org.glite.rgma
Interface OnDemandProducer
- All Superinterfaces:
- Resource
- public interface OnDemandProducer
- extends Resource
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.
Method Summary |
void |
declareStaticTable(java.lang.String tableName,
java.lang.String predicate)
Declares a static table into which this Producer can publish. |
declareStaticTable
public void declareStaticTable(java.lang.String tableName,
java.lang.String predicate)
throws RemoteException,
UnknownResourceException,
RGMAException
- 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
timestamp 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 "" or null
.
- Throws:
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.