Class PresencePerNodeExtension
java.lang.Object
tigase.stats.CounterValue
tigase.stats.Counter
tigase.stats.StatisticHolderImpl
tigase.pubsub.AbstractPubSubModule
tigase.pubsub.modules.ext.presence.PresencePerNodeExtension
- All Implemented Interfaces:
tigase.component.modules.Module
,tigase.kernel.beans.Initializable
,tigase.kernel.beans.UnregisterAware
,tigase.stats.StatisticHolder
@Bean(name="presencePerNodeExtension",
parent=PubSubComponent.class,
active=false)
public class PresencePerNodeExtension
extends AbstractPubSubModule
implements tigase.kernel.beans.Initializable, tigase.kernel.beans.UnregisterAware
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
-
Field Summary
Fields inherited from class tigase.pubsub.AbstractPubSubModule
config, packetWriter, pubSubLogic
Fields inherited from class tigase.stats.CounterValue
counter, level, name
Fields inherited from interface tigase.component.modules.Module
EMPTY_FEATURES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
canHandle
(tigase.server.Packet packet) tigase.eventbus.EventBus
tigase.criteria.Criteria
Collection<tigase.xmpp.jid.JID>
getNodeOccupants
(tigase.xmpp.jid.BareJID serviceJID, String nodeName) getNodes
(tigase.xmpp.jid.BareJID serviceJID, tigase.xmpp.jid.JID occupantJID) Collection<tigase.server.Packet>
getPresence
(tigase.xmpp.jid.BareJID serviceJID, String nodeName, tigase.xmpp.jid.BareJID occupantJID) tigase.server.Packet
getPresence
(tigase.xmpp.jid.BareJID serviceJID, String nodeName, tigase.xmpp.jid.JID occupantJID) void
void
process
(tigase.server.Packet packet) void
setEventBus
(tigase.eventbus.EventBus eventBus) Methods inherited from class tigase.pubsub.AbstractPubSubModule
getRepository, makeArray, makeArray
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
Methods inherited from interface tigase.stats.StatisticHolder
everyHour, everyMinute, everySecond
-
Field Details
-
XMLNS_EXTENSION
- See Also:
-
log
-
-
Constructor Details
-
PresencePerNodeExtension
public PresencePerNodeExtension()
-
-
Method Details
-
getEventBus
public tigase.eventbus.EventBus getEventBus() -
setEventBus
public void setEventBus(tigase.eventbus.EventBus eventBus) -
getNodeOccupants
public Collection<tigase.xmpp.jid.JID> getNodeOccupants(tigase.xmpp.jid.BareJID serviceJID, String nodeName) -
getNodes
public Collection<String> getNodes(tigase.xmpp.jid.BareJID serviceJID, tigase.xmpp.jid.JID occupantJID) -
getPresence
public Collection<tigase.server.Packet> getPresence(tigase.xmpp.jid.BareJID serviceJID, String nodeName, tigase.xmpp.jid.BareJID occupantJID) -
getPresence
public tigase.server.Packet getPresence(tigase.xmpp.jid.BareJID serviceJID, String nodeName, tigase.xmpp.jid.JID occupantJID) -
initialize
public void initialize()- Specified by:
initialize
in interfacetigase.kernel.beans.Initializable
-
beforeUnregister
public void beforeUnregister()- Specified by:
beforeUnregister
in interfacetigase.kernel.beans.UnregisterAware
-
canHandle
public boolean canHandle(tigase.server.Packet packet) - Specified by:
canHandle
in interfacetigase.component.modules.Module
- Overrides:
canHandle
in classAbstractPubSubModule
-
getModuleCriteria
public tigase.criteria.Criteria getModuleCriteria()- Specified by:
getModuleCriteria
in interfacetigase.component.modules.Module
-
process
public void process(tigase.server.Packet packet) - Specified by:
process
in interfacetigase.component.modules.Module
-