Package tigase.pubsub
Class AbstractPubSubModule
- java.lang.Object
-
- tigase.stats.CounterValue
-
- tigase.stats.Counter
-
- tigase.stats.StatisticHolderImpl
-
- tigase.pubsub.AbstractPubSubModule
-
- All Implemented Interfaces:
tigase.component.modules.Module
,tigase.stats.StatisticHolder
- Direct Known Subclasses:
AbstractConfigCreateNode
,CapsModule
,DefaultConfigModule
,ManageAffiliationsModule
,ManageSubscriptionModule
,NodeDeleteModule
,PendingSubscriptionModule
,PresenceCollectorModule
,PresenceNotifierModule
,PresencePerNodeExtension
,PublishItemModule
,PurgeItemsModule
,RetractItemModule
,RetrieveAffiliationsModule
,RetrieveItemsModule
,RetrieveSubscriptionsModule
,SubscribeNodeModule
,UnsubscribeNodeModule
public abstract class AbstractPubSubModule extends tigase.stats.StatisticHolderImpl implements tigase.component.modules.Module
Base class for modules of PubSub component. Provides commonly used properties and methods.- Version:
- 5.0.0, 2010.03.27 at 05:24:03 GMT
- Author:
- Artur Hefczyc
-
-
Field Summary
Fields Modifier and Type Field Description protected IPubSubConfig
config
protected static java.util.logging.Logger
log
protected tigase.component.PacketWriter
packetWriter
protected PubSubLogic
pubSubLogic
-
Constructor Summary
Constructors Constructor Description AbstractPubSubModule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canHandle(tigase.server.Packet packet)
protected IPubSubRepository
getRepository()
static java.util.List<tigase.server.Packet>
makeArray(tigase.server.Packet... packets)
static java.util.List<tigase.xml.Element>
makeArray(tigase.xml.Element... elements)
-
Methods inherited from class tigase.stats.StatisticHolderImpl
getStatistics, setStatisticsPrefix, statisticExecutedIn
-
Methods inherited from class tigase.stats.Counter
everyHour, everyMinute, everySecond, getPerHour, getPerMinute, getPerSecond
-
Methods inherited from class tigase.stats.CounterValue
getLevel, getName, getValue, inc, setName, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
log
protected static final java.util.logging.Logger log
-
config
@Inject protected IPubSubConfig config
-
pubSubLogic
@Inject protected PubSubLogic pubSubLogic
-
packetWriter
@Inject protected tigase.component.PacketWriter packetWriter
-
-
Method Detail
-
makeArray
public static java.util.List<tigase.xml.Element> makeArray(tigase.xml.Element... elements)
-
makeArray
public static java.util.List<tigase.server.Packet> makeArray(tigase.server.Packet... packets)
-
canHandle
public boolean canHandle(tigase.server.Packet packet)
- Specified by:
canHandle
in interfacetigase.component.modules.Module
-
getRepository
protected IPubSubRepository getRepository()
-
-