|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.ac.ulg.montefiore.run.totem.domain.model.impl.SPFCacheImpl
public class SPFCacheImpl
The SPFCache is designed to improve the performance of SPF path computation. It's based on the assumption that path does not change except when a link metric change, a link status change, a link addition or a link remove. So it can improve the performance if multiple call to getPath are done without metric, status or links changes.
Creation date: 07-Jul-2005 15:09:25
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface be.ac.ulg.montefiore.run.totem.domain.model.SPFCache |
|---|
SPFCache.SPFCacheListener |
| Constructor Summary | |
|---|---|
SPFCacheImpl(Domain domain)
|
|
| Method Summary | |
|---|---|
void |
clear()
Remove all the SPF path in the cache * |
void |
clearPath(Node src,
Node dst)
Remove the SPF path computed between source node an destination node from the cache This method must be used if the path have potentially changed. |
SPFCache.SPFCacheListener |
getListener()
Get the domain listener of the cache |
Path |
getPath(Node src,
Node dst)
Get the SPF path between a source node and a destination node |
java.util.List<Path> |
getPath(Node src,
Node dst,
boolean ECMP)
Get all the SPF path between a source node and a destination node if the ECMP is true and a single SPF otherwise |
java.util.List<Path> |
getPath(Node src,
Node dst,
boolean ECMP,
boolean stopOnError)
Get all the SPF path between a source node and a destination node if the ECMP is true and a single SPF otherwise |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SPFCacheImpl(Domain domain)
| Method Detail |
|---|
public SPFCache.SPFCacheListener getListener()
SPFCache
getListener in interface SPFCache
public Path getPath(Node src,
Node dst)
throws NoRouteToHostException,
RoutingException
getPath in interface SPFCachesrc - the source nodedst - the destination node
NoRouteToHostException
RoutingException
public java.util.List<Path> getPath(Node src,
Node dst,
boolean ECMP)
throws NoRouteToHostException,
RoutingException
getPath in interface SPFCachesrc - the source nodedst - the destination nodeECMP - true if equal cost multiple path is activated and false otherwise
NoRouteToHostException
RoutingException
public java.util.List<Path> getPath(Node src,
Node dst,
boolean ECMP,
boolean stopOnError)
throws NoRouteToHostException,
RoutingException
SPFCache
getPath in interface SPFCachesrc - the source nodedst - the destination nodeECMP - true if equal cost multiple path is activated and false otherwise
NoRouteToHostException
RoutingException
public void clearPath(Node src,
Node dst)
clearPath in interface SPFCachesrc - the source nodedst - the destination nodepublic void clear()
clear in interface SPFCache
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||