org.objectweb.dream.protocol.bus
Interface LocalAccessManager

All Known Implementing Classes:
TCPIPLocalAccessManagerImpl

public interface LocalAccessManager

Interface used by bus protocol to try to determine the local address (if not specified in binding hints see BusProtocol.LOCAL_ADDRESS_HINT_KEY), and to export the access point of the local bus session.


Field Summary
static String ITF_NAME
          Default name for interfaces of this type.
 
Method Summary
 MessagePassingOutgoingPush exportBus(ExportIdentifier localId, IncomingPush incomingPush)
          Export to the lower level protocol in order to create the access point of the local bus session.
 int findLocalAddress(ExportIdentifier[] exportIds)
          Tries to find in the given array of export identifier, the one which correspond to the local protocol.
 

Field Detail

ITF_NAME

static final String ITF_NAME
Default name for interfaces of this type.

See Also:
Constant Field Values
Method Detail

findLocalAddress

int findLocalAddress(ExportIdentifier[] exportIds)
                     throws BindException
Tries to find in the given array of export identifier, the one which correspond to the local protocol.

Parameters:
exportIds - an array of export identifier.
Returns:
the index in the given array of the export identifier corresponding to the local protocol.
Throws:
BindException - if no export identifier can be found or if two, or more export identifiers may correspond to the local protocol.

exportBus

MessagePassingOutgoingPush exportBus(ExportIdentifier localId,
                                     IncomingPush incomingPush)
                                     throws ExportException
Export to the lower level protocol in order to create the access point of the local bus session. The local export identifier of the created access point (see MessagePassingOutgoingPush.getLocalExportIdentifier()) must be equivalent to the given export identifier.

Parameters:
localId - the identifier to obtain for the given channel.
incomingPush - the interface on which bus session want to receive incoming messages.
Returns:
the access point of the local bus session.
Throws:
ExportException - if the export process fails.


Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.