public static class ClusterStatusResponse.ServerItem extends Object
Individual server item in the ClusterStatusResponse.
This object is primarily intended to facilitate the JSON serialization of the data provided by the API controller. For this reason, it does not perform any checks on the parameters used to construct the object.
| Constructor and Description |
|---|
ServerItem(long lastOnlineTime,
boolean online,
UUID serverId,
String serverName)
Creates a server item.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getLastOnlineTime()
Returns the last time the server renewed its registration with the
cluster.
|
UUID |
getServerId()
Returns the server ID.
|
String |
getServerName()
Returns the human-readable name of the server.
|
int |
hashCode() |
boolean |
isOnline()
Tells whether the server is online.
|
String |
toString() |
public ServerItem(long lastOnlineTime,
boolean online,
UUID serverId,
String serverName)
lastOnlineTime - last time the server renewed its registration with the
cluster. The time is specified as the number of
milliseconds since January 1st, 1970, 00:00:00 UTC. The
time is according to the local clock of the server.online - flag indicating whether the server is online. The server
is considered online if it recently renewed its
registration with the cluster. true if the
server is online, false if it is offline.serverId - unique identifier identifying the server.serverName - human-readable name of the server. Typically, this is the
hostname of the server.public long getLastOnlineTime()
public boolean isOnline()
true if the server is online, false
if it is offline.public UUID getServerId()
public String getServerName()
Copyright © 2011–2017 aquenos GmbH. All rights reserved.