|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jmx.remote.generic.SynchroMessageConnectionServerImpl
public class SynchroMessageConnectionServerImpl
| Constructor Summary | |
|---|---|
SynchroMessageConnectionServerImpl(MessageConnectionServer msServer,
Map env)
|
|
| Method Summary | |
|---|---|
ServerSynchroMessageConnection |
accept()
Listens for a connection to be made to this server and accepts it. |
JMXServiceURL |
getAddress()
The address of this connection server. |
MessageConnectionServer |
getAsynchronConnection()
Returns the underlying asynchronous trasport. |
void |
start(Map env)
Activates this server for new client connections. |
void |
stop()
Terminates this server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SynchroMessageConnectionServerImpl(MessageConnectionServer msServer,
Map env)
| Method Detail |
|---|
public void start(Map env)
throws IOException
SynchroMessageConnectionServerActivates this server for new client connections. Before this call is made, new client connections are not accepted. The behavior is unspecified if this method is called more than once.
start in interface SynchroMessageConnectionServerenv - the properties of the connector server.
IOException - if the server cannot be activated.
public ServerSynchroMessageConnection accept()
throws IOException
SynchroMessageConnectionServerListens for a connection to be made to this server and accepts it. The method blocks until a connection is made.
accept in interface SynchroMessageConnectionServerSynchroMessageConnection object.
IOException - if an I/O error occurs when waiting for
a connection.
public void stop()
throws IOException
SynchroMessageConnectionServerTerminates this server. On return from this method, new
connection attempts are refused. Existing connections are
unaffected by this call. The behavior is unspecified if
this method is called before the SynchroMessageConnectionServer.start(java.util.Map) method.
stop in interface SynchroMessageConnectionServerIOException - if an I/O error occurs when stopping the
server. A best effort will have been made to clean up the
server's resources. The caller will not call SynchroMessageConnectionServer.accept()
after stop(), whether or not it gets
IOException.public JMXServiceURL getAddress()
SynchroMessageConnectionServerThe address of this connection server.
getAddress in interface SynchroMessageConnectionServerpublic MessageConnectionServer getAsynchronConnection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||