Class ServeonResult

All Implemented Interfaces:
Transportable

public class ServeonResult extends Frame
Specialized document (Frame) for representing result of querying VNS for the port on which a service should be provided. This class is used by VinciServer during port negotiation with VNS.
  • Field Details

    • factory

      public static TransportableFactory factory
    • port

      public int port
      Set to the port on which the service should be offered.
  • Constructor Details

    • ServeonResult

      public ServeonResult()
  • Method Details

    • composeQuery

      public static Transportable composeQuery(String service_name, String host_name, int priority, int instance)
      Create a document representing the VNS serveon query for the specified service running on/with the specified host/priority/instance.
      Parameters:
      service_name - -
      host_name - -
      priority - -
      instance - -
      Returns:
      -
    • composeQuery

      public static Transportable composeQuery(String service_name, String host_name, int priority)
      Create a document representing the VNS serveon query for the specified service running on/with the specified host/priority.
      Parameters:
      service_name - -
      host_name - -
      priority - -
      Returns:
      -
    • composeQuery

      public static Transportable composeQuery(String service_name, String host_name)
      Create a document representing the VNS serveon query for the specified service running on the specified host.
      Parameters:
      service_name - -
      host_name - -
      Returns:
      -
    • add

      public void add(String key, FrameComponent value)
      Implement the Frame add() callback.
      Overrides:
      add in class Frame
      Parameters:
      key - The tag name with which to associate the value.
      value - The (Frame | FrameLeaf) value to associate with the tag.