org.apache.blur.thrift
Class TableAdmin
java.lang.Object
org.apache.blur.thrift.TableAdmin
- All Implemented Interfaces:
- Blur.Iface
- Direct Known Subclasses:
- BlurControllerServer, BlurShardServer
public abstract class TableAdmin
- extends Object
- implements Blur.Iface
Method Summary |
boolean |
addColumnDefinition(String table,
ColumnDefinition columnDefinition)
|
void |
checkForUpdates(String table)
|
void |
checkForUpdates(String cluster,
String table)
|
void |
checkTable(String table)
|
void |
checkTable(String cluster,
String table)
|
Map<String,String> |
configuration()
|
List<String> |
controllerServerList()
|
void |
createTable(TableDescriptor tableDescriptor)
|
TableDescriptor |
describe(String table)
|
void |
disableTable(String table)
|
void |
enableTable(String table)
|
ClusterStatus |
getClusterStatus()
|
int |
getMaxRecordsPerRowFetchRequest()
|
boolean |
isInSafeMode(String cluster)
|
boolean |
isTableEnabled(boolean useCache,
String cluster,
String table)
|
void |
logging(String classNameOrLoggerName,
Level level)
|
Map<String,Metric> |
metrics(Set<String> metrics)
|
void |
ping()
|
void |
removeTable(String table,
boolean deleteIndexFiles)
|
void |
resetLogging()
|
Schema |
schema(String table)
|
void |
setClusterStatus(ClusterStatus clusterStatus)
|
void |
setConfiguration(BlurConfiguration config)
|
void |
setMaxRecordsPerRowFetchRequest(int _maxRecordsPerRowFetchRequest)
|
void |
setZookeeper(org.apache.zookeeper.ZooKeeper zookeeper)
|
List<String> |
shardClusterList()
|
List<String> |
shardServerList(String cluster)
|
boolean |
tableExists(boolean useCache,
String cluster,
String table)
|
List<String> |
tableList()
|
List<String> |
tableListByCluster(String cluster)
|
List<String> |
traceList()
|
void |
traceRemove(String traceId)
|
String |
traceRequestFetch(String traceId,
String requestId)
|
List<String> |
traceRequestList(String traceId)
|
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 |
TableAdmin
public TableAdmin()
metrics
public Map<String,Metric> metrics(Set<String> metrics)
throws BlurException,
TException
- Specified by:
metrics
in interface Blur.Iface
- Throws:
BlurException
TException
isInSafeMode
public boolean isInSafeMode(String cluster)
throws BlurException,
TException
- Specified by:
isInSafeMode
in interface Blur.Iface
- Throws:
BlurException
TException
createTable
public final void createTable(TableDescriptor tableDescriptor)
throws BlurException,
TException
- Specified by:
createTable
in interface Blur.Iface
- Throws:
BlurException
TException
disableTable
public final void disableTable(String table)
throws BlurException,
TException
- Specified by:
disableTable
in interface Blur.Iface
- Throws:
BlurException
TException
enableTable
public final void enableTable(String table)
throws BlurException,
TException
- Specified by:
enableTable
in interface Blur.Iface
- Throws:
BlurException
TException
removeTable
public final void removeTable(String table,
boolean deleteIndexFiles)
throws BlurException,
TException
- Specified by:
removeTable
in interface Blur.Iface
- Throws:
BlurException
TException
isTableEnabled
public boolean isTableEnabled(boolean useCache,
String cluster,
String table)
checkTable
public void checkTable(String table)
throws BlurException
- Throws:
BlurException
checkTable
public void checkTable(String cluster,
String table)
throws BlurException
- Throws:
BlurException
checkForUpdates
public void checkForUpdates(String table)
throws BlurException
- Throws:
BlurException
checkForUpdates
public void checkForUpdates(String cluster,
String table)
throws BlurException
- Throws:
BlurException
controllerServerList
public final List<String> controllerServerList()
throws BlurException,
TException
- Specified by:
controllerServerList
in interface Blur.Iface
- Throws:
BlurException
TException
shardServerList
public final List<String> shardServerList(String cluster)
throws BlurException,
TException
- Specified by:
shardServerList
in interface Blur.Iface
- Throws:
BlurException
TException
shardClusterList
public final List<String> shardClusterList()
throws BlurException,
TException
- Specified by:
shardClusterList
in interface Blur.Iface
- Throws:
BlurException
TException
describe
public final TableDescriptor describe(String table)
throws BlurException,
TException
- Specified by:
describe
in interface Blur.Iface
- Throws:
BlurException
TException
tableListByCluster
public final List<String> tableListByCluster(String cluster)
throws BlurException,
TException
- Specified by:
tableListByCluster
in interface Blur.Iface
- Throws:
BlurException
TException
tableList
public final List<String> tableList()
throws BlurException,
TException
- Specified by:
tableList
in interface Blur.Iface
- Throws:
BlurException
TException
addColumnDefinition
public boolean addColumnDefinition(String table,
ColumnDefinition columnDefinition)
throws BlurException,
TException
- Specified by:
addColumnDefinition
in interface Blur.Iface
- Throws:
BlurException
TException
traceList
public List<String> traceList()
throws BlurException,
TException
- Specified by:
traceList
in interface Blur.Iface
- Throws:
BlurException
TException
traceRequestList
public List<String> traceRequestList(String traceId)
throws BlurException,
TException
- Specified by:
traceRequestList
in interface Blur.Iface
- Throws:
BlurException
TException
traceRequestFetch
public String traceRequestFetch(String traceId,
String requestId)
throws BlurException,
TException
- Specified by:
traceRequestFetch
in interface Blur.Iface
- Throws:
BlurException
TException
traceRemove
public void traceRemove(String traceId)
throws BlurException,
TException
- Specified by:
traceRemove
in interface Blur.Iface
- Throws:
BlurException
TException
tableExists
public boolean tableExists(boolean useCache,
String cluster,
String table)
getClusterStatus
public ClusterStatus getClusterStatus()
setClusterStatus
public void setClusterStatus(ClusterStatus clusterStatus)
setZookeeper
public void setZookeeper(org.apache.zookeeper.ZooKeeper zookeeper)
setConfiguration
public void setConfiguration(BlurConfiguration config)
configuration
public Map<String,String> configuration()
throws BlurException,
TException
- Specified by:
configuration
in interface Blur.Iface
- Throws:
BlurException
TException
getMaxRecordsPerRowFetchRequest
public int getMaxRecordsPerRowFetchRequest()
setMaxRecordsPerRowFetchRequest
public void setMaxRecordsPerRowFetchRequest(int _maxRecordsPerRowFetchRequest)
schema
public Schema schema(String table)
throws BlurException,
TException
- Specified by:
schema
in interface Blur.Iface
- Throws:
BlurException
TException
ping
public void ping()
throws TException
- Specified by:
ping
in interface Blur.Iface
- Throws:
TException
logging
public void logging(String classNameOrLoggerName,
Level level)
throws BlurException,
TException
- Specified by:
logging
in interface Blur.Iface
- Throws:
BlurException
TException
resetLogging
public void resetLogging()
throws BlurException,
TException
- Specified by:
resetLogging
in interface Blur.Iface
- Throws:
BlurException
TException
Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.