|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.blur.thrift.TableAdmin
public abstract class TableAdmin
Constructor Summary | |
---|---|
TableAdmin()
|
Method Summary | |
---|---|
boolean |
addColumnDefinition(String table,
ColumnDefinition columnDefinition)
Attempts to add a column definition to the given table. |
void |
checkForUpdates(String table)
|
void |
checkForUpdates(String cluster,
String table)
|
void |
checkTable(String table)
|
void |
checkTable(String cluster,
String table)
|
Map<String,String> |
configuration()
Fetches the Blur configuration. |
List<String> |
controllerServerList()
Returns a list of all the controller servers. |
void |
createTable(TableDescriptor tableDescriptor)
Creates a table with the given TableDescriptor. |
TableDescriptor |
describe(String table)
Returns a table descriptor for the given table. |
void |
disableTable(String table)
Disables the given table, blocking until all shards are offline. |
void |
enableTable(String table)
Enables the given table, blocking until all shards are online. |
ClusterStatus |
getClusterStatus()
|
int |
getMaxRecordsPerRowFetchRequest()
|
boolean |
isInSafeMode(String cluster)
Checks to see if the given cluster is in safemode. |
boolean |
isTableEnabled(boolean useCache,
String cluster,
String table)
|
void |
logging(String classNameOrLoggerName,
Level level)
Changes the logging level for the given instance dynamically at runtime. |
Map<String,Metric> |
metrics(Set<String> metrics)
Fetches the Blur metrics by name. |
void |
ping()
A way to ping a server to make sure the connection is still valid. |
void |
removeTable(String table,
boolean deleteIndexFiles)
Removes the given table, with an optional to delete the underlying index storage as well. |
void |
resetLogging()
Resets the logging for this instance to match the log4j file. |
Schema |
schema(String table)
Gets the schema for a given table. |
void |
setClusterStatus(ClusterStatus clusterStatus)
|
void |
setConfiguration(BlurConfiguration config)
|
void |
setMaxRecordsPerRowFetchRequest(int _maxRecordsPerRowFetchRequest)
|
void |
setZookeeper(org.apache.zookeeper.ZooKeeper zookeeper)
|
List<String> |
shardClusterList()
Returns a list of all the shard clusters. |
List<String> |
shardServerList(String cluster)
Returns a list of all the shard servers for the given cluster. |
boolean |
tableExists(boolean useCache,
String cluster,
String table)
|
List<String> |
tableList()
Returns a list of the table names across all shard clusters. |
List<String> |
tableListByCluster(String cluster)
Returns a list of the table names for the given cluster. |
List<String> |
traceList()
Get a list of all the traces. |
void |
traceRemove(String traceId)
Remove the trace for the given trace id. |
String |
traceRequestFetch(String traceId,
String requestId)
Fetches the given trace. |
List<String> |
traceRequestList(String traceId)
Gets a request list for the given trace. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.blur.thrift.generated.Blur.Iface |
---|
cancelQuery, createSnapshot, enqueueMutate, enqueueMutateBatch, fetchRow, fetchRowBatch, listSnapshots, mutate, mutateBatch, optimize, parseQuery, query, queryStatusById, queryStatusIdList, recordFrequency, removeSnapshot, setUser, shardServerLayout, shardServerLayoutState, startTrace, tableStats, terms |
Constructor Detail |
---|
public TableAdmin()
Method Detail |
---|
public Map<String,Metric> metrics(Set<String> metrics) throws BlurException, TException
Blur.Iface
metrics
in interface Blur.Iface
metrics
- the names of the metrics to return. If null all are returned.
BlurException
TException
public boolean isInSafeMode(String cluster) throws BlurException, TException
Blur.Iface
isInSafeMode
in interface Blur.Iface
cluster
- the name of the cluster.
BlurException
TException
public final void createTable(TableDescriptor tableDescriptor) throws BlurException, TException
Blur.Iface
createTable
in interface Blur.Iface
tableDescriptor
- the TableDescriptor.
BlurException
TException
public final void disableTable(String table) throws BlurException, TException
Blur.Iface
disableTable
in interface Blur.Iface
table
- the table name.
BlurException
TException
public final void enableTable(String table) throws BlurException, TException
Blur.Iface
enableTable
in interface Blur.Iface
table
- the table name.
BlurException
TException
public final void removeTable(String table, boolean deleteIndexFiles) throws BlurException, TException
Blur.Iface
removeTable
in interface Blur.Iface
table
- the table name.deleteIndexFiles
- true to remove the index storage and false if to preserve.
BlurException
TException
public boolean isTableEnabled(boolean useCache, String cluster, String table)
public void checkTable(String table) throws BlurException
BlurException
public void checkTable(String cluster, String table) throws BlurException
BlurException
public void checkForUpdates(String table) throws BlurException
BlurException
public void checkForUpdates(String cluster, String table) throws BlurException
BlurException
public final List<String> controllerServerList() throws BlurException, TException
Blur.Iface
controllerServerList
in interface Blur.Iface
BlurException
TException
public final List<String> shardServerList(String cluster) throws BlurException, TException
Blur.Iface
shardServerList
in interface Blur.Iface
cluster
- the cluster name.
BlurException
TException
public final List<String> shardClusterList() throws BlurException, TException
Blur.Iface
shardClusterList
in interface Blur.Iface
BlurException
TException
public final TableDescriptor describe(String table) throws BlurException, TException
Blur.Iface
describe
in interface Blur.Iface
table
- the table name.
BlurException
TException
public final List<String> tableListByCluster(String cluster) throws BlurException, TException
Blur.Iface
tableListByCluster
in interface Blur.Iface
cluster
- the cluster name.
BlurException
TException
public final List<String> tableList() throws BlurException, TException
Blur.Iface
tableList
in interface Blur.Iface
BlurException
TException
public boolean addColumnDefinition(String table, ColumnDefinition columnDefinition) throws BlurException, TException
Blur.Iface
addColumnDefinition
in interface Blur.Iface
table
- the name of the table.columnDefinition
- the ColumnDefinition.
BlurException
TException
public List<String> traceList() throws BlurException, TException
Blur.Iface
traceList
in interface Blur.Iface
BlurException
TException
public List<String> traceRequestList(String traceId) throws BlurException, TException
Blur.Iface
traceRequestList
in interface Blur.Iface
traceId
- the trace id.
BlurException
TException
public String traceRequestFetch(String traceId, String requestId) throws BlurException, TException
Blur.Iface
traceRequestFetch
in interface Blur.Iface
traceId
- the trace id.requestId
- the request id.
BlurException
TException
public void traceRemove(String traceId) throws BlurException, TException
Blur.Iface
traceRemove
in interface Blur.Iface
traceId
- the trace id.
BlurException
TException
public boolean tableExists(boolean useCache, String cluster, String table)
public ClusterStatus getClusterStatus()
public void setClusterStatus(ClusterStatus clusterStatus)
public void setZookeeper(org.apache.zookeeper.ZooKeeper zookeeper)
public void setConfiguration(BlurConfiguration config)
public Map<String,String> configuration() throws BlurException, TException
Blur.Iface
configuration
in interface Blur.Iface
BlurException
TException
public int getMaxRecordsPerRowFetchRequest()
public void setMaxRecordsPerRowFetchRequest(int _maxRecordsPerRowFetchRequest)
public Schema schema(String table) throws BlurException, TException
Blur.Iface
schema
in interface Blur.Iface
table
- the table name.
BlurException
TException
public void ping() throws TException
Blur.Iface
ping
in interface Blur.Iface
TException
public void logging(String classNameOrLoggerName, Level level) throws BlurException, TException
Blur.Iface
logging
in interface Blur.Iface
classNameOrLoggerName
- the className or Logger Name of the Logger to be changed.level
- the logging level.
BlurException
TException
public void resetLogging() throws BlurException, TException
Blur.Iface
resetLogging
in interface Blur.Iface
BlurException
TException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |