|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.samskivert.depot.impl.QueryResult
com.samskivert.depot.PersistentRecord
com.threerings.presents.peer.server.persist.NodeRecord
public class NodeRecord
Contains information on an active node in a Presents server cluster.
| Field Summary | |
|---|---|
static Class<NodeRecord> |
_R
|
static ColumnExp<String> |
HOST_NAME
|
String |
hostName
The DNS name used to connect to this node by other peers. |
static ColumnExp<Timestamp> |
LAST_UPDATED
|
Timestamp |
lastUpdated
The last time this node has reported in. |
static ColumnExp<String> |
NODE_NAME
|
String |
nodeName
The unique name assigned to this node. |
int |
port
The port on which to connect to this node. |
static ColumnExp<Integer> |
PORT
|
static ColumnExp<String> |
PUBLIC_HOST_NAME
|
String |
publicHostName
The DNS name used to connect to this node by normal clients. |
String |
region
The region in which the node exists. |
static ColumnExp<String> |
REGION
|
static int |
SCHEMA_VERSION
Increment this value if you modify the definition of this persistent object in a way that will result in a change to its SQL counterpart. |
boolean |
shutdown
Whether or not this node is explicitly shut down. |
static ColumnExp<Boolean> |
SHUTDOWN
|
| Constructor Summary | |
|---|---|
NodeRecord()
Used to create a blank instance when loading from the database. |
|
NodeRecord(String nodeName)
Used for queries. |
|
NodeRecord(String nodeName,
String hostName,
String publicHostName,
String region,
int port)
Creates a record for the specified node. |
|
| Method Summary | |
|---|---|
static Key<NodeRecord> |
getKey(String nodeName)
Create and return a primary Key to identify a NodeRecord
with the supplied key values. |
String |
getPeerHostName(String region)
Returns the host name to which peers in the specified region should connect. |
String |
toString()
|
| Methods inherited from class com.samskivert.depot.PersistentRecord |
|---|
colexp, newKey, registerKeyFields |
| Methods inherited from class com.samskivert.depot.impl.QueryResult |
|---|
clone |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Class<NodeRecord> _R
public static final ColumnExp<String> NODE_NAME
public static final ColumnExp<String> HOST_NAME
public static final ColumnExp<String> PUBLIC_HOST_NAME
public static final ColumnExp<String> REGION
public static final ColumnExp<Integer> PORT
public static final ColumnExp<Timestamp> LAST_UPDATED
public static final ColumnExp<Boolean> SHUTDOWN
public static final int SCHEMA_VERSION
public String nodeName
public String hostName
public String publicHostName
public String region
public int port
public Timestamp lastUpdated
public boolean shutdown
| Constructor Detail |
|---|
public NodeRecord()
public NodeRecord(String nodeName,
String hostName,
String publicHostName,
String region,
int port)
public NodeRecord(String nodeName)
| Method Detail |
|---|
public String getPeerHostName(String region)
public String toString()
toString in class Objectpublic static Key<NodeRecord> getKey(String nodeName)
Key to identify a NodeRecord
with the supplied key values.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||