|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openorb.iiop.IIOPServerProtocol
This class provides the implementation of the IIOP protocol on the server side.
Fields inherited from interface org.openorb.net.ServerProtocol |
STATE_CLOSED, STATE_LISTENING, STATE_PAUSED |
Constructor Summary | |
IIOPServerProtocol(ServerManager serverManager,
CDRCodecFactory codecFactory,
IIOPTransportServerInitializer trans)
Create new IIOPServerProtocol |
Method Summary | |
void |
close()
Stop listening, refuse all incoming connections. |
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. |
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public IIOPServerProtocol(ServerManager serverManager, CDRCodecFactory codecFactory, IIOPTransportServerInitializer trans)
serverManager
- the server manager instance.codecFactory
- codec factory for iiop codecs.hostname
- Hostname to publish in IORsport
- Port to publish in IORstrans
- transport initializer.INITIALIZE
- if problem occoured during startup.Method Detail |
public java.lang.String toString()
toString
in class java.lang.Object
public void setClientProtocol(IIOPClientProtocol clientProtocol)
public ORB orb()
orb
in interface ServerProtocol
public ServerManager getServerManager()
public boolean servesAddress(java.lang.String addr, int port)
public int state()
state
in interface ServerProtocol
public boolean open()
open
in interface ServerProtocol
public boolean pause()
pause
in interface ServerProtocol
public void close()
close
in interface ServerProtocol
public void listen(int timeout)
listen
in interface ServerProtocol
public void run_listen()
run_listen
in interface ServerProtocol
public TaggedProfile create_profile(int profile_tag, ComponentSet component_set, byte[] object_key)
create_profile
in interface ServerProtocol
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |