public class ServerStatus extends Object
| Constructor and Description |
|---|
ServerStatus(UUID serverId,
String serverName,
boolean online,
boolean removable,
long lastOnlineTime)
Creates a status object encapsulating the specified information.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getLastOnlineTime()
Returns the last time at which the server registered itself with the
cluster.
|
UUID |
getServerId()
Returns the unique identifier that identifies the server within the
cluster.
|
String |
getServerName()
Returns a human-readable identifier for the server.
|
boolean |
isOnline()
Tells whether this server is currently online.
|
boolean |
isRemovable()
Tells whether this server has been offline for a sufficient amount of
time so that it may be removed.
|
public ServerStatus(UUID serverId, String serverName, boolean online, boolean removable, long lastOnlineTime)
serverId - unique identifier identifying the server.serverName - human-readable identifier for the server. Typically, this is
the server's host-name. For technical reasons, there is no
guarantee that this identifier is unique.online - true if the server is online, false
if it is offline.removable - true if the server has been offline for a
sufficient amount of time and may be removed,
false otherwise.lastOnlineTime - last time the server registered itself 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.public long getLastOnlineTime()
public boolean isOnline()
true if the server is online, false if
it is offline.public boolean isRemovable()
true,
it implies that isOnline() returns false.true if the server has been offline long enough so
that it may be removed, false otherwise.public UUID getServerId()
public String getServerName()
Copyright © 2011–2017 aquenos GmbH. All rights reserved.