Class RoomGhostbuster

  • All Implemented Interfaces:
    java.lang.Runnable, tigase.kernel.beans.config.ConfigurationChangedAware, tigase.kernel.beans.Initializable, tigase.kernel.beans.UnregisterAware

    @Bean(name="roomGhostbuster",
          parent=RoomPresenceModule.class,
          active=true)
    public class RoomGhostbuster
    extends tigase.component.ScheduledTask
    • Constructor Summary

      Constructors 
      Constructor Description
      RoomGhostbuster()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected tigase.server.Packet createPing​(tigase.xmpp.jid.BareJID sourceJID, tigase.xmpp.jid.JID destinationJID)  
      protected void onPingReceived​(tigase.server.Packet packet)  
      protected void onPingTimeout​(tigase.xmpp.jid.JID stanzaTo)  
      protected void pingMonitoredObject​(RoomGhostbuster.MonitoredObject monitoredObject)  
      void register​(tigase.xmpp.jid.BareJID channelJID, tigase.xmpp.jid.JID occupantJID)  
      void run()  
      void unregister​(tigase.xmpp.jid.BareJID channelJID, tigase.xmpp.jid.JID occupantJID)  
      • Methods inherited from class tigase.component.ScheduledTask

        beanConfigurationChanged, beforeUnregister, initialize
      • Methods inherited from class tigase.util.common.TimerTask

        cancel, cancel, isCancelled, isScheduled, reset, setScheduledFuture
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RoomGhostbuster

        public RoomGhostbuster()
    • Method Detail

      • register

        public void register​(tigase.xmpp.jid.BareJID channelJID,
                             tigase.xmpp.jid.JID occupantJID)
      • unregister

        public void unregister​(tigase.xmpp.jid.BareJID channelJID,
                               tigase.xmpp.jid.JID occupantJID)
      • run

        public void run()
      • createPing

        protected tigase.server.Packet createPing​(tigase.xmpp.jid.BareJID sourceJID,
                                                  tigase.xmpp.jid.JID destinationJID)
                                           throws tigase.util.stringprep.TigaseStringprepException
        Throws:
        tigase.util.stringprep.TigaseStringprepException
      • onPingReceived

        protected void onPingReceived​(tigase.server.Packet packet)
                               throws tigase.util.stringprep.TigaseStringprepException
        Throws:
        tigase.util.stringprep.TigaseStringprepException
      • onPingTimeout

        protected void onPingTimeout​(tigase.xmpp.jid.JID stanzaTo)
                              throws tigase.util.stringprep.TigaseStringprepException
        Throws:
        tigase.util.stringprep.TigaseStringprepException