|
Openfire 3.6.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.spi.XMPPServerInfoImpl
public class XMPPServerInfoImpl
Implements the server info for a basic server. Optimization opportunities in reusing this object the data is relatively static.
Constructor Summary | |
---|---|
XMPPServerInfoImpl(String xmppDomain,
String hostname,
Version version,
Date startDate,
ConnectionManager connectionManager)
Simple constructor |
Method Summary | |
---|---|
String |
getHostname()
Obtain the host name (IP address or hostname) of this server node. |
Date |
getLastStarted()
Obtain the date when the server was last started. |
String |
getName()
Deprecated. |
Collection<ServerPort> |
getServerPorts()
Obtain the server ports active on this server. |
Version |
getVersion()
Obtain the server's version information. |
String |
getXMPPDomain()
Obtain the server XMPP domain name. |
void |
setName(String serverName)
Deprecated. |
void |
setXMPPDomain(String domainName)
Set the server XMPP domain name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMPPServerInfoImpl(String xmppDomain, String hostname, Version version, Date startDate, ConnectionManager connectionManager)
xmppDomain
- the server's XMPP domain name (e.g. example.org).hostname
- the server's host name (e.g. server1.example.org).version
- the server's version number.startDate
- the server's last start time (can be null indicating
it hasn't been started).connectionManager
- the object that keeps track of the active ports.Method Detail |
---|
public Version getVersion()
XMPPServerInfo
getVersion
in interface XMPPServerInfo
@Deprecated public String getName()
XMPPServerInfo
getName
in interface XMPPServerInfo
@Deprecated public void setName(String serverName)
XMPPServerInfo
setName
in interface XMPPServerInfo
serverName
- the server's name as an IP address or host name.public String getHostname()
XMPPServerInfo
getHostname
in interface XMPPServerInfo
public String getXMPPDomain()
XMPPServerInfo
getXMPPDomain
in interface XMPPServerInfo
public void setXMPPDomain(String domainName)
XMPPServerInfo
setXMPPDomain
in interface XMPPServerInfo
domainName
- the XMPP domain that this server is part of.public Date getLastStarted()
XMPPServerInfo
getLastStarted
in interface XMPPServerInfo
public Collection<ServerPort> getServerPorts()
XMPPServerInfo
getServerPorts
in interface XMPPServerInfo
|
Openfire 3.6.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |