public interface Connection extends Connection
| Modifier and Type | Field and Description |
|---|---|
static int |
ABORT |
static int |
CLOSE_RECVD |
static int |
CLOSE_SENT |
static int |
ESTABLISHED |
static int |
OPENING |
| Modifier and Type | Method and Description |
|---|---|
MessageMediator |
clientReply_1_1_Get() |
void |
clientReply_1_1_Put(MessageMediator x) |
void |
clientReply_1_1_Remove() |
MessageMediator |
clientRequestMapGet(int requestId) |
void |
close() |
void |
closeConnectionResources()
Clean up all connection resources.
|
Acceptor |
getAcceptor() |
ORB |
getBroker() |
CodeBase |
getCodeBase() |
IOR |
getCodeBaseIOR() |
CodeSetComponentInfo.CodeSetContext |
getCodeSetContext() |
ConnectionCache |
getConnectionCache() |
ContactInfo |
getContactInfo() |
EventHandler |
getEventHandler() |
Queue<MessageMediator> |
getFragmentList(RequestId corbaRequestId) |
int |
getNextRequestId() |
ResponseWaitingRoom |
getResponseWaitingRoom() |
SocketChannel |
getSocketChannel() |
long |
getTimeStamp()
Timestamps are used for connection management, in particular, for
reclaiming idle
Connections. |
boolean |
hasSocketChannel() |
boolean |
isBusy()
Indicates if the
Connection is in the process of
sending or receiving a message. |
boolean |
isClosed()
Indicates if the
Connection is closed. |
boolean |
isPostInitialContexts() |
boolean |
isServer()
Indicates whether a CorbaContactInfo or CorbaAcceptor
created the
Connection. |
void |
purgeCalls(SystemException systemException,
boolean die,
boolean lockHeld) |
boolean |
read()
Called to read incoming messages.
|
void |
registerWaiter(MessageMediator messageMediator)
Register an invocation's CorbaMessageMediator
with the
Connection. |
void |
removeFragmentList(RequestId corbaRequestId) |
void |
sendCancelRequest(GIOPVersion giopVersion,
int requestId) |
void |
sendCancelRequestWithLock(GIOPVersion giopVersion,
int requestId) |
void |
sendCloseConnection(GIOPVersion giopVersion) |
void |
sendMessageError(GIOPVersion giopVersion) |
void |
sendWithoutLock(CDROutputObject outputObject) |
MessageMediator |
serverRequest_1_1_Get() |
void |
serverRequest_1_1_Put(MessageMediator x) |
void |
serverRequest_1_1_Remove() |
MessageMediator |
serverRequestMapGet(int requestId) |
void |
serverRequestMapPut(int requestId,
MessageMediator messageMediator) |
void |
serverRequestMapRemove(int requestId) |
void |
serverRequestProcessingBegins() |
void |
serverRequestProcessingEnds() |
void |
setCodeBaseIOR(IOR ior) |
void |
setCodeSetContext(CodeSetComponentInfo.CodeSetContext csc) |
void |
setConnectionCache(ConnectionCache connectionCache) |
void |
setPostInitialContexts() |
void |
setState(String state)
The "state" of the
Connection. |
void |
setTimeStamp(long time)
Timestamps are used for connection management, in particular, for
reclaiming idle
Connections. |
boolean |
shouldRegisterReadEvent()
Used to determine if the
Connection should register
with the CorbaTransportManager Selector
to handle read events. |
boolean |
shouldRegisterServerReadEvent()
Used to determine if the
Connection should register
with the
CorbaTransportManager Selector
to handle read events. |
void |
unregisterWaiter(MessageMediator messageMediator)
Unregister an invocation's * CorbaMessageMediator
with the
Connection. |
CDRInputObject |
waitForResponse(MessageMediator messageMediator)
If a message expect's a response then this method is called.
|
void |
write(ByteBuffer byteBuffer) |
void |
writeLock()
Grab a write lock on the
Connection. |
void |
writeUnlock()
Release a write lock on the
Connection. |
getSocketstatic final int OPENING
static final int ESTABLISHED
static final int CLOSE_SENT
static final int CLOSE_RECVD
static final int ABORT
boolean shouldRegisterReadEvent()
Connection should register
with the CorbaTransportManager Selector
to handle read events.
For example, an HTTP transport would not register since the requesting
thread would just block on read when waiting for the reply.true if it should be registered.boolean shouldRegisterServerReadEvent()
Connection should register
with the
CorbaTransportManager Selector
to handle read events.
For example, an HTTP transport would not register since the requesting
thread would just block on read when waiting for the reply.true if it should be registered.boolean read()
true if the thread calling read can be released.void close()
Acceptor getAcceptor()
ContactInfo getContactInfo()
EventHandler getEventHandler()
boolean isServer()
Connection.true if a CorbaAcceptor
created the Connection.boolean isClosed()
Connection is closed.true if the Connection is closed.boolean isBusy()
Connection is in the process of
sending or receiving a message.true if the Connection is busy.long getTimeStamp()
Connections.Connection was last used.void setTimeStamp(long time)
Connections.time - - the "time" the Connection was last used.void setState(String state)
Connection.
param statevoid writeLock()
Connection.
If another thread already has a write lock then the calling
thread will block until the lock is released. The calling
thread must call
writeUnlock()
when it is done.void writeUnlock()
Connection.void sendWithoutLock(CDROutputObject outputObject)
void registerWaiter(MessageMediator messageMediator)
Connection.
This is useful in protocols which support fragmentation.messageMediator - CDRInputObject waitForResponse(MessageMediator messageMediator)
messageMediator - void unregisterWaiter(MessageMediator messageMediator)
Connection.messageMediator - void setConnectionCache(ConnectionCache connectionCache)
ConnectionCache getConnectionCache()
boolean hasSocketChannel()
void write(ByteBuffer byteBuffer) throws IOException
IOExceptionint getNextRequestId()
ORB getBroker()
CodeSetComponentInfo.CodeSetContext getCodeSetContext()
void setCodeSetContext(CodeSetComponentInfo.CodeSetContext csc)
MessageMediator clientRequestMapGet(int requestId)
void clientReply_1_1_Put(MessageMediator x)
MessageMediator clientReply_1_1_Get()
void clientReply_1_1_Remove()
void serverRequest_1_1_Put(MessageMediator x)
MessageMediator serverRequest_1_1_Get()
void serverRequest_1_1_Remove()
boolean isPostInitialContexts()
void setPostInitialContexts()
void purgeCalls(SystemException systemException, boolean die, boolean lockHeld)
void setCodeBaseIOR(IOR ior)
IOR getCodeBaseIOR()
CodeBase getCodeBase()
void sendCloseConnection(GIOPVersion giopVersion) throws IOException
IOExceptionvoid sendMessageError(GIOPVersion giopVersion) throws IOException
IOExceptionvoid sendCancelRequest(GIOPVersion giopVersion, int requestId) throws IOException
IOExceptionvoid sendCancelRequestWithLock(GIOPVersion giopVersion, int requestId) throws IOException
IOExceptionResponseWaitingRoom getResponseWaitingRoom()
void serverRequestMapPut(int requestId,
MessageMediator messageMediator)
MessageMediator serverRequestMapGet(int requestId)
void serverRequestMapRemove(int requestId)
Queue<MessageMediator> getFragmentList(RequestId corbaRequestId)
void removeFragmentList(RequestId corbaRequestId)
SocketChannel getSocketChannel()
void serverRequestProcessingBegins()
void serverRequestProcessingEnds()
void closeConnectionResources()
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.