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
     
    protected static final Logger
     
    protected tigase.component.PacketWriter
     
    protected PubSubLogic
     

    Fields inherited from class tigase.stats.CounterValue

    counter, level, name

    Fields inherited from interface tigase.component.modules.Module

    EMPTY_FEATURES
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canHandle(tigase.server.Packet packet)
     
     
    static List<tigase.server.Packet>
    makeArray(tigase.server.Packet... packets)
     
    static 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

    Methods inherited from interface tigase.component.modules.Module

    getFeatures, getModuleCriteria, process

    Methods inherited from interface tigase.stats.StatisticHolder

    everyHour, everyMinute, everySecond
  • Field Details

    • log

      protected static final Logger log
    • config

      @Inject protected IPubSubConfig config
    • pubSubLogic

      @Inject protected PubSubLogic pubSubLogic
    • packetWriter

      @Inject protected tigase.component.PacketWriter packetWriter
  • Constructor Details

    • AbstractPubSubModule

      public AbstractPubSubModule()
  • Method Details

    • makeArray

      public static List<tigase.xml.Element> makeArray(tigase.xml.Element... elements)
    • makeArray

      public static List<tigase.server.Packet> makeArray(tigase.server.Packet... packets)
    • canHandle

      public boolean canHandle(tigase.server.Packet packet)
      Specified by:
      canHandle in interface tigase.component.modules.Module
    • getRepository

      protected IPubSubRepository getRepository()