tigase.cluster
Class ClusterController

java.lang.Object
  extended by tigase.server.AbstractComponentRegistrator<ClusteredComponent>
      extended by tigase.cluster.ClusterController
All Implemented Interfaces:
XMPPService, ComponentRegistrator, ServerComponent

public class ClusterController
extends AbstractComponentRegistrator<ClusteredComponent>
implements XMPPService

Describe class ClusterController here. Created: Mon Jun 9 20:03:28 2008

Version:
$Rev: 1246 $
Author:
Artur Hefczyc

Field Summary
 
Fields inherited from class tigase.server.AbstractComponentRegistrator
components
 
Fields inherited from interface tigase.disco.XMPPService
CMD_FEATURES, DEF_FEATURES, INFO_XMLNS, ITEMS_XMLNS
 
Constructor Summary
ClusterController()
           
 
Method Summary
 void componentAdded(ClusteredComponent component)
           
 void componentRemoved(ClusteredComponent component)
           
 java.util.List<tigase.xml.Element> getDiscoFeatures()
          Returns features for top level disco info
 tigase.xml.Element getDiscoInfo(java.lang.String node, java.lang.String jid)
           
 java.util.List<tigase.xml.Element> getDiscoItems(java.lang.String node, java.lang.String jid)
           
 boolean isCorrectType(ServerComponent component)
           
 void processPacket(Packet packet, java.util.Queue<Packet> results)
          processPacket is a blocking processing method implemented by all components.
 void setName(java.lang.String name)
           
 
Methods inherited from class tigase.server.AbstractComponentRegistrator
addComponent, deleteComponent, getComponent, getComponentId, getName, initializationCompleted, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface tigase.server.ServerComponent
getComponentId, getName, initializationCompleted, release
 

Constructor Detail

ClusterController

public ClusterController()
Method Detail

setName

public void setName(java.lang.String name)
Specified by:
setName in interface ServerComponent
Overrides:
setName in class AbstractComponentRegistrator<ClusteredComponent>

componentAdded

public void componentAdded(ClusteredComponent component)
Specified by:
componentAdded in class AbstractComponentRegistrator<ClusteredComponent>

isCorrectType

public boolean isCorrectType(ServerComponent component)
Specified by:
isCorrectType in class AbstractComponentRegistrator<ClusteredComponent>

componentRemoved

public void componentRemoved(ClusteredComponent component)
Specified by:
componentRemoved in class AbstractComponentRegistrator<ClusteredComponent>

getDiscoInfo

public tigase.xml.Element getDiscoInfo(java.lang.String node,
                                       java.lang.String jid)
Specified by:
getDiscoInfo in interface XMPPService

getDiscoFeatures

public java.util.List<tigase.xml.Element> getDiscoFeatures()
Description copied from interface: XMPPService
Returns features for top level disco info

Specified by:
getDiscoFeatures in interface XMPPService
Returns:

getDiscoItems

public java.util.List<tigase.xml.Element> getDiscoItems(java.lang.String node,
                                                        java.lang.String jid)
Specified by:
getDiscoItems in interface XMPPService

processPacket

public void processPacket(Packet packet,
                          java.util.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
Parameters:
packet - a Packet value


Copyright © 2008 Tigase. All Rights Reserved.