|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openorb.iiop.IIOPClientChannel
Implements the ClientChannel
interface for IIOP.
Fields inherited from interface org.openorb.net.ClientChannel |
STATE_CLOSED, STATE_CONNECTED, STATE_PAUSED |
Method Summary | |
int |
active_requests()
Active request count. |
int |
channel_age()
Indication of channel age. |
void |
close(boolean kill_requests,
SystemException ex)
Change to the CLOSED state and reject new requests by throwing a system exception with status COMPLETED_NO. |
ClientRequest |
create_locate_request(Object target,
Address address,
java.lang.Object tpAssc)
Create a locate request. |
ClientRequest |
create_request(Object target,
Address address,
java.lang.Object tpAssc,
java.lang.String operation,
boolean response_expected)
Create a request. |
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. |
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(SystemException closeex)
Set the closing exception. |
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. |
Version |
version()
Return the GIOP/IIOP version |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
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(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 ORB orb()
ClientChannel
orb
in interface ClientChannel
public int state()
state
in interface ClientChannel
public void setState(int state)
state
- The state to switch this channel into.public java.lang.String toString()
toString
in class java.lang.Object
public Version version()
public int active_requests()
active_requests
in interface Channel
public int channel_age()
channel_age
in interface Channel
public void pause()
pause
in interface ClientChannel
public void close(boolean kill_requests, SystemException ex)
close
in interface ClientChannel
public ClientRequest create_request(Object target, Address address, java.lang.Object tpAssc, java.lang.String operation, boolean response_expected) throws RebindChannelException
create_request
in interface ClientChannel
target
- The target of the request.address
- The target address. If the target has been redirected
this may not correspond to the target's ior.public ClientRequest create_locate_request(Object target, Address address, java.lang.Object tpAssc) throws RebindChannelException
create_locate_request
in interface ClientChannel
target
- The target of the request.address
- The target address. If the target has been redirected
this may not correspond to the target's ior.public boolean recv(int timeout)
recv
in interface Channel
public void run_recv()
run_recv
in interface Channel
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |