Package org.onosproject.net.topology
Interface PathAdminService
-
public interface PathAdminServiceProvides administrative abilities to tailor the path service behaviours.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidsetDefaultGraphPathSearch(GraphPathSearch<TopologyVertex,TopologyEdge> graphPathSearch)Sets the specified graph path search algorightm to be used as a default.voidsetDefaultLinkWeigher(LinkWeigher linkWeigher)Sets the specified link-weight function to be used as a default.default voidsetDefaultMaxPaths(int maxPaths)Sets the default maximum path count to be used when computing paths.
-
-
-
Method Detail
-
setDefaultLinkWeigher
void setDefaultLinkWeigher(LinkWeigher linkWeigher)
Sets the specified link-weight function to be used as a default. If null is specified, the builtin default hop-count link-weight will be used.- Parameters:
linkWeigher- link-weight function to be used as default
-
setDefaultGraphPathSearch
void setDefaultGraphPathSearch(GraphPathSearch<TopologyVertex,TopologyEdge> graphPathSearch)
Sets the specified graph path search algorightm to be used as a default. If null is specified, the builtin default all-shortest-paths Dijkstra algorithm will be used.- Parameters:
graphPathSearch- default graph path search algorithm
-
setDefaultMaxPaths
default void setDefaultMaxPaths(int maxPaths)
Sets the default maximum path count to be used when computing paths. If -1 is specified, the builtin defaultALL_PATHS, signifying that all available paths should be returned is used.- Parameters:
maxPaths- new default max path count
-
-