com.sun.jmx.remote.generic
Class SynchroMessageConnectionServerImpl

java.lang.Object
  extended by com.sun.jmx.remote.generic.SynchroMessageConnectionServerImpl
All Implemented Interfaces:
SynchroMessageConnectionServer

public class SynchroMessageConnectionServerImpl
extends Object
implements SynchroMessageConnectionServer


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

SynchroMessageConnectionServerImpl

public SynchroMessageConnectionServerImpl(MessageConnectionServer msServer,
                                          Map env)
Method Detail

start

public void start(Map env)
           throws IOException
Description copied from interface: SynchroMessageConnectionServer

Activates 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.

Specified by:
start in interface SynchroMessageConnectionServer
Parameters:
env - the properties of the connector server.
Throws:
IOException - if the server cannot be activated.

accept

public ServerSynchroMessageConnection accept()
                                      throws IOException
Description copied from interface: SynchroMessageConnectionServer

Listens for a connection to be made to this server and accepts it. The method blocks until a connection is made.

Specified by:
accept in interface SynchroMessageConnectionServer
Returns:
a new SynchroMessageConnection object.
Throws:
IOException - if an I/O error occurs when waiting for a connection.

stop

public void stop()
          throws IOException
Description copied from interface: SynchroMessageConnectionServer

Terminates 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.

Specified by:
stop in interface SynchroMessageConnectionServer
Throws:
IOException - 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.

getAddress

public JMXServiceURL getAddress()
Description copied from interface: SynchroMessageConnectionServer

The address of this connection server.

Specified by:
getAddress in interface SynchroMessageConnectionServer
Returns:
the address of this connection server.

getAsynchronConnection

public MessageConnectionServer getAsynchronConnection()
Returns the underlying asynchronous trasport.



Copyright © 2014 Terracotta, Inc.. All rights reserved.