|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.exolab.core.messenger.Messenger
| Constructor Summary | |
protected |
Messenger()
Construct a new Messenger |
| Method Summary | |
void |
accept(java.lang.String uri,
ConnectionHandler handler)
Accept connections for the specified URI, passing new connections to the handler. |
void |
accept(java.lang.String uri,
ConnectionHandler handler,
ConnectionProperties properties)
Accept connections for the specified URI, passing new connections to the handler. |
void |
close(java.lang.String uri)
Stop accepting connections for the specified URI |
static Messenger |
getInstance()
Returns the singleton instance of the Messenger |
Connection |
open(java.lang.String uri)
Establish a connection to the specified URI. |
Connection |
open(java.lang.String uri,
ConnectionProperties properties)
Establish a connection to the specified URI. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected Messenger()
| Method Detail |
public static Messenger getInstance()
public Connection open(java.lang.String uri)
throws java.net.MalformedURLException,
java.rmi.RemoteException
If a connection to the URI already exists, it will be returned.
uri - the URI to connect to
java.net.MalformedURLException - if uri is an invalid URI
java.rmi.RemoteException - if the connection cannot be opened
java.lang.IllegalArgumentException - if uri is null
public Connection open(java.lang.String uri,
ConnectionProperties properties)
throws java.net.MalformedURLException,
java.rmi.RemoteException
If a connection to the URI already exists, it will be returned.
uri - the URI to connect toproperties - connection properties (may be null)
java.net.MalformedURLException - if uri is an invalid URI
java.rmi.RemoteException - if the connection cannot be opened
java.lang.IllegalArgumentException - if uri is null
public void accept(java.lang.String uri,
ConnectionHandler handler)
throws java.net.MalformedURLException,
java.rmi.RemoteException
uri - the URI to listen onhandler - the handler to pass new connections to
java.net.MalformedURLException - if uri is an invalid URI
java.rmi.RemoteException - if an error occurs accepting connections
java.lang.IllegalArgumentException - if uri or
handler are null
public void accept(java.lang.String uri,
ConnectionHandler handler,
ConnectionProperties properties)
throws java.net.MalformedURLException,
java.rmi.RemoteException
uri - the URI to listen onhandler - the handler to pass new connections toproperties - connection properties (may be null)
AcceptorAlreadyRegisteredException - if an
ConnectionAcceptor is already listing on uri
java.net.MalformedURLException - if uri is an invalid URI
java.rmi.RemoteException - if an error occurs accepting connections
java.lang.IllegalArgumentException - if uri or
handler are null
public void close(java.lang.String uri)
throws java.net.MalformedURLException,
java.rmi.RemoteException
uri - the URI to close
java.net.MalformedURLException - if uri is an invalid URI
java.rmi.RemoteException - if an error occurs closing the connection
java.lang.IllegalArgumentException - if uri is null
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||