org.objectweb.dream.protocol.bus
Class TCPIPLocalAccessManagerImpl
java.lang.Object
org.objectweb.dream.AbstractComponent
org.objectweb.dream.protocol.bus.TCPIPLocalAccessManagerImpl
- All Implemented Interfaces:
- ContextualBindingController, NeedAsyncStartController, PrepareStopLifeCycleController, Loggable, LocalAccessManager, BindingController, LifeCycleController
public class TCPIPLocalAccessManagerImpl
- extends AbstractComponent
- implements LocalAccessManager
Local access manager specialized for lower TCP/IP protocol.
Methods inherited from class org.objectweb.dream.AbstractComponent |
beforeFirstStart, bindFc, getFcNeedAsyncStart, getFcState, initComponent, lookupFc, prepareStopFc, setLogger, startFc, stopFc, unbindFc |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lowerLevelProtocolItf
protected MessagePassingProtocol lowerLevelProtocolItf
TCPIPLocalAccessManagerImpl
public TCPIPLocalAccessManagerImpl()
findLocalAddress
public int findLocalAddress(ExportIdentifier[] exportIds)
throws BindException
- Description copied from interface:
LocalAccessManager
- Tries to find in the given array of export identifier, the one which
correspond to the local protocol.
- Specified by:
findLocalAddress
in interface LocalAccessManager
- 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.- See Also:
LocalAccessManager.findLocalAddress(ExportIdentifier[])
exportBus
public MessagePassingOutgoingPush exportBus(ExportIdentifier localId,
IncomingPush incomingPush)
throws ExportException
- Description copied from interface:
LocalAccessManager
- 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.
- Specified by:
exportBus
in interface LocalAccessManager
- 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.- See Also:
LocalAccessManager.exportBus(ExportIdentifier, IncomingPush)
listFc
public String[] listFc()
- Specified by:
listFc
in interface BindingController
- See Also:
BindingController.listFc()
bindFc
public void bindFc(String clientItfName,
Object serverItf)
throws NoSuchInterfaceException,
IllegalBindingException,
IllegalLifeCycleException
- Specified by:
bindFc
in interface BindingController
- Overrides:
bindFc
in class AbstractComponent
- Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException
- See Also:
BindingController.bindFc(String,
Object)
Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.