Class ServeonResult
java.lang.Object
org.apache.vinci.transport.FrameComponent
org.apache.vinci.transport.Frame
org.apache.vinci.transport.vns.client.ServeonResult
- All Implemented Interfaces:
Transportable
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 Summary
Modifier and TypeFieldDescriptionstatic TransportableFactory
int
Set to the port on which the service should be offered. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(String key, FrameComponent value) Implement the Frame add() callback.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.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.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.Methods inherited from class org.apache.vinci.transport.Frame
createFrameLeaf, createSubFrame, fadd, fadd, fadd, fadd, fadd, fadd, fadd, fadd, fadd, fadd, fadd, fadd, fadd, fadd, faddTrueBinary, fromStream, getFrameTransporter, getKeyValuePair, getKeyValuePairCount, setFrameTransporter, toRawXML, toRawXML, toRawXMLWork, toStream, toString, toXML, toXML, toXML
Methods inherited from class org.apache.vinci.transport.FrameComponent
getAttributes, setAttributes
-
Field Details
-
factory
-
port
public int portSet 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
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
Create a document representing the VNS serveon query for the specified service running on the specified host.- Parameters:
service_name
- -host_name
- -- Returns:
- -
-
add
Implement the Frame add() callback.
-