Class ClusteredChannelsStrategy

  • All Implemented Interfaces:
    tigase.kernel.beans.Initializable, tigase.kernel.beans.UnregisterAware, StrategyIfc, tigase.mix.model.RoomGhostbuster.GhostbusterFilter, tigase.mix.modules.RoomPresenceModule.MucMessageBroadcastFilter, tigase.pubsub.cluster.StrategyIfc

    @Bean(name="strategy",
          parent=MixComponentClustered.class,
          active=true)
    public class ClusteredChannelsStrategy
    extends tigase.pubsub.cluster.ClusteredNodeStrategy
    implements StrategyIfc
    • Field Summary

      • Fields inherited from class tigase.pubsub.cluster.ClusteredNodeStrategy

        FORWARD_ELEMENTS, nodesModifications
      • Fields inherited from class tigase.pubsub.cluster.AbstractStrategy

        cl_controller, config, eventBus, localNodeJid, NODE_ATTR, nodeConfigureElemNames, PUBSUB_PATH, pubSubComponent
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void channelConfigurationChanged​(tigase.xmpp.jid.BareJID channelJID, tigase.xml.Element item)  
      protected tigase.xmpp.jid.JID getClusterNodeForGhostbusterPing​(tigase.xmpp.jid.JID sender)  
      java.util.List<tigase.xmpp.jid.JID> getNodesForPacket​(tigase.server.Packet packet)  
      void invalidateChannelParticipant​(tigase.xmpp.jid.BareJID channelJID, tigase.xmpp.jid.BareJID participantJID)  
      protected void requestSync​(tigase.xmpp.jid.JID nodeJid)  
      boolean shouldBroadcastMucMessage​(tigase.xmpp.jid.JID recipient)  
      boolean shouldSendPing​(tigase.xmpp.jid.JID recipient)  
      void tempParticipantAdded​(tigase.xmpp.jid.BareJID channelJID, tigase.xmpp.jid.JID jid, java.lang.String nickname)  
      void tempParticipantRemoved​(tigase.xmpp.jid.BareJID channelJID, tigase.xmpp.jid.JID jid, java.lang.String nickname)  
      • Methods inherited from class tigase.pubsub.cluster.ClusteredNodeStrategy

        broadcastNotification, filterOutPacket, handleLocally, isLocalNode, isOnlineLocally, nodeAddedToCollection, nodeAddedToRootCollection, nodeAffiliationsChanged, nodeConfigurationChanged, nodeDisconnected, nodeRemovedFromCollection, nodeRemovedFromRootCollection, nodeSubscriptionsChanged, notifyNodeConfigurationChanges, packetProcessed, presenceCapsChanged, presenceCapsRemoved, sendException, sendToNodes, shouldBroadcastNotificationLocallyFor, shouldBroadcastNotificationLocallyForOption1, shouldBroadcastNotificationLocallyForOption2, userRemoved, wrapNodeConfig
      • Methods inherited from class tigase.pubsub.cluster.AbstractStrategy

        beforeUnregister, getLocalNodeJid, getNodeForHashCode, getNodeForServiceJid, getNodesConnected, getNodesConnectedWithLocal, initialize, isNodeConfigure, newNodeSubscriptions, nodeConnected, prepareCommandData, setClusterController, setConfig, setLocalNodeJid, setPubSubComponent
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface tigase.pubsub.cluster.StrategyIfc

        broadcastNotification, filterOutPacket, getLocalNodeJid, getNodesConnected, getNodesConnectedWithLocal, isLocalNode, isOnlineLocally, newNodeSubscriptions, nodeAddedToCollection, nodeAddedToRootCollection, nodeAffiliationsChanged, nodeConfigurationChanged, nodeConnected, nodeDisconnected, nodeRemovedFromCollection, nodeRemovedFromRootCollection, nodeSubscriptionsChanged, packetProcessed, presenceCapsChanged, presenceCapsRemoved, sendException, setClusterController, setConfig, setPubSubComponent, shouldBroadcastNotificationLocallyFor, userRemoved, wrapNodeConfig
    • Constructor Detail

      • ClusteredChannelsStrategy

        public ClusteredChannelsStrategy()
    • Method Detail

      • getNodesForPacket

        public java.util.List<tigase.xmpp.jid.JID> getNodesForPacket​(tigase.server.Packet packet)
                                                              throws tigase.pubsub.exceptions.PubSubException
        Specified by:
        getNodesForPacket in interface tigase.pubsub.cluster.StrategyIfc
        Overrides:
        getNodesForPacket in class tigase.pubsub.cluster.ClusteredNodeStrategy
        Throws:
        tigase.pubsub.exceptions.PubSubException
      • channelConfigurationChanged

        public void channelConfigurationChanged​(tigase.xmpp.jid.BareJID channelJID,
                                                tigase.xml.Element item)
        Specified by:
        channelConfigurationChanged in interface StrategyIfc
      • invalidateChannelParticipant

        public void invalidateChannelParticipant​(tigase.xmpp.jid.BareJID channelJID,
                                                 tigase.xmpp.jid.BareJID participantJID)
        Specified by:
        invalidateChannelParticipant in interface StrategyIfc
      • tempParticipantAdded

        public void tempParticipantAdded​(tigase.xmpp.jid.BareJID channelJID,
                                         tigase.xmpp.jid.JID jid,
                                         java.lang.String nickname)
        Specified by:
        tempParticipantAdded in interface StrategyIfc
      • tempParticipantRemoved

        public void tempParticipantRemoved​(tigase.xmpp.jid.BareJID channelJID,
                                           tigase.xmpp.jid.JID jid,
                                           java.lang.String nickname)
        Specified by:
        tempParticipantRemoved in interface StrategyIfc
      • shouldBroadcastMucMessage

        public boolean shouldBroadcastMucMessage​(tigase.xmpp.jid.JID recipient)
        Specified by:
        shouldBroadcastMucMessage in interface tigase.mix.modules.RoomPresenceModule.MucMessageBroadcastFilter
      • shouldSendPing

        public boolean shouldSendPing​(tigase.xmpp.jid.JID recipient)
        Specified by:
        shouldSendPing in interface tigase.mix.model.RoomGhostbuster.GhostbusterFilter
      • requestSync

        protected void requestSync​(tigase.xmpp.jid.JID nodeJid)
        Overrides:
        requestSync in class tigase.pubsub.cluster.ClusteredNodeStrategy
      • getClusterNodeForGhostbusterPing

        protected tigase.xmpp.jid.JID getClusterNodeForGhostbusterPing​(tigase.xmpp.jid.JID sender)