public class IIOPServerProtocol extends java.lang.Object implements ServerProtocol
STATE_CLOSED, STATE_LISTENING, STATE_PAUSED| Constructor and Description |
|---|
IIOPServerProtocol(ServerManager serverManager,
CDRCodecFactory codecFactory,
IIOPTransportServerInitializer trans)
Create new IIOPServerProtocol
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Stop listening, refuse all incoming connections.
|
org.omg.IOP.TaggedProfile |
create_profile(int profile_tag,
ComponentSet component_set,
byte[] object_key)
Construct a tagged profile from parts.
|
ServerManager |
getServerManager()
Return the server mnanager instance.
|
void |
listen(int timeout)
Listen for a single connection.
|
boolean |
open()
Move to the listening state.
|
org.omg.CORBA.ORB |
orb()
Return the orb instance.
|
boolean |
pause()
Move to the paused state.
|
void |
run_listen()
Donate a thread for listening.
|
boolean |
servesAddress(java.lang.String addr,
int port) |
void |
setClientProtocol(IIOPClientProtocol clientProtocol) |
int |
state()
Return the state.
|
java.lang.String |
toString()
Return a stringified representation of the information in this class.
|
public IIOPServerProtocol(ServerManager serverManager, CDRCodecFactory codecFactory, IIOPTransportServerInitializer trans)
serverManager - the server manager instance.codecFactory - codec factory for iiop codecs.trans - transport initializer.org.omg.CORBA.INITIALIZE - if problem occoured during startup.public java.lang.String toString()
toString in class java.lang.Objectpublic void setClientProtocol(IIOPClientProtocol clientProtocol)
public org.omg.CORBA.ORB orb()
orb in interface ServerProtocolpublic ServerManager getServerManager()
public boolean servesAddress(java.lang.String addr,
int port)
public int state()
state in interface ServerProtocolpublic boolean open()
open in interface ServerProtocolpublic boolean pause()
pause in interface ServerProtocolpublic void close()
close in interface ServerProtocolpublic void listen(int timeout)
listen in interface ServerProtocolpublic void run_listen()
run_listen in interface ServerProtocolpublic org.omg.IOP.TaggedProfile create_profile(int profile_tag,
ComponentSet component_set,
byte[] object_key)
create_profile in interface ServerProtocol