org.objectweb.dream.protocol.bus
Class TCPIPLocalAccessManagerImpl

java.lang.Object
  extended by org.objectweb.dream.AbstractComponent
      extended by 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.


Field Summary
protected  MessagePassingProtocol lowerLevelProtocolItf
           
 
Fields inherited from class org.objectweb.dream.AbstractComponent
bindingLogger, fcNeedAsyncStart, fcState, lifeCycleLogger, logger, weaveableC
 
Fields inherited from interface org.objectweb.dream.protocol.bus.LocalAccessManager
ITF_NAME
 
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController
STARTED, STOPPED
 
Constructor Summary
TCPIPLocalAccessManagerImpl()
           
 
Method Summary
 void bindFc(String clientItfName, Object serverItf)
           
 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.
 String[] listFc()
           
 
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
 

Field Detail

lowerLevelProtocolItf

protected MessagePassingProtocol lowerLevelProtocolItf
Constructor Detail

TCPIPLocalAccessManagerImpl

public TCPIPLocalAccessManagerImpl()
Method Detail

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.