|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.db.SystemTable
public class SystemTable
Field Summary | |
---|---|
static java.lang.String |
INDEX_CF
|
static java.lang.String |
NODE_ID_CF
|
static java.lang.String |
STATUS_CF
|
Constructor Summary | |
---|---|
SystemTable()
|
Method Summary | |
---|---|
static void |
checkHealth()
One of three things will happen if you try to read the system table: 1. |
static NodeId |
getCurrentLocalNodeId()
Read the current local node id from the system table or null if no such node id is recorded. |
static java.util.List<NodeId.NodeIdRecord> |
getOldLocalNodeIds()
|
static Token |
getSavedToken()
|
static int |
incrementAndGetGeneration()
|
static boolean |
isBootstrapped()
|
static boolean |
isIndexBuilt(java.lang.String table,
java.lang.String indexName)
|
static java.util.HashMap<Token,java.net.InetAddress> |
loadTokens()
Return a map of stored tokens to IP addresses |
static void |
purgeIncompatibleHints()
|
static void |
removeToken(Token token)
Remove stored token being used by another node |
static void |
setBootstrapped(boolean isBootstrapped)
|
static void |
setIndexBuilt(java.lang.String table,
java.lang.String indexName)
|
static void |
setIndexRemoved(java.lang.String table,
java.lang.String indexName)
|
static void |
updateToken(java.net.InetAddress ep,
Token token)
Record token being used by another node |
static void |
updateToken(Token token)
This method is used to update the System Table with the new token for this node |
static void |
writeCurrentLocalNodeId(NodeId oldNodeId,
NodeId newNodeId,
long now)
Write a new current local node id to the system table. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String STATUS_CF
public static final java.lang.String INDEX_CF
public static final java.lang.String NODE_ID_CF
Constructor Detail |
---|
public SystemTable()
Method Detail |
---|
public static void purgeIncompatibleHints() throws java.io.IOException
java.io.IOException
public static void updateToken(java.net.InetAddress ep, Token token)
public static void removeToken(Token token)
public static void updateToken(Token token)
public static java.util.HashMap<Token,java.net.InetAddress> loadTokens()
public static void checkHealth() throws ConfigurationException, java.io.IOException
ConfigurationException
java.io.IOException
public static Token getSavedToken()
public static int incrementAndGetGeneration() throws java.io.IOException
java.io.IOException
public static boolean isBootstrapped()
public static void setBootstrapped(boolean isBootstrapped)
public static boolean isIndexBuilt(java.lang.String table, java.lang.String indexName)
public static void setIndexBuilt(java.lang.String table, java.lang.String indexName)
public static void setIndexRemoved(java.lang.String table, java.lang.String indexName)
public static NodeId getCurrentLocalNodeId()
public static void writeCurrentLocalNodeId(NodeId oldNodeId, NodeId newNodeId, long now)
oldNodeId
- the previous local node id (that newNodeId
replace) or null if no such node id exists (new node or removed system
table)newNodeId
- the new current local node id to recordpublic static java.util.List<NodeId.NodeIdRecord> getOldLocalNodeIds()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |