public interface CommandListener extends Comparable<CommandListener>
Modifier and Type | Method and Description |
---|---|
void |
executeCommand(JID fromNode,
Set<JID> visitedNodes,
Map<String,String> data,
Queue<Element> packets)
Method is responsible for executing commands from other nodes and
appropriate processing
|
String |
getName()
Method allows retrieval name of the particular command
|
Priority |
getPriority()
Method returns priority of particular command which should be used
to assign proper priority for processing of this command
|
void |
getStatistics(StatisticsList list)
Method allows retrieval possible statistics for particular command
|
void |
setName(String name)
Method allows setting name of the command
|
compareTo
void executeCommand(JID fromNode, Set<JID> visitedNodes, Map<String,String> data, Queue<Element> packets) throws ClusterCommandException
fromNode
- address of the node from which command was receivedvisitedNodes
- collection of already visited nodesdata
- additional data associated with the command in addition
to the main Element
packets
- collection of Element
commands to be executedClusterCommandException
- execution exceptionString getName()
String
name of the commandPriority getPriority()
void getStatistics(StatisticsList list)
list
- collection to which statistics should be appendedvoid setName(String name)
name
- to be usedCopyright © 2018 "Tigase, Inc.". All rights reserved.