public interface ComponentEventListener
InternalComponentManager.addListener(ComponentEventListener)
method to register for events.The registered event will be triggered only once no matter how many times a component is physically connected to the server or to how many cluster nodes is connected. Likewise, the unregistered event will be triggered only when the last connection of the component is no longer available.
When running inside of a cluster each cluster node will get these event notifications. For instance, if you have a cluster of two nodes and a component connects to a node then both nodes will get the event notification.
Modifier and Type | Method and Description |
---|---|
void |
componentInfoReceived(org.xmpp.packet.IQ iq)
The server has received a disco#info response from the component.
|
void |
componentRegistered(org.xmpp.packet.JID componentJID)
A component was registered with the Component Manager.
|
void |
componentUnregistered(org.xmpp.packet.JID componentJID)
A component was removed.
|
void componentRegistered(org.xmpp.packet.JID componentJID)
componentJID
- address where the component can be located (e.g. search.myserver.com)void componentUnregistered(org.xmpp.packet.JID componentJID)
componentJID
- address where the component was located (e.g. search.myserver.com)void componentInfoReceived(org.xmpp.packet.IQ iq)
iq
- the IQ packet with the disco#info sent by the component.Copyright © 2003-2008 Jive Software.