org.apache.blur.server.example
Class DisableTableAdminServer
java.lang.Object
org.apache.blur.server.FilteredBlurServer
org.apache.blur.server.example.DisableTableAdminServer
- All Implemented Interfaces:
- Blur.Iface
public class DisableTableAdminServer
- extends FilteredBlurServer
Method Summary |
void |
createTable(TableDescriptor tableDescriptor)
Creates a table with the given TableDescriptor. |
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. |
void |
removeTable(String table,
boolean deleteIndexFiles)
Removes the given table, with an optional to delete the underlying index storage as well. |
Methods inherited from class org.apache.blur.server.FilteredBlurServer |
addColumnDefinition, cancelQuery, configuration, controllerServerList, createSnapshot, describe, enqueueMutate, enqueueMutateBatch, fetchRow, fetchRowBatch, getServerContext, isInSafeMode, listSnapshots, logging, metrics, mutate, mutateBatch, optimize, parseQuery, ping, query, queryStatusById, queryStatusIdList, recordFrequency, removeSnapshot, resetLogging, schema, setUser, shardClusterList, shardServerLayout, shardServerLayoutState, shardServerList, startTrace, tableList, tableListByCluster, tableStats, terms, traceList, traceRemove, traceRequestFetch, traceRequestList |
DisableTableAdminServer
public DisableTableAdminServer(BlurConfiguration configuration,
Blur.Iface iface,
boolean shard)
createTable
public void createTable(TableDescriptor tableDescriptor)
throws BlurException,
TException
- Description copied from interface:
Blur.Iface
- Creates a table with the given TableDescriptor.
- Specified by:
createTable
in interface Blur.Iface
- Overrides:
createTable
in class FilteredBlurServer
- Parameters:
tableDescriptor
- the TableDescriptor.
- Throws:
BlurException
TException
enableTable
public void enableTable(String table)
throws BlurException,
TException
- Description copied from interface:
Blur.Iface
- Enables the given table, blocking until all shards are online.
- Specified by:
enableTable
in interface Blur.Iface
- Overrides:
enableTable
in class FilteredBlurServer
- Parameters:
table
- the table name.
- Throws:
BlurException
TException
disableTable
public void disableTable(String table)
throws BlurException,
TException
- Description copied from interface:
Blur.Iface
- Disables the given table, blocking until all shards are offline.
- Specified by:
disableTable
in interface Blur.Iface
- Overrides:
disableTable
in class FilteredBlurServer
- Parameters:
table
- the table name.
- Throws:
BlurException
TException
removeTable
public void removeTable(String table,
boolean deleteIndexFiles)
throws BlurException,
TException
- Description copied from interface:
Blur.Iface
- Removes the given table, with an optional to delete the underlying index storage as well.
- Specified by:
removeTable
in interface Blur.Iface
- Overrides:
removeTable
in class FilteredBlurServer
- Parameters:
table
- the table name.deleteIndexFiles
- true to remove the index storage and false if to preserve.
- Throws:
BlurException
TException
Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.