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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleangetName()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 commandvoidgetStatistics(StatisticsList list) Method allows retrieval possible statistics for particular commandstatic longstatic longinthashCode()voidvoidfinal voidMethod allows setting name of the commandvoidsetPriority(Priority priority) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
compareToin interfaceComparable<CommandListener>
-
equals
-
hashCode
public int hashCode() -
incSyncInTraffic
public void incSyncInTraffic() -
incSyncOutTraffic
public void incSyncOutTraffic() -
getName
Description copied from interface:CommandListenerMethod allows retrieval name of the particular command- Specified by:
getNamein interfaceCommandListener- Returns:
- a value of
Stringname of the command
-
setName
Description copied from interface:CommandListenerMethod allows setting name of the command- Specified by:
setNamein interfaceCommandListener- Parameters:
name- to be used
-
getPriority
Description copied from interface:CommandListenerMethod returns priority of particular command which should be used to assign proper priority for processing of this command- Specified by:
getPriorityin interfaceCommandListener
-
setPriority
-
getStatistics
Description copied from interface:CommandListenerMethod allows retrieval possible statistics for particular command- Specified by:
getStatisticsin interfaceCommandListener- Parameters:
list- collection to which statistics should be appended
-