Package com.nt.udc.admin.server
Class RouteUtil
java.lang.Object
com.nt.udc.admin.server.RouteUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringaddRoute(String sourceNodeId, String destNodeId, String routeFunction, String rField, Vector rCondition) static AdminServerstatic VectorgetRoutingAttributes(com.nt.udc.admin.NodeInfo source) static StringremoveRoute(String sourceNodeId, String destNodeId) static voidstatic voidsetASLogger(Logger asLogger) static StringstoreRouteChangeInformation(com.nt.udc.admin.NodeInfo source, com.nt.udc.admin.NodeInfo dest, String routeFunction, Vector channels, String rField, Vector rCondition) static StringupdateRoute(String sourceNodeId, String destNodeId, String routeFunction, String rField, Vector rCondition) static StringupdateRouteParameters(String sourceNodeId, String destNodeId, String rField, Vector rCondition)
-
Field Details
-
hm
-
-
Constructor Details
-
RouteUtil
public RouteUtil()
-
-
Method Details
-
setAdminServerRef
-
getAdminServerRef
-
setASLogger
-
getRoutingAttributes
- Parameters:
source- NodeInfo object
-
updateRouteParameters
public static String updateRouteParameters(String sourceNodeId, String destNodeId, String rField, Vector rCondition) throws RemoteException - Parameters:
sourceNodeId- The sourceNodeIDdestNodeId- The destNodeIdrField- The routing attribute that should be used (must be present in NPL)rCondition- For Directed routing, this must be a vector of invalid input: '<'operator,operand1,operands2> where operands1 and operands2 are comma seperated string. Operand2 can be empty string if operator just requres one operand.- Throws:
RemoteException
-
storeRouteChangeInformation
public static String storeRouteChangeInformation(com.nt.udc.admin.NodeInfo source, com.nt.udc.admin.NodeInfo dest, String routeFunction, Vector channels, String rField, Vector rCondition) throws RemoteException - Parameters:
source- The NodeInfo Object of the source nodedest- The NodeInfo Object of the dest noderouteFunction- The desired Routing function (Directed,Multicast,etc) Note : The naming convention should be same as in ChannelInfo.ROUTING_CHOICESchannels- A Vector of existing channelrField- In case of MODULUS or DIRECTED routing, this is the routing attribute. Else nullrCondition- In case of DIRECTED routing, this should be a vector of invalid input: '<'String,Vector,Vector> where the string is the operator and the two vectors are for LHS and RHS of the operation chosen. Else null- Throws:
RemoteException
-
updateRoute
public static String updateRoute(String sourceNodeId, String destNodeId, String routeFunction, String rField, Vector rCondition) throws RemoteException - Parameters:
sourceNodeId- The sourceNodeIDdestNodeId- The destNodeIdrouteFunction- The routingFunction to use, this function should be used only for Directed and ModulusrField- The routing attribute that should be used (must be present in NPL)rCondition- For Directed routing, this must be a vector of invalid input: '<'operator,operand1,operands2> where operands1 and operands2 are comma seperated string. Operand2 can be empty string if operator just requres one operand.- Throws:
RemoteException
-
addRoute
public static String addRoute(String sourceNodeId, String destNodeId, String routeFunction, String rField, Vector rCondition) throws RemoteException - Parameters:
sourceNodeId- The sourceNodeIDdestNodeId- The destNodeIdrouteFunction- The routingFunction to use, this function just accepts Round Robin and Multicast- Throws:
RemoteException
-
removeRoute
- Parameters:
sourceNodeId- The sourceNodeIDdestNodeId- The destNodeId- Throws:
RemoteException
-