Package com.sun.corba.ee.impl.transport
Class TransportManagerImpl
- java.lang.Object
-
- com.sun.corba.ee.impl.transport.TransportManagerImpl
-
- All Implemented Interfaces:
TransportManager
public class TransportManagerImpl extends java.lang.Object implements TransportManager
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<Acceptor>acceptorsprivate java.lang.ThreadLocalcurrentMessageTraceManagerprotected java.util.Map<java.lang.String,InboundConnectionCache>inboundConnectionCachesprotected ORBorbprotected java.util.Map<java.lang.String,OutboundConnectionCache>outboundConnectionCachesprotected Selectorselector-
Fields inherited from interface com.sun.corba.ee.spi.transport.TransportManager
SOCKET_OR_CHANNEL_CONNECTION_CACHE
-
-
Constructor Summary
Constructors Constructor Description TransportManagerImpl(ORB orb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToIORTemplate(IORTemplate iorTemplate, Policies policies, java.lang.String codebase, java.lang.String objectAdapterManagerId, ObjectAdapterId objectAdapterId)voidclose()private voiddisplay(java.lang.String msg)java.util.Collection<Acceptor>getAcceptors()java.util.Collection<Acceptor>getAcceptors(java.lang.String objectAdapterManagerId, ObjectAdapterId objectAdapterId)ByteBufferPoolgetByteBufferPool(int id)InboundConnectionCachegetInboundConnectionCache(Acceptor acceptor)java.util.Collection<InboundConnectionCache>getInboundConnectionCaches()MessageTraceManagergetMessageTraceManager()Return a MessageTraceManager for the current thread.OutboundConnectionCachegetOutboundConnectionCache(ContactInfo contactInfo)java.util.Collection<OutboundConnectionCache>getOutboundConnectionCaches()SelectorgetSelector()SelectorgetSelector(int id)voidregisterAcceptor(Acceptor acceptor)voidunregisterAcceptor(Acceptor acceptor)
-
-
-
Field Detail
-
orb
protected ORB orb
-
acceptors
protected java.util.List<Acceptor> acceptors
-
outboundConnectionCaches
protected final java.util.Map<java.lang.String,OutboundConnectionCache> outboundConnectionCaches
-
inboundConnectionCaches
protected final java.util.Map<java.lang.String,InboundConnectionCache> inboundConnectionCaches
-
selector
protected Selector selector
-
currentMessageTraceManager
private java.lang.ThreadLocal currentMessageTraceManager
-
-
Constructor Detail
-
TransportManagerImpl
public TransportManagerImpl(ORB orb)
-
-
Method Detail
-
getByteBufferPool
public ByteBufferPool getByteBufferPool(int id)
- Specified by:
getByteBufferPoolin interfaceTransportManager
-
getOutboundConnectionCache
public OutboundConnectionCache getOutboundConnectionCache(ContactInfo contactInfo)
- Specified by:
getOutboundConnectionCachein interfaceTransportManager
-
getOutboundConnectionCaches
public java.util.Collection<OutboundConnectionCache> getOutboundConnectionCaches()
- Specified by:
getOutboundConnectionCachesin interfaceTransportManager
-
getInboundConnectionCaches
public java.util.Collection<InboundConnectionCache> getInboundConnectionCaches()
- Specified by:
getInboundConnectionCachesin interfaceTransportManager
-
getInboundConnectionCache
public InboundConnectionCache getInboundConnectionCache(Acceptor acceptor)
- Specified by:
getInboundConnectionCachein interfaceTransportManager
-
getSelector
public Selector getSelector()
- Specified by:
getSelectorin interfaceTransportManager
-
getSelector
public Selector getSelector(int id)
- Specified by:
getSelectorin interfaceTransportManager
-
registerAcceptor
public void registerAcceptor(Acceptor acceptor)
- Specified by:
registerAcceptorin interfaceTransportManager
-
unregisterAcceptor
public void unregisterAcceptor(Acceptor acceptor)
- Specified by:
unregisterAcceptorin interfaceTransportManager
-
close
public void close()
- Specified by:
closein interfaceTransportManager
-
getAcceptors
public java.util.Collection<Acceptor> getAcceptors()
- Specified by:
getAcceptorsin interfaceTransportManager
-
display
@InfoMethod private void display(java.lang.String msg)
-
getAcceptors
public java.util.Collection<Acceptor> getAcceptors(java.lang.String objectAdapterManagerId, ObjectAdapterId objectAdapterId)
- Specified by:
getAcceptorsin interfaceTransportManager
-
addToIORTemplate
public void addToIORTemplate(IORTemplate iorTemplate, Policies policies, java.lang.String codebase, java.lang.String objectAdapterManagerId, ObjectAdapterId objectAdapterId)
- Specified by:
addToIORTemplatein interfaceTransportManager
-
getMessageTraceManager
public MessageTraceManager getMessageTraceManager()
Description copied from interface:TransportManagerReturn a MessageTraceManager for the current thread. Each thread that calls getMessageTraceManager gets its own independent copy.- Specified by:
getMessageTraceManagerin interfaceTransportManager- Returns:
- MessageTraceManager for the current thread
-
-