public class IIOPServerChannel extends java.lang.Object implements ServerChannel
ServerChannel.| Modifier and Type | Field and Description |
|---|---|
static int |
CONN_SC_BIDIR |
static int |
CONN_SC_CODESETS |
static int |
CONN_SC_TOTAL |
STATE_CLOSED, STATE_CONNECTED| Constructor and Description |
|---|
IIOPServerChannel(ServerManager serverManager,
IIOPClientChannel peer,
org.omg.IOP.Codec codec)
Constructor for bidir delegates.
|
IIOPServerChannel(ServerManager serverManager,
Transport transport,
IIOPClientProtocol clientProtocol,
org.omg.IOP.Codec codec)
Creates new IIOPServerChannel
|
| Modifier and Type | Method and Description |
|---|---|
int |
active_requests()
Active request count.
|
int |
channel_age()
Indication of channel age.
|
void |
checkBiDirActivation(IIOPServerRequest request)
Completes the bidir activation.
|
protected void |
checkConnectionSCs(org.omg.IOP.ServiceContext[] request_service_contexts) |
void |
close()
Close the connection.
|
java.util.Map |
getActiveRequestMap()
Return the array with active requests.
|
int |
getChannelAge()
Return the age of the channel.
|
ServerManager |
getServerManager()
Return the server manager of this 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()
Return the orb instance.
|
boolean |
recv(int timeout)
Wait the specified amount of time for an incoming message.
|
void |
run_recv()
Donate a thread for recieving messages.
|
void |
setClientPeer(IIOPClientChannel cltchan)
Set this server's peer, which is usually the client.
|
static void |
setIIOPServerRecvTimeout(int timeout)
Set the IIOP server receive timeout.
|
void |
setPendingClose()
Set the channel to a closing state..
|
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.
|
void |
soft_close(boolean ifActive)
Close the connection after all currently processing requests are complete.
|
int |
state()
Return the state of the channel.
|
java.lang.String |
toString()
Creates a stringified representation of this class.
|
Transport |
transport()
Obtain the transport which created this channel.
|
public static final int CONN_SC_TOTAL
public static final int CONN_SC_CODESETS
public static final int CONN_SC_BIDIR
public IIOPServerChannel(ServerManager serverManager, Transport transport, IIOPClientProtocol clientProtocol, org.omg.IOP.Codec codec)
public IIOPServerChannel(ServerManager serverManager, IIOPClientChannel peer, org.omg.IOP.Codec codec)
public Transport transport()
public static void setIIOPServerRecvTimeout(int timeout)
public java.util.Map getActiveRequestMap()
public SocketQueue getSocketQueue()
public ServerManager getServerManager()
public java.lang.Object getSyncState()
public int getChannelAge()
public void setClientPeer(IIOPClientChannel cltchan)
cltchan - The client channel.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 java.lang.String toString()
toString in class java.lang.Objectpublic org.omg.CORBA.ORB orb()
orb in interface ServerChannelpublic int state()
ServerChannelstate in interface ServerChannelpublic void setState(int state)
state - The state to switch this channel into.public int active_requests()
active_requests in interface Channelpublic int channel_age()
channel_age in interface Channelpublic void close()
close in interface ServerChannelpublic void soft_close(boolean ifActive)
soft_close in interface ServerChannelpublic boolean recv(int timeout)
public void run_recv()
protected void checkConnectionSCs(org.omg.IOP.ServiceContext[] request_service_contexts)
public void checkBiDirActivation(IIOPServerRequest request)