Package tigase.cluster.api
Class CommandListenerAbstract
java.lang.Object
tigase.cluster.api.CommandListenerAbstract
- All Implemented Interfaces:
Comparable<CommandListener>
,CommandListener
- Direct Known Subclasses:
AmpComponentClustered.PacketForwardCommand
,PacketForwardCmd
- Author:
- kobit
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
getName()
Method allows retrieval name of the particular commandMethod returns priority of particular command which should be used to assign proper priority for processing of this commandvoid
getStatistics
(StatisticsList list) Method allows retrieval possible statistics for particular commandstatic long
static long
int
hashCode()
void
void
final void
Method allows setting name of the commandvoid
setPriority
(Priority priority) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface tigase.cluster.api.CommandListener
executeCommand
-
Constructor Details
-
CommandListenerAbstract
-
-
Method Details
-
getSyncInTraffic
public static long getSyncInTraffic() -
getSyncOutTraffic
public static long getSyncOutTraffic() -
compareTo
- Specified by:
compareTo
in interfaceComparable<CommandListener>
-
equals
-
hashCode
public int hashCode() -
incSyncInTraffic
public void incSyncInTraffic() -
incSyncOutTraffic
public void incSyncOutTraffic() -
getName
Description copied from interface:CommandListener
Method allows retrieval name of the particular command- Specified by:
getName
in interfaceCommandListener
- Returns:
- a value of
String
name of the command
-
setName
Description copied from interface:CommandListener
Method allows setting name of the command- Specified by:
setName
in interfaceCommandListener
- Parameters:
name
- to be used
-
getPriority
Description copied from interface:CommandListener
Method returns priority of particular command which should be used to assign proper priority for processing of this command- Specified by:
getPriority
in interfaceCommandListener
-
setPriority
-
getStatistics
Description copied from interface:CommandListener
Method allows retrieval possible statistics for particular command- Specified by:
getStatistics
in interfaceCommandListener
- Parameters:
list
- collection to which statistics should be appended
-