public static class ClusterServersDAO.ClusterServer extends Object
Constructor and Description |
---|
ClusterServer(String interNodeCommunicationUrl,
Date lastOnlineTime,
UUID serverId,
String serverName)
Creates a cluster server object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getInterNodeCommunicationUrl()
Returns the URL of the web-service interface for the server.
|
Date |
getLastOnlineTime()
Returns the time the server has last updated its registration in the
database.
|
UUID |
getServerId()
Returns the unique identifier of the server.
|
String |
getServerName()
Returns a human-readable identifier for the server.
|
int |
hashCode() |
public ClusterServer(String interNodeCommunicationUrl, Date lastOnlineTime, UUID serverId, String serverName)
interNodeCommunicationUrl
- URL of the web-service interface for the server. This
interface is used by other servers in the cluster to
communicate with the server.lastOnlineTime
- time the server has last updated its registration in the
database. This time can be used to determine whether the
server is online.serverId
- unique identifier of the server.serverName
- human-readable identifier for the server. Typically, this
is the host-name of the computer on which the server is
running. For technical reasons, it is not guaranteed that
this identifier is unique within the cluster.public String getInterNodeCommunicationUrl()
public Date getLastOnlineTime()
public UUID getServerId()
public String getServerName()
Copyright © 2011–2017 aquenos GmbH. All rights reserved.