public class ClusterElement extends Object
<cluster xmlns="tigase:cluster" from="source" to="dest" type="set"> <data> <message xmlns="jabber:client"
from="source-u" to="dest-x" type="chat"> <body>Hello world!</body> </message> </data> <control> <first-node>node1 JID
address</first-node> <visited-nodes> <node-id>node1 JID address</node-id> <node-id>node2 JID address</node-id>
</visited-nodes> <method-call name="method name"> <par name="param1 name">value</par> <par name="param2
name">value</par> <results> <val name="val1 name">value</var> <val name="val2 name">value</var> </results>
</method-call> </control> </cluster>
Modifier and Type | Field and Description |
---|---|
static String |
CLUSTER_CONTROL_EL_NAME |
static String[] |
CLUSTER_CONTROL_PATH |
static String |
CLUSTER_DATA_EL_NAME |
static String[] |
CLUSTER_DATA_PATH |
static String |
CLUSTER_EL_NAME |
static String |
CLUSTER_METHOD_EL_NAME |
static String |
CLUSTER_METHOD_PAR_EL_NAME |
static String[] |
CLUSTER_METHOD_PATH |
static String |
CLUSTER_METHOD_RESULTS_EL_NAME |
static String[] |
CLUSTER_METHOD_RESULTS_PATH |
static String |
CLUSTER_METHOD_RESULTS_VAL_EL_NAME |
static String |
CLUSTER_NAME_ATTR |
static String |
FIRST_NODE_EL_NAME |
static String[] |
FIRST_NODE_PATH |
static String |
NODE_ID_EL_NAME |
static String |
VISITED_NODES_EL_NAME |
static String[] |
VISITED_NODES_PATH |
static String |
XMLNS |
Constructor and Description |
---|
ClusterElement(Element elem)
Creates a new
ClusterElement instance. |
ClusterElement(JID from,
JID to,
StanzaType type,
Packet packet) |
public static final String CLUSTER_CONTROL_EL_NAME
public static final String CLUSTER_DATA_EL_NAME
public static final String CLUSTER_EL_NAME
public static final String CLUSTER_METHOD_EL_NAME
public static final String CLUSTER_METHOD_PAR_EL_NAME
public static final String CLUSTER_METHOD_RESULTS_EL_NAME
public static final String CLUSTER_METHOD_RESULTS_VAL_EL_NAME
public static final String CLUSTER_NAME_ATTR
public static final String FIRST_NODE_EL_NAME
public static final String NODE_ID_EL_NAME
public static final String VISITED_NODES_EL_NAME
public static final String XMLNS
public static final String[] VISITED_NODES_PATH
public static final String[] FIRST_NODE_PATH
public static final String[] CLUSTER_METHOD_RESULTS_PATH
public static final String[] CLUSTER_METHOD_PATH
public static final String[] CLUSTER_DATA_PATH
public static final String[] CLUSTER_CONTROL_PATH
public ClusterElement(Element elem)
ClusterElement
instance.elem
- public ClusterElement(JID from, JID to, StanzaType type, Packet packet)
public static Element clusterElement(JID from, JID to, StanzaType type)
public static Element createClusterElement(JID from, JID to, StanzaType type, String packet_from)
public static ClusterElement createClusterMethodCall(JID from, JID to, StanzaType type, String method_name, Map<String,String> params)
public static ClusterElement createForNextNode(ClusterElement clel, List<JID> cluster_nodes, JID comp_id)
public void addDataPacket(Packet packet)
public void addDataPacket(Element packet)
public void addVisitedNode(JID node_id)
public ClusterElement createMethodResponse(JID from, StanzaType type, Map<String,String> results)
public ClusterElement createMethodResponse(JID from, JID to, StanzaType type, Map<String,String> results)
public JID getFirstNode()
public String getMethodName()
public long getMethodParam(String par_name, long def)
public long getMethodResultVal(String val_name, long def)
public Priority getPriority()
public void setPriority(Priority priority)
public boolean isVisitedNode(JID node_id)
public ClusterElement nextClusterNode(JID node_id)
protected void parseMethodCall(Element method_call)
Copyright © 2004–2019 "Tigase, Inc.". All rights reserved.