mam.internetworking
Class RoutingTable


public class RoutingTable
implements XmlSerializable


Field Summary
 final static StringDEFAULT_TAG_NAME
           
 (package private) booleanm_debug
           
 (package private) Mapm_tagMap
           
 final static StringTAGGED_ROUTING_PATHS_ATTRIBUTE_TAG
           
 final static StringTAGGED_ROUTING_PATHS_TAG_NAME
           
 final static RoutingTagWELL_KNOWN_HOSTS_ROUTING_TAG
           

Constructor Summary
RoutingTable()
           

Method Summary
 synchronized voidaddRoutingPath(RoutingTag tag, LocalRoutingPath path)
           
 synchronized voidaddRoutingPath(RoutingTag tag, LocalRoutingPath path, double weight)
           
 synchronized voidaddRoutingPath(RoutingTag tag, RemoteableRoutingPath path)
           
 synchronized voidaddRoutingPath(RoutingTag tag, RemoteableRoutingPath path, double weight)
           
 voidfromXmlElement(Element source)
           
 RoutingPathsgetAllRoutes(RoutingTag tag)
           
 CollectiongetNRoutingPaths(RoutingTag tag, int numberOfRoutesDesired)
           
 AbstractRoutingPathgetOneRoutingPath(RoutingTag tag)
           
 protected synchronized RoutingPathsgetRoutingPaths(RoutingTag tag)
           
 protected MapgetTagMap()
           
 synchronized RoutesUpdateMessagehandleRoutesQueryMessage(RoutesQueryMessage query)
           
 synchronized voidhandleRoutesUpdateMessage(RoutesUpdateMessage update)
           
 synchronized StringtoDebugString()
           
 ElementtoXmlElement()
           
 ElementtoXmlElement(String tagName)
           

Field Detail

DEFAULT_TAG_NAME

public final static String DEFAULT_TAG_NAME

m_debug

boolean m_debug

m_tagMap

Map m_tagMap

TAGGED_ROUTING_PATHS_ATTRIBUTE_TAG

public final static String TAGGED_ROUTING_PATHS_ATTRIBUTE_TAG

TAGGED_ROUTING_PATHS_TAG_NAME

public final static String TAGGED_ROUTING_PATHS_TAG_NAME

WELL_KNOWN_HOSTS_ROUTING_TAG

public final static RoutingTag WELL_KNOWN_HOSTS_ROUTING_TAG
Constructor Detail

RoutingTable

public RoutingTable()
Method Detail

addRoutingPath

public synchronized void addRoutingPath(RoutingTag tag, LocalRoutingPath path)

addRoutingPath

public synchronized void addRoutingPath(RoutingTag tag, LocalRoutingPath path, double weight)

addRoutingPath

public synchronized void addRoutingPath(RoutingTag tag, RemoteableRoutingPath path)

addRoutingPath

public synchronized void addRoutingPath(RoutingTag tag, RemoteableRoutingPath path, double weight)

fromXmlElement

public void fromXmlElement(Element source)

getAllRoutes

public RoutingPaths getAllRoutes(RoutingTag tag)

getNRoutingPaths

public Collection getNRoutingPaths(RoutingTag tag, int numberOfRoutesDesired)

getOneRoutingPath

public AbstractRoutingPath getOneRoutingPath(RoutingTag tag)

getRoutingPaths

protected synchronized RoutingPaths getRoutingPaths(RoutingTag tag)

getTagMap

protected Map getTagMap()

handleRoutesQueryMessage

public synchronized RoutesUpdateMessage handleRoutesQueryMessage(RoutesQueryMessage query)

handleRoutesUpdateMessage

public synchronized void handleRoutesUpdateMessage(RoutesUpdateMessage update)

toDebugString

public synchronized String toDebugString()

toXmlElement

public Element toXmlElement()

toXmlElement

public Element toXmlElement(String tagName)