SunSPOT API V6.0


com.sun.spot.ipv6.routing
Class IPRoutingTable

java.lang.Object
  extended by com.sun.spot.resources.Resource
      extended by com.sun.spot.service.BasicService
          extended by com.sun.spot.ipv6.routing.IPRoutingTable
All Implemented Interfaces:
IResource, IService

public class IPRoutingTable
extends BasicService

A routing table for use by the IPv6 implementation. Allows for longest prefix matching of IPv6 destination addresses.

Author:
Pete St. Pierre

Field Summary
static boolean debug
           
 
Fields inherited from interface com.sun.spot.service.IService
PAUSED, PAUSING, READY, RESUMING, RUNNING, STARTING, STOPPED, STOPPING
 
Method Summary
 void addEntry(IPRouteEntry re)
           
 void deleteEntry(IPRouteEntry re)
           
 void dumpTable()
           
 IPRouteEntry findEntry(byte[] dest)
           
 IPRouteEntry getDefaultRoute()
           
static IPRoutingTable getInstance()
          Return this IP Routing Table singleton
 String getServiceName()
          Return the name of this service.
 void initializeStaticValues()
           
 void setDefaultRoute(IPRouteEntry re)
           
 
Methods inherited from class com.sun.spot.service.BasicService
getEnabled, getStatus, isRunning, pause, resume, setEnabled, setServiceName, start, stop
 
Methods inherited from class com.sun.spot.resources.Resource
addTag, getTags, getTagValue, hasTag, removeTag
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.spot.resources.IResource
addTag, getTags, getTagValue, hasTag, removeTag
 

Field Detail

debug

public static final boolean debug
Method Detail

getInstance

public static IPRoutingTable getInstance()
Return this IP Routing Table singleton

Returns:
the Routing table singleton

getServiceName

public String getServiceName()
Description copied from interface: IService
Return the name of this service.

Specified by:
getServiceName in interface IService
Specified by:
getServiceName in class BasicService
Returns:
the name of this service

initializeStaticValues

public void initializeStaticValues()

setDefaultRoute

public void setDefaultRoute(IPRouteEntry re)

getDefaultRoute

public IPRouteEntry getDefaultRoute()

addEntry

public void addEntry(IPRouteEntry re)

deleteEntry

public void deleteEntry(IPRouteEntry re)

findEntry

public IPRouteEntry findEntry(byte[] dest)

dumpTable

public void dumpTable()

SunSPOT API V6.0


Copyright © 2006-2010 Oracle. All Rights Reserved.