mam.internetworking
Class RoutingTable
- public class RoutingTable
- implements XmlSerializable
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
RoutingTable
public RoutingTable()
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)