cgl.narada.mgmt.common
Class NodeAddressConvertor

java.lang.Object
  extended by cgl.narada.mgmt.common.NodeAddressConvertor

public class NodeAddressConvertor
extends Object


Created on May 15, 2006


Constructor Summary
NodeAddressConvertor()
           
 
Method Summary
static int findConnectionLevel(String from, String to)
           
static int[] toIntArray(String address)
          Converts a string representation of address to an array of ints
E.g.
static String toString(int[] address)
          Converts an array representation of address to a string
E.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeAddressConvertor

public NodeAddressConvertor()
Method Detail

toIntArray

public static int[] toIntArray(String address)
Converts a string representation of address to an array of ints
E.g. Convert 1,5,2,18 to {1, 5, 2, 18}

Parameters:
address -
Returns:

toString

public static String toString(int[] address)
Converts an array representation of address to a string
E.g. Convert {1, 5, 2, 18} to 1,5,2,18

Parameters:
address -
Returns:

findConnectionLevel

public static int findConnectionLevel(String from,
                                      String to)


For comments and suggestions please send e-mail to The NaradaBrokering Project