|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Publisher
The Publisher interface is implemented by classes that respond to queries (SIF_Requests).
Implement the Publisher interface on a class that is capable of responding
to SIF_Requests for one or more SIF Data Objects, then register your class
with a Topic or Zone by calling the Topic.setPublisher or
Zone.setPublisher methods. SIF_Request messages received by
the ADK are then dispatched to your Publisher for processing.
| Method Summary | |
|---|---|
void |
onRequest(DataObjectOutputStream out,
Query query,
Zone zone,
MessageInfo info)
Respond to a SIF_Request received from a zone. |
| Method Detail |
|---|
void onRequest(DataObjectOutputStream out,
Query query,
Zone zone,
MessageInfo info)
throws ADKException
The implementation should evaluate the supplied Query to build a set
of SIFDataObjects that satisfy the conditions and field restrictions
placed on the query. To return these objects to the ZIS, repeatedly
call the DataObjectOutputStream.write( SIFDataObject )
method.
The ADK returns the results of the request to the requestor by sending one or more SIF_Response messages. This is handled in a separate thread managed by the framework. If the number of SIFDataObjects passed to the output stream is too large to fit into a single SIF_Response message, the ADK handles breaking it up into multiple packets. The result data may be temporarily stored on disk until all packets can be returned to the ZIS.
out - The output stream to send SIFDataObject results toquery - The query conditionszone - The zone this SIF_Request was received oninfo - Provides protocol-specific information about the message.
ADKException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||