TPTP 4.2.0 Platform Project
Public API Specification

org.eclipse.hyades.collection.correlation
Interface ITransport

All Known Implementing Classes:
IiopTransport

public interface ITransport

This interfaces defines the transport mechanism between correlation engines. In general, each mechanism should be independent of correlation data.


Method Summary
 byte[] receiveReply()
          Receive a reply.
 byte[] receiveRequest()
          Receive a request.
 void sendReply(byte[] data, int offset, int length)
          Send a reply.
 void sendRequest(byte[] data, int offset, int length)
          Send a request.
 

Method Detail

sendRequest

public void sendRequest(byte[] data,
                        int offset,
                        int length)
Send a request.

Parameters:
data - the data buffer to be sent
offset - the starting position of the data to be sent
length - the length (in bytes) of the data to be sent

receiveRequest

public byte[] receiveRequest()
Receive a request.

Returns:
request received.

sendReply

public void sendReply(byte[] data,
                      int offset,
                      int length)
Send a reply.

Parameters:
data - the data buffer to be sent
offset - the starting position of the data to be sent
length - the length (in bytes) of the data to be sent

receiveReply

public byte[] receiveReply()
Receive a reply.

Returns:
reply received.

TPTP 4.2.0 Platform Project
Public API Specification