|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IProducer
A producer is a special type of plugin that is able to create parcels without prompting from a human. Typically a
producer creates parcels that contain some data which clients are interested in. Clients register their interest in
this data using the subscription mechanism (see https://www.hpc.jcu.edu.au/projects/DIMSIM/wiki/CIMASession)
Parcels created by a producer are typically released to the system via the #releaseParcel(Parcel) method
which will eventually use the strategy to deliver the parcel. The producer has no knowledge of it's subscribers and
therefore gets no notification about receipt of the parcel. The producer is intended for "producing" only, but may
process subscribe, unsubscribe, startmodule, stopmodule, ping and describe parcels.
| Method Summary | |
|---|---|
java.lang.Class<?> |
getDeliveryStrategy()
Gets the delivery strategy that this plugin should use |
void |
releaseParcel(org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel parcel)
Release the parcel to the CIMA system for delivery. |
void |
setDeliveryStrategy(java.lang.Class<?> strategy)
Sets the delivery strategy to be used by this plugin |
| Methods inherited from interface org.instrumentmiddleware.cima.plugin.IPlugin |
|---|
doSubscribe, getId, getInformation, getSequenceNumber, processParcel, setStartOnLoad, start, startOnLoad, stop |
| Method Detail |
|---|
void setDeliveryStrategy(java.lang.Class<?> strategy)
strategy - the strategy to usejava.lang.Class<?> getDeliveryStrategy()
void releaseParcel(org.instrumentmiddleware.cima.parcel.ParcelDocument.Parcel parcel)
parcel - the parcel to send
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||