|
Wildfire 3.2.4 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.wildfire.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 serverName,
Version version,
Date startDate,
Date stopDate,
ConnectionManager connectionManager)
Simple constructor |
Method Summary | |
---|---|
Date |
getLastStarted()
Obtain the date when the server was last started. |
Date |
getLastStopped()
Obtain the date when the server was last stopped. |
String |
getName()
Obtain the server name (ip address or hostname). |
Collection<ServerPort> |
getServerPorts()
Obtain the server ports active on this server. |
Version |
getVersion()
Obtain the server's version information. |
void |
setName(String serverName)
Set the server name (ip address or hostname). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMPPServerInfoImpl(String serverName, Version version, Date startDate, Date stopDate, ConnectionManager connectionManager)
serverName
- the server's serverName (e.g. example.org).version
- the server's version number.startDate
- the server's last start time (can be null indicating
it hasn't been started).stopDate
- the server's last stop time (can be null indicating it
is running or hasn't been started).connectionManager
- the object that keeps track of the active ports.Method Detail |
---|
public Version getVersion()
XMPPServerInfo
getVersion
in interface XMPPServerInfo
public String getName()
XMPPServerInfo
getName
in interface XMPPServerInfo
public void setName(String serverName)
XMPPServerInfo
setName
in interface XMPPServerInfo
serverName
- the server's name as an ip address or host name.public Date getLastStarted()
XMPPServerInfo
getLastStarted
in interface XMPPServerInfo
public Date getLastStopped()
XMPPServerInfo
getLastStopped
in interface XMPPServerInfo
public Collection<ServerPort> getServerPorts()
XMPPServerInfo
getServerPorts
in interface XMPPServerInfo
|
Wildfire 3.2.4 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |