public class IIOPClientChannel extends java.lang.Object implements ClientChannel
ClientChannel interface for IIOP.STATE_CLOSED, STATE_CONNECTED, STATE_PAUSED| Modifier and Type | Method and Description |
|---|---|
int |
active_requests()
Active request count.
|
int |
channel_age()
Indication of channel age.
|
void |
close(boolean kill_requests,
org.omg.CORBA.SystemException ex)
Change to the CLOSED state and reject new requests
by throwing a system exception with status COMPLETED_NO.
|
protected boolean |
connectionSCAdd(org.openorb.orb.iiop.IIOPClientRequest req)
Add any neccicary conneciton SCs, and set the status to pending.
|
protected void |
connectionSCCanceled()
Change the status of any pending connection SCs to unsent.
|
protected void |
connectionSCReset()
Change the status of all connection SCs to unsent.
|
protected void |
connectionSCSent()
Change the status of any pending connection SCs to sent.
|
ClientRequest |
create_locate_request(org.omg.CORBA.Object target,
Address address)
Create a locate request.
|
ClientRequest |
create_request(org.omg.CORBA.Object target,
Address address,
java.lang.String operation,
boolean response_expected)
Create a request.
|
protected void |
finalize()
Finalize method closes channel.
|
java.util.Map |
getActiveRequestMap()
Return the array with active requests.
|
int |
getChannelAge()
Return the age of the channel.
|
SocketQueue |
getSocketQueue()
Return the socket queue.
|
java.lang.Object |
getSyncState()
Return the synchronization state of the client channel.
|
int |
getTCSC()
returns the selected char codeset.
|
int |
getTCSW()
Returns the selected wide char codeset.
|
org.omg.CORBA.ORB |
orb()
An orb reference.
|
void |
pause()
Begin the pausing sequence, enter the PAUSED state.
|
boolean |
recv(int timeout)
Wait the specified amount of time for an incoming message.
|
void |
run_recv()
Donate a thread for recieving messages.
|
void |
setCloseException(org.omg.CORBA.SystemException closeex)
Set the closing exception.
|
static void |
setIIOPClientRecvTimeout(int timeout)
Set the IIOP client receive timeout.
|
void |
setPendingClose()
Set the channel to a closing state..
|
void |
setServerPeer(IIOPServerChannel srvchan)
Set this client's peer, which is usually the server.
|
void |
setState(int state)
Sets the state of the channel.
|
void |
setTCSC(int tcsc)
Sets the selected char codeset.
|
void |
setTCSW(int tcsw)
Sets the selected wide char codeset.
|
int |
state()
Connection state.
|
java.lang.String |
toString()
Returns a stringified representation of this class.
|
Transport |
transport()
Obtain the transport which created this channel.
|
org.omg.IIOP.Version |
version()
Return the GIOP/IIOP version
|
public Transport transport()
public static void setIIOPClientRecvTimeout(int timeout)
timeout - The new timeout value.public java.util.Map getActiveRequestMap()
public SocketQueue getSocketQueue()
public java.lang.Object getSyncState()
public int getChannelAge()
public void setServerPeer(IIOPServerChannel srvchan)
srvchan - The server channel.public void setCloseException(org.omg.CORBA.SystemException closeex)
closeex - public int getTCSC()
public void setTCSC(int tcsc)
tcsc - The char codest.public int getTCSW()
public void setTCSW(int tcsw)
tcsw - The wide char codeset.public void setPendingClose()
public org.omg.CORBA.ORB orb()
ClientChannelorb in interface ClientChannelpublic int state()
state in interface ClientChannelpublic void setState(int state)
state - The state to switch this channel into.public java.lang.String toString()
toString in class java.lang.Objectpublic org.omg.IIOP.Version version()
public int active_requests()
active_requests in interface Channelpublic int channel_age()
channel_age in interface Channelpublic void pause()
pause in interface ClientChannelpublic void close(boolean kill_requests,
org.omg.CORBA.SystemException ex)
close in interface ClientChannelpublic ClientRequest create_request(org.omg.CORBA.Object target, Address address, java.lang.String operation, boolean response_expected) throws RebindChannelException
create_request in interface ClientChanneltarget - The target of the request.address - The target address. If the target has been redirected
this may not correspond to the target's ior.RebindChannelExceptionpublic ClientRequest create_locate_request(org.omg.CORBA.Object target, Address address) throws RebindChannelException
create_locate_request in interface ClientChanneltarget - The target of the request.address - The target address. If the target has been redirected
this may not correspond to the target's ior.RebindChannelExceptionprotected boolean connectionSCAdd(org.openorb.orb.iiop.IIOPClientRequest req)
protected void connectionSCSent()
protected void connectionSCCanceled()
protected void connectionSCReset()
public boolean recv(int timeout)
public void run_recv()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable