public interface ServerComponent
Modifier and Type | Method and Description |
---|---|
JID |
getComponentId()
Method returns component jid in form of the component name followed by server hostname as a domain.
|
ComponentInfo |
getComponentInfo()
Allows to obtain various informations about components
|
String |
getName()
Method returns name of the component.
|
void |
initializationCompleted()
Method is called by
MessageRouter when all the startup components of the server have been loaded and
configured through setProperties(...) call. |
boolean |
isInitializationComplete()
Method returns information about whether the initialization process (initializationCompleted()) method has been
called.
|
void |
processPacket(Packet packet,
Queue<Packet> results)
processPacket is a blocking processing method implemented by all components. |
void |
release()
Method called when component is being stopped and unloaded.
|
void |
setName(String name)
Method used to assign component name (localpart of the component)
|
void initializationCompleted()
MessageRouter
when all the startup components of the server have been loaded and
configured through setProperties(...) call. At this point the whole server should be loaded and functional,
except initializations taking place in this routine.void processPacket(Packet packet, Queue<Packet> results)
processPacket
is a blocking processing method implemented by all components. This method processes
packet and returns results instantly without waiting for any resources.packet
- a Packet
valuevoid release()
JID getComponentId()
ComponentInfo getComponentInfo()
String getName()
void setName(String name)
name
- to be assignedboolean isInitializationComplete()
true
if initialization of the object has been completed false
otherwiseCopyright © 2004–2021 "Tigase, Inc.". All rights reserved.