Package tigase.disco

Class XMPPServiceCollector

All Implemented Interfaces:
ClusteredComponentIfc, Configurable, XMPPService, ConfigurationChangedAware, Initializable, ComponentRegistrator, ServerComponent, VHostListener

public abstract class XMPPServiceCollector extends AbstractComponentRegistrator<XMPPService>
Class XMPPServiceCollector
Created: Tue Nov 22 07:07:11 2005
Author:
Artur Hefczyc
  • Constructor Details

    • XMPPServiceCollector

      public XMPPServiceCollector()
  • Method Details

    • componentAdded

      public void componentAdded(XMPPService component)
      Description copied from class: AbstractComponentRegistrator
      Method provides a callback mechanism signaling that a new component implementing special interface has been added to the internal components collection.
      Specified by:
      componentAdded in class AbstractComponentRegistrator<XMPPService>
      Parameters:
      component - is a reference to the component just added to the collection.
    • componentRemoved

      public void componentRemoved(XMPPService component)
      Description copied from class: AbstractComponentRegistrator
      Method provides a callback mechanism signaling that a component implementing special interface has been removed from the internal components collection.
      Specified by:
      componentRemoved in class AbstractComponentRegistrator<XMPPService>
      Parameters:
      component - is a reference to the component removed from the collection.
    • isCorrectType

      public boolean isCorrectType(ServerComponent component)
      Description copied from class: AbstractComponentRegistrator
      Method checks whether the component provides as method parameter is correct type that is implements special interface or extends special class. Result of the method determines whether the component can be added to the internal components collection.
      Specified by:
      isCorrectType in class AbstractComponentRegistrator<XMPPService>
      Parameters:
      component - is a reference to the component being checked.
      Returns:
      a boolean value of true if the component is of a correct type and false otherwise.
    • processPacket

      public void processPacket(Packet packet, Queue<Packet> results)
      Description copied from interface: ServerComponent
      processPacket is a blocking processing method implemented by all components. This method processes packet and returns results instantly without waiting for any resources.
      Specified by:
      processPacket in interface ServerComponent
      Overrides:
      processPacket in class BasicComponent
      Parameters:
      packet - a Packet value