public class MulticastPulseClient extends MulticastConnectionFactory
MulticastConnectionFactory.Filter, MulticastConnectionFactory.URIs| Modifier and Type | Field and Description |
|---|---|
static String |
ORG_APACHE_OPENEJB_MULTIPULSE_TTL |
static String |
ORG_APACHE_OPENEJB_MULTIPULSE_URI_LIMIT |
| Constructor and Description |
|---|
MulticastPulseClient() |
| Modifier and Type | Method and Description |
|---|---|
static Set<URI> |
discoverURIs(String forGroup,
Set<String> schemes,
String host,
int port,
long timeout)
Get a list of URIs discovered for the provided request.
|
Connection |
getConnection(URI uri) |
static MulticastSocket[] |
getSockets(InetAddress ia,
int port) |
static boolean |
isLocalAddress(String host,
boolean wildcardIsLocal)
Is the provided host a local host
|
static void |
main(String[] args) |
getDefaultSchemes, getLong, getSet, getString, unwrappublic static final String ORG_APACHE_OPENEJB_MULTIPULSE_TTL
public static final String ORG_APACHE_OPENEJB_MULTIPULSE_URI_LIMIT
public Connection getConnection(URI uri) throws IOException
getConnection in interface ConnectionFactorygetConnection in class MulticastConnectionFactoryuri - Connection URIIOException - or errorIllegalArgumentException - On undefined errorpublic static Set<URI> discoverURIs(String forGroup, Set<String> schemes, String host, int port, long timeout) throws Exception
forGroup - Specific case sensitive group name or * for allschemes - Acceptable scheme listhost - Multicast host addressport - Multicast porttimeout - Time to wait for a server response, at least 50msException - On errorpublic static boolean isLocalAddress(String host, boolean wildcardIsLocal)
host - The host to testwildcardIsLocal - Should 0.0.0.0 or [::] be deemed as localpublic static MulticastSocket[] getSockets(InetAddress ia, int port) throws Exception
ExceptionCopyright © 1999-2014 The Apache Software Foundation. All Rights Reserved.