|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SPFCache
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:03:45
Nested Class Summary | |
---|---|
static interface |
SPFCache.SPFCacheListener
The listener that updates the SPF cache |
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 |
Method Detail |
---|
SPFCache.SPFCacheListener getListener()
Path getPath(Node src, Node dst) throws NoRouteToHostException, RoutingException
src
- the source nodedst
- the destination node
NoRouteToHostException
RoutingException
java.util.List<Path> getPath(Node src, Node dst, boolean ECMP) throws NoRouteToHostException, RoutingException
src
- the source nodedst
- the destination nodeECMP
- true if equal cost multiple path is activated and false otherwise
NoRouteToHostException
RoutingException
java.util.List<Path> getPath(Node src, Node dst, boolean ECMP, boolean stopOnError) throws NoRouteToHostException, RoutingException
src
- the source nodedst
- the destination nodeECMP
- true if equal cost multiple path is activated and false otherwisestopOnError
-
NoRouteToHostException
RoutingException
void clearPath(Node src, Node dst)
src
- the source nodedst
- the destination nodevoid clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |