test_class.file: tigase-server 7.1.0/src/test/java/tigase/cluster/api/ClusterElementTest.java
test_class.identifier: ClusterElementTest
test_class.superclass: extends TestCase
test_case.body: @Test
  	@SuppressWarnings("deprecation")
  	public void testGetMethodName() {
  		SimpleParser parser       = new SimpleParser();
  		DomBuilderHandler handler = new DomBuilderHandler();
  		char[] data               =
  			"<cluster to=\"sess-man@blue\" type=\"set\" id=\"cl-6627\" xmlns=\"tigase:cluster\" from=\"sess-man@green\"><control><visited-nodes><node-id>sess-man@green</node-id></visited-nodes><method-call name=\"packet-forward-sm-cmd\"/><first-node>sess-man@green</first-node></control><data><presence to=\"test2@test\" xmlns=\"jabber:client\" from=\"test1@test/test\"><status/><priority>5</priority></presence></data></cluster>".toCharArray();
  
  		parser.parse(handler, data, 0, data.length);
  
  		Element elem = handler.getParsedElements().poll();
  
  		assertEquals(
  				"packet-forward-sm-cmd",
  				elem.findChild("/cluster/control/method-call").getAttributeStaticStr("name"));
  
  //  assertEquals("cluster/control/method-call".split("/"),
  //               ClusterElement.CLUSTER_METHOD_PATH);
  		ClusterElement clElem = new ClusterElement(elem);
  
  		assertEquals("packet-forward-sm-cmd", clElem.getMethodName());
  	}
test_case.class_method_signature: ClusterElementTest.testGetMethodName()
test_case.full_signature: @Test @SuppressWarnings("deprecation") public void testGetMethodName()
test_case.identifier: testGetMethodName
test_case.invocations: toCharArray parse poll getParsedElements assertEquals getAttributeStaticStr findChild assertEquals getMethodName
test_case.modifiers: @Test @SuppressWarnings("deprecation") public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetMethodName()
focal_class.declarator: CLUSTER_CONTROL_EL_NAME = "control"
focal_class.modifier: public static final
focal_class.original_string: public static final String CLUSTER_CONTROL_EL_NAME = "control";
focal_class.type: String
focal_class.var_name: CLUSTER_CONTROL_EL_NAME
focal_class.declarator: CLUSTER_DATA_EL_NAME = "data"
focal_class.modifier: public static final
focal_class.original_string: public static final String CLUSTER_DATA_EL_NAME = "data";
focal_class.type: String
focal_class.var_name: CLUSTER_DATA_EL_NAME
focal_class.declarator: CLUSTER_EL_NAME = "cluster"
focal_class.modifier: public static final
focal_class.original_string: public static final String CLUSTER_EL_NAME = "cluster";
focal_class.type: String
focal_class.var_name: CLUSTER_EL_NAME
focal_class.declarator: CLUSTER_METHOD_EL_NAME = "method-call"
focal_class.modifier: public static final
focal_class.original_string: public static final String CLUSTER_METHOD_EL_NAME = "method-call";
focal_class.type: String
focal_class.var_name: CLUSTER_METHOD_EL_NAME
focal_class.declarator: CLUSTER_METHOD_PAR_EL_NAME = "par"
focal_class.modifier: public static final
focal_class.original_string: public static final String CLUSTER_METHOD_PAR_EL_NAME = "par";
focal_class.type: String
focal_class.var_name: CLUSTER_METHOD_PAR_EL_NAME
focal_class.declarator: CLUSTER_METHOD_RESULTS_EL_NAME = "results"
focal_class.modifier: public static final
focal_class.original_string: public static final String CLUSTER_METHOD_RESULTS_EL_NAME = "results";
focal_class.type: String
focal_class.var_name: CLUSTER_METHOD_RESULTS_EL_NAME
focal_class.declarator: CLUSTER_METHOD_RESULTS_VAL_EL_NAME = "val"
focal_class.modifier: public static final
focal_class.original_string: public static final String CLUSTER_METHOD_RESULTS_VAL_EL_NAME = "val";
focal_class.type: String
focal_class.var_name: CLUSTER_METHOD_RESULTS_VAL_EL_NAME
focal_class.declarator: CLUSTER_NAME_ATTR = "name"
focal_class.modifier: public static final
focal_class.original_string: public static final String CLUSTER_NAME_ATTR = "name";
focal_class.type: String
focal_class.var_name: CLUSTER_NAME_ATTR
focal_class.declarator: FIRST_NODE_EL_NAME = "first-node"
focal_class.modifier: public static final
focal_class.original_string: public static final String FIRST_NODE_EL_NAME = "first-node";
focal_class.type: String
focal_class.var_name: FIRST_NODE_EL_NAME
focal_class.declarator: NODE_ID_EL_NAME = "node-id"
focal_class.modifier: public static final
focal_class.original_string: public static final String NODE_ID_EL_NAME = "node-id";
focal_class.type: String
focal_class.var_name: NODE_ID_EL_NAME
focal_class.declarator: VISITED_NODES_EL_NAME = "visited-nodes"
focal_class.modifier: public static final
focal_class.original_string: public static final String VISITED_NODES_EL_NAME = "visited-nodes";
focal_class.type: String
focal_class.var_name: VISITED_NODES_EL_NAME
focal_class.declarator: XMLNS = "tigase:cluster"
focal_class.modifier: public static final
focal_class.original_string: public static final String XMLNS = "tigase:cluster";
focal_class.type: String
focal_class.var_name: XMLNS
focal_class.declarator: log = Logger.getLogger("tigase.cluster.ClusterElement")
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = Logger.getLogger("tigase.cluster.ClusterElement");
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: VISITED_NODES_PATH = { CLUSTER_EL_NAME,
  					CLUSTER_CONTROL_EL_NAME, VISITED_NODES_EL_NAME }
focal_class.modifier: public static final
focal_class.original_string: public static final String[] VISITED_NODES_PATH = { CLUSTER_EL_NAME,
  					CLUSTER_CONTROL_EL_NAME, VISITED_NODES_EL_NAME };
focal_class.type: String[]
focal_class.var_name: VISITED_NODES_PATH
focal_class.declarator: FIRST_NODE_PATH = { CLUSTER_EL_NAME,
  					CLUSTER_CONTROL_EL_NAME, FIRST_NODE_EL_NAME }
focal_class.modifier: public static final
focal_class.original_string: public static final String[] FIRST_NODE_PATH = { CLUSTER_EL_NAME,
  					CLUSTER_CONTROL_EL_NAME, FIRST_NODE_EL_NAME };
focal_class.type: String[]
focal_class.var_name: FIRST_NODE_PATH
focal_class.declarator: CLUSTER_METHOD_RESULTS_PATH = { CLUSTER_EL_NAME,
  					CLUSTER_CONTROL_EL_NAME, CLUSTER_METHOD_EL_NAME,
  					CLUSTER_METHOD_RESULTS_EL_NAME }
focal_class.modifier: public static final
focal_class.original_string: public static final String[] CLUSTER_METHOD_RESULTS_PATH = { CLUSTER_EL_NAME,
  					CLUSTER_CONTROL_EL_NAME, CLUSTER_METHOD_EL_NAME,
  					CLUSTER_METHOD_RESULTS_EL_NAME };
focal_class.type: String[]
focal_class.var_name: CLUSTER_METHOD_RESULTS_PATH
focal_class.declarator: CLUSTER_METHOD_PATH = { CLUSTER_EL_NAME,
  					CLUSTER_CONTROL_EL_NAME, CLUSTER_METHOD_EL_NAME }
focal_class.modifier: public static final
focal_class.original_string: public static final String[] CLUSTER_METHOD_PATH = { CLUSTER_EL_NAME,
  					CLUSTER_CONTROL_EL_NAME, CLUSTER_METHOD_EL_NAME };
focal_class.type: String[]
focal_class.var_name: CLUSTER_METHOD_PATH
focal_class.declarator: CLUSTER_DATA_PATH = { CLUSTER_EL_NAME,
  					CLUSTER_DATA_EL_NAME }
focal_class.modifier: public static final
focal_class.original_string: public static final String[] CLUSTER_DATA_PATH = { CLUSTER_EL_NAME,
  					CLUSTER_DATA_EL_NAME };
focal_class.type: String[]
focal_class.var_name: CLUSTER_DATA_PATH
focal_class.declarator: CLUSTER_CONTROL_PATH = { CLUSTER_EL_NAME,
  					CLUSTER_CONTROL_EL_NAME }
focal_class.modifier: public static final
focal_class.original_string: public static final String[] CLUSTER_CONTROL_PATH = { CLUSTER_EL_NAME,
  					CLUSTER_CONTROL_EL_NAME };
focal_class.type: String[]
focal_class.var_name: CLUSTER_CONTROL_PATH
focal_class.declarator: elem                       = null
focal_class.modifier: private
focal_class.original_string: private Element elem                       = null;
focal_class.type: Element
focal_class.var_name: elem
focal_class.declarator: first_node                     = null
focal_class.modifier: private
focal_class.original_string: private JID first_node                     = null;
focal_class.type: JID
focal_class.var_name: first_node
focal_class.declarator: method_name                 = null
focal_class.modifier: private
focal_class.original_string: private String method_name                 = null;
focal_class.type: String
focal_class.var_name: method_name
focal_class.declarator: method_params  = null
focal_class.modifier: private
focal_class.original_string: private Map<String, String> method_params  = null;
focal_class.type: Map<String, String>
focal_class.var_name: method_params
focal_class.declarator: method_results = null
focal_class.modifier: private
focal_class.original_string: private Map<String, String> method_results = null;
focal_class.type: Map<String, String>
focal_class.var_name: method_results
focal_class.declarator: packets             = null
focal_class.modifier: private
focal_class.original_string: private Queue<Element> packets             = null;
focal_class.type: Queue<Element>
focal_class.var_name: packets
focal_class.declarator: priority				   = null
focal_class.modifier: private
focal_class.original_string: private Priority priority				   = null;
focal_class.type: Priority
focal_class.var_name: priority
focal_class.declarator: visited_nodes             = null
focal_class.modifier: private
focal_class.original_string: private Set<JID> visited_nodes             = null;
focal_class.type: Set<JID>
focal_class.var_name: visited_nodes
focal_class.file: tigase-server 7.1.0/src/main/java/tigase/cluster/api/ClusterElement.java
focal_class.identifier: ClusterElement
focal_class.class_method_signature: ClusterElement.ClusterElement(Element elem)
focal_class.full_signature: public  ClusterElement(Element elem)
focal_class.identifier: ClusterElement
focal_class.modifiers: public
focal_class.parameters: (Element elem)
focal_class.signature:  ClusterElement(Element elem)
focal_class.class_method_signature: ClusterElement.ClusterElement(JID from, JID to, StanzaType type, Packet packet)
focal_class.full_signature: public  ClusterElement(JID from, JID to, StanzaType type, Packet packet)
focal_class.identifier: ClusterElement
focal_class.modifiers: public
focal_class.parameters: (JID from, JID to, StanzaType type, Packet packet)
focal_class.signature:  ClusterElement(JID from, JID to, StanzaType type, Packet packet)
focal_class.class_method_signature: ClusterElement.clusterElement(JID from, JID to, StanzaType type)
focal_class.full_signature: public static Element clusterElement(JID from, JID to, StanzaType type)
focal_class.identifier: clusterElement
focal_class.modifiers: public static
focal_class.parameters: (JID from, JID to, StanzaType type)
focal_class.return: Element
focal_class.signature: Element clusterElement(JID from, JID to, StanzaType type)
focal_class.class_method_signature: ClusterElement.createClusterElement(JID from, JID to, StanzaType type,
  					String packet_from)
focal_class.full_signature: public static Element createClusterElement(JID from, JID to, StanzaType type,
  					String packet_from)
focal_class.identifier: createClusterElement
focal_class.modifiers: public static
focal_class.parameters: (JID from, JID to, StanzaType type,
  					String packet_from)
focal_class.return: Element
focal_class.signature: Element createClusterElement(JID from, JID to, StanzaType type,
  					String packet_from)
focal_class.class_method_signature: ClusterElement.createClusterMethodCall(JID from, JID to, StanzaType type,
  					String method_name, Map<String, String> params)
focal_class.full_signature: public static ClusterElement createClusterMethodCall(JID from, JID to, StanzaType type,
  					String method_name, Map<String, String> params)
focal_class.identifier: createClusterMethodCall
focal_class.modifiers: public static
focal_class.parameters: (JID from, JID to, StanzaType type,
  					String method_name, Map<String, String> params)
focal_class.return: ClusterElement
focal_class.signature: ClusterElement createClusterMethodCall(JID from, JID to, StanzaType type,
  					String method_name, Map<String, String> params)
focal_class.class_method_signature: ClusterElement.createForNextNode(ClusterElement clel,
  					List<JID> cluster_nodes, JID comp_id)
focal_class.full_signature: public static ClusterElement createForNextNode(ClusterElement clel,
  					List<JID> cluster_nodes, JID comp_id)
focal_class.identifier: createForNextNode
focal_class.modifiers: public static
focal_class.parameters: (ClusterElement clel,
  					List<JID> cluster_nodes, JID comp_id)
focal_class.return: ClusterElement
focal_class.signature: ClusterElement createForNextNode(ClusterElement clel,
  					List<JID> cluster_nodes, JID comp_id)
focal_class.class_method_signature: ClusterElement.addDataPacket(Packet packet)
focal_class.full_signature: public void addDataPacket(Packet packet)
focal_class.identifier: addDataPacket
focal_class.modifiers: public
focal_class.parameters: (Packet packet)
focal_class.return: void
focal_class.signature: void addDataPacket(Packet packet)
focal_class.class_method_signature: ClusterElement.addDataPacket(Element packet)
focal_class.full_signature: public void addDataPacket(Element packet)
focal_class.identifier: addDataPacket
focal_class.modifiers: public
focal_class.parameters: (Element packet)
focal_class.return: void
focal_class.signature: void addDataPacket(Element packet)
focal_class.class_method_signature: ClusterElement.addDataPackets(Queue<Element> packets)
focal_class.full_signature: public void addDataPackets(Queue<Element> packets)
focal_class.identifier: addDataPackets
focal_class.modifiers: public
focal_class.parameters: (Queue<Element> packets)
focal_class.return: void
focal_class.signature: void addDataPackets(Queue<Element> packets)
focal_class.class_method_signature: ClusterElement.addMethodResult(String key, String val)
focal_class.full_signature: public void addMethodResult(String key, String val)
focal_class.identifier: addMethodResult
focal_class.modifiers: public
focal_class.parameters: (String key, String val)
focal_class.return: void
focal_class.signature: void addMethodResult(String key, String val)
focal_class.class_method_signature: ClusterElement.addVisitedNode(JID node_id)
focal_class.full_signature: public void addVisitedNode(JID node_id)
focal_class.identifier: addVisitedNode
focal_class.modifiers: public
focal_class.parameters: (JID node_id)
focal_class.return: void
focal_class.signature: void addVisitedNode(JID node_id)
focal_class.class_method_signature: ClusterElement.addVisitedNodes(Set<JID> nodes)
focal_class.full_signature: public void addVisitedNodes(Set<JID> nodes)
focal_class.identifier: addVisitedNodes
focal_class.modifiers: public
focal_class.parameters: (Set<JID> nodes)
focal_class.return: void
focal_class.signature: void addVisitedNodes(Set<JID> nodes)
focal_class.class_method_signature: ClusterElement.createMethodResponse(JID from, StanzaType type,
  					Map<String, String> results)
focal_class.full_signature: public ClusterElement createMethodResponse(JID from, StanzaType type,
  					Map<String, String> results)
focal_class.identifier: createMethodResponse
focal_class.modifiers: public
focal_class.parameters: (JID from, StanzaType type,
  					Map<String, String> results)
focal_class.return: ClusterElement
focal_class.signature: ClusterElement createMethodResponse(JID from, StanzaType type,
  					Map<String, String> results)
focal_class.class_method_signature: ClusterElement.createMethodResponse(JID from, JID to, StanzaType type,
  					Map<String, String> results)
focal_class.full_signature: public ClusterElement createMethodResponse(JID from, JID to, StanzaType type,
  					Map<String, String> results)
focal_class.identifier: createMethodResponse
focal_class.modifiers: public
focal_class.parameters: (JID from, JID to, StanzaType type,
  					Map<String, String> results)
focal_class.return: ClusterElement
focal_class.signature: ClusterElement createMethodResponse(JID from, JID to, StanzaType type,
  					Map<String, String> results)
focal_class.class_method_signature: ClusterElement.getAllMethodParams()
focal_class.full_signature: public Map<String, String> getAllMethodParams()
focal_class.identifier: getAllMethodParams
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getAllMethodParams()
focal_class.class_method_signature: ClusterElement.getAllMethodResults()
focal_class.full_signature: public Map<String, String> getAllMethodResults()
focal_class.identifier: getAllMethodResults
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getAllMethodResults()
focal_class.class_method_signature: ClusterElement.getClusterElement(String id)
focal_class.full_signature: public Element getClusterElement(String id)
focal_class.identifier: getClusterElement
focal_class.modifiers: public
focal_class.parameters: (String id)
focal_class.return: Element
focal_class.signature: Element getClusterElement(String id)
focal_class.class_method_signature: ClusterElement.getDataPackets()
focal_class.full_signature: public Queue<Element> getDataPackets()
focal_class.identifier: getDataPackets
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Queue<Element>
focal_class.signature: Queue<Element> getDataPackets()
focal_class.class_method_signature: ClusterElement.getFirstNode()
focal_class.full_signature: public JID getFirstNode()
focal_class.identifier: getFirstNode
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: JID
focal_class.signature: JID getFirstNode()
focal_class.class_method_signature: ClusterElement.getMethodName()
focal_class.full_signature: public String getMethodName()
focal_class.identifier: getMethodName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getMethodName()
focal_class.class_method_signature: ClusterElement.getMethodParam(String par_name)
focal_class.full_signature: public String getMethodParam(String par_name)
focal_class.identifier: getMethodParam
focal_class.modifiers: public
focal_class.parameters: (String par_name)
focal_class.return: String
focal_class.signature: String getMethodParam(String par_name)
focal_class.class_method_signature: ClusterElement.getMethodParam(String par_name, long def)
focal_class.full_signature: public long getMethodParam(String par_name, long def)
focal_class.identifier: getMethodParam
focal_class.modifiers: public
focal_class.parameters: (String par_name, long def)
focal_class.return: long
focal_class.signature: long getMethodParam(String par_name, long def)
focal_class.class_method_signature: ClusterElement.getMethodResultVal(String val_name)
focal_class.full_signature: public String getMethodResultVal(String val_name)
focal_class.identifier: getMethodResultVal
focal_class.modifiers: public
focal_class.parameters: (String val_name)
focal_class.return: String
focal_class.signature: String getMethodResultVal(String val_name)
focal_class.class_method_signature: ClusterElement.getMethodResultVal(String val_name, long def)
focal_class.full_signature: public long getMethodResultVal(String val_name, long def)
focal_class.identifier: getMethodResultVal
focal_class.modifiers: public
focal_class.parameters: (String val_name, long def)
focal_class.return: long
focal_class.signature: long getMethodResultVal(String val_name, long def)
focal_class.class_method_signature: ClusterElement.getPriority()
focal_class.full_signature: public Priority getPriority()
focal_class.identifier: getPriority
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Priority
focal_class.signature: Priority getPriority()
focal_class.class_method_signature: ClusterElement.getVisitedNodes()
focal_class.full_signature: public Set<JID> getVisitedNodes()
focal_class.identifier: getVisitedNodes
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Set<JID>
focal_class.signature: Set<JID> getVisitedNodes()
focal_class.class_method_signature: ClusterElement.isVisitedNode(JID node_id)
focal_class.full_signature: public boolean isVisitedNode(JID node_id)
focal_class.identifier: isVisitedNode
focal_class.modifiers: public
focal_class.parameters: (JID node_id)
focal_class.return: boolean
focal_class.signature: boolean isVisitedNode(JID node_id)
focal_class.class_method_signature: ClusterElement.setPriority(Priority priority)
focal_class.full_signature: public void setPriority(Priority priority)
focal_class.identifier: setPriority
focal_class.modifiers: public
focal_class.parameters: (Priority priority)
focal_class.return: void
focal_class.signature: void setPriority(Priority priority)
focal_class.class_method_signature: ClusterElement.nextClusterNode(JID node_id)
focal_class.full_signature: public ClusterElement nextClusterNode(JID node_id)
focal_class.identifier: nextClusterNode
focal_class.modifiers: public
focal_class.parameters: (JID node_id)
focal_class.return: ClusterElement
focal_class.signature: ClusterElement nextClusterNode(JID node_id)
focal_class.class_method_signature: ClusterElement.parseMethodCall(Element method_call)
focal_class.full_signature: protected void parseMethodCall(Element method_call)
focal_class.identifier: parseMethodCall
focal_class.modifiers: protected
focal_class.parameters: (Element method_call)
focal_class.return: void
focal_class.signature: void parseMethodCall(Element method_call)
focal_method.body: public String getMethodName() {
  		return method_name;
  	}
focal_method.class_method_signature: ClusterElement.getMethodName()
focal_method.full_signature: public String getMethodName()
focal_method.identifier: getMethodName
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String getMethodName()