Package tigase.cluster.api
Class CommandListenerAbstract
- java.lang.Object
-
- tigase.cluster.api.CommandListenerAbstract
-
- All Implemented Interfaces:
java.lang.Comparable<CommandListener>,CommandListener
- Direct Known Subclasses:
AmpComponentClustered.PacketForwardCommand,PacketForwardCmd
public abstract class CommandListenerAbstract extends java.lang.Object implements CommandListener
- Author:
- kobit
-
-
Constructor Summary
Constructors Constructor Description CommandListenerAbstract(java.lang.String name, Priority priority)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(CommandListener cl)booleanequals(java.lang.Object cl)java.lang.StringgetName()Method allows retrieval name of the particular commandPrioritygetPriority()Method 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 longgetSyncInTraffic()static longgetSyncOutTraffic()inthashCode()voidincSyncInTraffic()voidincSyncOutTraffic()voidsetName(java.lang.String name)Method allows setting name of the commandvoidsetPriority(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 Detail
-
CommandListenerAbstract
public CommandListenerAbstract(java.lang.String name, Priority priority)
-
-
Method Detail
-
getSyncInTraffic
public static long getSyncInTraffic()
-
getSyncOutTraffic
public static long getSyncOutTraffic()
-
compareTo
public int compareTo(CommandListener cl)
- Specified by:
compareToin interfacejava.lang.Comparable<CommandListener>
-
equals
public boolean equals(java.lang.Object cl)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
incSyncInTraffic
public void incSyncInTraffic()
-
incSyncOutTraffic
public void incSyncOutTraffic()
-
getName
public java.lang.String 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
public final void setName(java.lang.String name)
Description copied from interface:CommandListenerMethod allows setting name of the command- Specified by:
setNamein interfaceCommandListener- Parameters:
name- to be used
-
getPriority
public Priority 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
public void setPriority(Priority priority)
-
getStatistics
public void getStatistics(StatisticsList list)
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
-
-