urv.util.network
Class NetworkUtils

java.lang.Object
  extended by urv.util.network.NetworkUtils

public class NetworkUtils
extends java.lang.Object

Class that provide some methods to manage the different kinds of addresses between JGroups and InetAddress

Author:
Raul Gracia

Constructor Summary
NetworkUtils()
           
 
Method Summary
static org.jgroups.Address getJGroupsAddresFor(java.net.InetAddress dest)
          This method retrieves the JGropups Address equivalent to the InetAddress given.
static org.jgroups.Address getJGroupsAddresFor(java.lang.String dest)
          This method retrieves the JGropups Address equivalent to the String Address given.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkUtils

public NetworkUtils()
Method Detail

getJGroupsAddresFor

public static org.jgroups.Address getJGroupsAddresFor(java.net.InetAddress dest)
This method retrieves the JGropups Address equivalent to the InetAddress given. By default, use the default configuration port, but before sending the message the port will be tested whether is correct to the referring node or not.

Parameters:
dest -
Returns:
JGroups Address

getJGroupsAddresFor

public static org.jgroups.Address getJGroupsAddresFor(java.lang.String dest)
This method retrieves the JGropups Address equivalent to the String Address given. By default, use the default configuration port, but before sending the message the port will be tested whether is correct to the referring node or not.

Parameters:
dest -
Returns:
JGroups Address