Class RouteUtil

java.lang.Object
com.nt.udc.admin.server.RouteUtil

public class RouteUtil extends Object
  • Field Details

  • Constructor Details

    • RouteUtil

      public RouteUtil()
  • Method Details

    • setAdminServerRef

      public static void setAdminServerRef(AdminServer ref)
    • getAdminServerRef

      public static AdminServer getAdminServerRef()
    • setASLogger

      public static void setASLogger(Logger asLogger)
    • getRoutingAttributes

      public static Vector getRoutingAttributes(com.nt.udc.admin.NodeInfo source)
      Parameters:
      source - NodeInfo object
    • updateRouteParameters

      public static String updateRouteParameters(String sourceNodeId, String destNodeId, String rField, Vector rCondition) throws RemoteException
      Parameters:
      sourceNodeId - The sourceNodeID
      destNodeId - The destNodeId
      rField - 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 node
      dest - The NodeInfo Object of the dest node
      routeFunction - The desired Routing function (Directed,Multicast,etc) Note : The naming convention should be same as in ChannelInfo.ROUTING_CHOICES
      channels - A Vector of existing channel
      rField - In case of MODULUS or DIRECTED routing, this is the routing attribute. Else null
      rCondition - 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 sourceNodeID
      destNodeId - The destNodeId
      routeFunction - The routingFunction to use, this function should be used only for Directed and Modulus
      rField - 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 sourceNodeID
      destNodeId - The destNodeId
      routeFunction - The routingFunction to use, this function just accepts Round Robin and Multicast
      Throws:
      RemoteException
    • removeRoute

      public static String removeRoute(String sourceNodeId, String destNodeId) throws RemoteException
      Parameters:
      sourceNodeId - The sourceNodeID
      destNodeId - The destNodeId
      Throws:
      RemoteException