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>
acceptors
private java.lang.ThreadLocal
currentMessageTraceManager
protected java.util.Map<java.lang.String,InboundConnectionCache>
inboundConnectionCaches
protected ORB
orb
protected java.util.Map<java.lang.String,OutboundConnectionCache>
outboundConnectionCaches
protected Selector
selector
-
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 void
addToIORTemplate(IORTemplate iorTemplate, Policies policies, java.lang.String codebase, java.lang.String objectAdapterManagerId, ObjectAdapterId objectAdapterId)
void
close()
private void
display(java.lang.String msg)
java.util.Collection<Acceptor>
getAcceptors()
java.util.Collection<Acceptor>
getAcceptors(java.lang.String objectAdapterManagerId, ObjectAdapterId objectAdapterId)
ByteBufferPool
getByteBufferPool(int id)
InboundConnectionCache
getInboundConnectionCache(Acceptor acceptor)
java.util.Collection<InboundConnectionCache>
getInboundConnectionCaches()
MessageTraceManager
getMessageTraceManager()
Return a MessageTraceManager for the current thread.OutboundConnectionCache
getOutboundConnectionCache(ContactInfo contactInfo)
java.util.Collection<OutboundConnectionCache>
getOutboundConnectionCaches()
Selector
getSelector()
Selector
getSelector(int id)
void
registerAcceptor(Acceptor acceptor)
void
unregisterAcceptor(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:
getByteBufferPool
in interfaceTransportManager
-
getOutboundConnectionCache
public OutboundConnectionCache getOutboundConnectionCache(ContactInfo contactInfo)
- Specified by:
getOutboundConnectionCache
in interfaceTransportManager
-
getOutboundConnectionCaches
public java.util.Collection<OutboundConnectionCache> getOutboundConnectionCaches()
- Specified by:
getOutboundConnectionCaches
in interfaceTransportManager
-
getInboundConnectionCaches
public java.util.Collection<InboundConnectionCache> getInboundConnectionCaches()
- Specified by:
getInboundConnectionCaches
in interfaceTransportManager
-
getInboundConnectionCache
public InboundConnectionCache getInboundConnectionCache(Acceptor acceptor)
- Specified by:
getInboundConnectionCache
in interfaceTransportManager
-
getSelector
public Selector getSelector()
- Specified by:
getSelector
in interfaceTransportManager
-
getSelector
public Selector getSelector(int id)
- Specified by:
getSelector
in interfaceTransportManager
-
registerAcceptor
public void registerAcceptor(Acceptor acceptor)
- Specified by:
registerAcceptor
in interfaceTransportManager
-
unregisterAcceptor
public void unregisterAcceptor(Acceptor acceptor)
- Specified by:
unregisterAcceptor
in interfaceTransportManager
-
close
public void close()
- Specified by:
close
in interfaceTransportManager
-
getAcceptors
public java.util.Collection<Acceptor> getAcceptors()
- Specified by:
getAcceptors
in 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:
getAcceptors
in interfaceTransportManager
-
addToIORTemplate
public void addToIORTemplate(IORTemplate iorTemplate, Policies policies, java.lang.String codebase, java.lang.String objectAdapterManagerId, ObjectAdapterId objectAdapterId)
- Specified by:
addToIORTemplate
in interfaceTransportManager
-
getMessageTraceManager
public MessageTraceManager getMessageTraceManager()
Description copied from interface:TransportManager
Return a MessageTraceManager for the current thread. Each thread that calls getMessageTraceManager gets its own independent copy.- Specified by:
getMessageTraceManager
in interfaceTransportManager
- Returns:
- MessageTraceManager for the current thread
-
-