Package org.jivesoftware.openfire.spi
Class XMPPServerInfoImpl
java.lang.Object
org.jivesoftware.openfire.spi.XMPPServerInfoImpl
- All Implemented Interfaces:
XMPPServerInfo
Implements the server info for a basic server. Optimization opportunities
in reusing this object the data is relatively static.
- Author:
- Iain Shigeoka
-
Field Summary
FieldsFields inherited from interface org.jivesoftware.openfire.XMPPServerInfo
XMPP_DOMAIN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObtain the fully qualified domain name (hostname or IP address) of this server node.Obtain the date when the server was last started.Obtain the server's version information.Obtain the server XMPP domain name, which is equal for all server nodes in an Openfire cluster.voidsetHostname(String fqdn) Sets the fully qualified domain name of this server node.
-
Field Details
-
VERSION
-
-
Constructor Details
-
XMPPServerInfoImpl
Simple constructor- Parameters:
startDate- the server's last start time (can be null indicating it hasn't been started).
-
-
Method Details
-
getVersion
Description copied from interface:XMPPServerInfoObtain the server's version information. Typically used for iq:version and logging information.- Specified by:
getVersionin interfaceXMPPServerInfo- Returns:
- the version of the server.
-
getHostname
Description copied from interface:XMPPServerInfoObtain the fully qualified domain name (hostname or IP address) of this server node.- Specified by:
getHostnamein interfaceXMPPServerInfo- Returns:
- the server's host name.
-
setHostname
Description copied from interface:XMPPServerInfoSets the fully qualified domain name of this server node. Preferrably, this is a network name, but can be an IP address. Note that some SASL implementations depend on the client sending the same FQDN value as the one that is configured in the server. When setting a new host name, the server note must be restarted.- Specified by:
setHostnamein interfaceXMPPServerInfo- Parameters:
fqdn- The hostname. When null or empty, a system default will be used instead.
-
getXMPPDomain
Description copied from interface:XMPPServerInfoObtain the server XMPP domain name, which is equal for all server nodes in an Openfire cluster.- Specified by:
getXMPPDomainin interfaceXMPPServerInfo- Returns:
- the name of the XMPP domain that this server is part of.
-
getLastStarted
Description copied from interface:XMPPServerInfoObtain the date when the server was last started.- Specified by:
getLastStartedin interfaceXMPPServerInfo- Returns:
- the date the server was started or null if server has not been started.
-