org.apache.blur.server
Class FilteredBlurServer

java.lang.Object
  extended by org.apache.blur.server.FilteredBlurServer
All Implemented Interfaces:
Blur.Iface
Direct Known Subclasses:
DisableTableAdminServer

public class FilteredBlurServer
extends Object
implements Blur.Iface


Constructor Summary
FilteredBlurServer(BlurConfiguration configuration, Blur.Iface iface, boolean shard)
           
 
Method Summary
 boolean addColumnDefinition(String table, ColumnDefinition columnDefinition)
           
 void cancelQuery(String table, String uuid)
           
 Map<String,String> configuration()
           
 List<String> controllerServerList()
           
 void createSnapshot(String table, String name)
           
 void createTable(TableDescriptor tableDescriptor)
           
 TableDescriptor describe(String table)
           
 void disableTable(String table)
           
 void enableTable(String table)
           
 void enqueueMutate(RowMutation mutation)
           
 void enqueueMutateBatch(List<RowMutation> mutations)
           
 FetchResult fetchRow(String table, Selector selector)
           
 List<FetchResult> fetchRowBatch(String table, List<Selector> selectors)
           
 BlurServerContext getServerContext()
           
 boolean isInSafeMode(String cluster)
           
 Map<String,List<String>> listSnapshots(String table)
           
 void logging(String classNameOrLoggerName, Level level)
           
 Map<String,Metric> metrics(Set<String> metrics)
           
 void mutate(RowMutation mutation)
           
 void mutateBatch(List<RowMutation> mutations)
           
 void optimize(String table, int numberOfSegmentsPerShard)
           
 String parseQuery(String table, Query query)
           
 void ping()
           
 BlurResults query(String table, BlurQuery blurQuery)
           
 BlurQueryStatus queryStatusById(String table, String uuid)
           
 List<String> queryStatusIdList(String table)
           
 long recordFrequency(String table, String columnFamily, String columnName, String value)
           
 void removeSnapshot(String table, String name)
           
 void removeTable(String table, boolean deleteIndexFiles)
           
 void resetLogging()
           
 Schema schema(String table)
           
 void setUser(User user)
           
 List<String> shardClusterList()
           
 Map<String,String> shardServerLayout(String table)
           
 Map<String,Map<String,ShardState>> shardServerLayoutState(String table)
           
 List<String> shardServerList(String cluster)
           
 void startTrace(String rootId, String requestId)
           
 List<String> tableList()
           
 List<String> tableListByCluster(String cluster)
           
 TableStats tableStats(String table)
           
 List<String> terms(String table, String columnFamily, String columnName, String startWith, short size)
           
 List<String> traceList()
           
 void traceRemove(String traceId)
           
 String traceRequestFetch(String traceId, String requestId)
           
 List<String> traceRequestList(String traceId)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilteredBlurServer

public FilteredBlurServer(BlurConfiguration configuration,
                          Blur.Iface iface,
                          boolean shard)
Method Detail

startTrace

public void startTrace(String rootId,
                       String requestId)
                throws TException
Specified by:
startTrace in interface Blur.Iface
Throws:
TException

setUser

public void setUser(User user)
             throws TException
Specified by:
setUser in interface Blur.Iface
Throws:
TException

getServerContext

public final BlurServerContext getServerContext()

createTable

public void createTable(TableDescriptor tableDescriptor)
                 throws BlurException,
                        TException
Specified by:
createTable in interface Blur.Iface
Throws:
BlurException
TException

enableTable

public void enableTable(String table)
                 throws BlurException,
                        TException
Specified by:
enableTable in interface Blur.Iface
Throws:
BlurException
TException

disableTable

public void disableTable(String table)
                  throws BlurException,
                         TException
Specified by:
disableTable in interface Blur.Iface
Throws:
BlurException
TException

removeTable

public void removeTable(String table,
                        boolean deleteIndexFiles)
                 throws BlurException,
                        TException
Specified by:
removeTable 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

tableList

public List<String> tableList()
                       throws BlurException,
                              TException
Specified by:
tableList in interface Blur.Iface
Throws:
BlurException
TException

tableListByCluster

public List<String> tableListByCluster(String cluster)
                                throws BlurException,
                                       TException
Specified by:
tableListByCluster in interface Blur.Iface
Throws:
BlurException
TException

describe

public TableDescriptor describe(String table)
                         throws BlurException,
                                TException
Specified by:
describe in interface Blur.Iface
Throws:
BlurException
TException

schema

public Schema schema(String table)
              throws BlurException,
                     TException
Specified by:
schema in interface Blur.Iface
Throws:
BlurException
TException

parseQuery

public String parseQuery(String table,
                         Query query)
                  throws BlurException,
                         TException
Specified by:
parseQuery in interface Blur.Iface
Throws:
BlurException
TException

tableStats

public TableStats tableStats(String table)
                      throws BlurException,
                             TException
Specified by:
tableStats in interface Blur.Iface
Throws:
BlurException
TException

optimize

public void optimize(String table,
                     int numberOfSegmentsPerShard)
              throws BlurException,
                     TException
Specified by:
optimize in interface Blur.Iface
Throws:
BlurException
TException

createSnapshot

public void createSnapshot(String table,
                           String name)
                    throws BlurException,
                           TException
Specified by:
createSnapshot in interface Blur.Iface
Throws:
BlurException
TException

removeSnapshot

public void removeSnapshot(String table,
                           String name)
                    throws BlurException,
                           TException
Specified by:
removeSnapshot in interface Blur.Iface
Throws:
BlurException
TException

listSnapshots

public Map<String,List<String>> listSnapshots(String table)
                                       throws BlurException,
                                              TException
Specified by:
listSnapshots in interface Blur.Iface
Throws:
BlurException
TException

query

public BlurResults query(String table,
                         BlurQuery blurQuery)
                  throws BlurException,
                         TException
Specified by:
query in interface Blur.Iface
Throws:
BlurException
TException

fetchRow

public FetchResult fetchRow(String table,
                            Selector selector)
                     throws BlurException,
                            TException
Specified by:
fetchRow in interface Blur.Iface
Throws:
BlurException
TException

fetchRowBatch

public List<FetchResult> fetchRowBatch(String table,
                                       List<Selector> selectors)
                                throws BlurException,
                                       TException
Specified by:
fetchRowBatch in interface Blur.Iface
Throws:
BlurException
TException

mutate

public void mutate(RowMutation mutation)
            throws BlurException,
                   TException
Specified by:
mutate in interface Blur.Iface
Throws:
BlurException
TException

mutateBatch

public void mutateBatch(List<RowMutation> mutations)
                 throws BlurException,
                        TException
Specified by:
mutateBatch in interface Blur.Iface
Throws:
BlurException
TException

cancelQuery

public void cancelQuery(String table,
                        String uuid)
                 throws BlurException,
                        TException
Specified by:
cancelQuery in interface Blur.Iface
Throws:
BlurException
TException

queryStatusIdList

public List<String> queryStatusIdList(String table)
                               throws BlurException,
                                      TException
Specified by:
queryStatusIdList in interface Blur.Iface
Throws:
BlurException
TException

queryStatusById

public BlurQueryStatus queryStatusById(String table,
                                       String uuid)
                                throws BlurException,
                                       TException
Specified by:
queryStatusById in interface Blur.Iface
Throws:
BlurException
TException

terms

public List<String> terms(String table,
                          String columnFamily,
                          String columnName,
                          String startWith,
                          short size)
                   throws BlurException,
                          TException
Specified by:
terms in interface Blur.Iface
Throws:
BlurException
TException

recordFrequency

public long recordFrequency(String table,
                            String columnFamily,
                            String columnName,
                            String value)
                     throws BlurException,
                            TException
Specified by:
recordFrequency in interface Blur.Iface
Throws:
BlurException
TException

shardClusterList

public List<String> shardClusterList()
                              throws BlurException,
                                     TException
Specified by:
shardClusterList in interface Blur.Iface
Throws:
BlurException
TException

shardServerList

public List<String> shardServerList(String cluster)
                             throws BlurException,
                                    TException
Specified by:
shardServerList in interface Blur.Iface
Throws:
BlurException
TException

controllerServerList

public List<String> controllerServerList()
                                  throws BlurException,
                                         TException
Specified by:
controllerServerList in interface Blur.Iface
Throws:
BlurException
TException

shardServerLayout

public Map<String,String> shardServerLayout(String table)
                                     throws BlurException,
                                            TException
Specified by:
shardServerLayout in interface Blur.Iface
Throws:
BlurException
TException

shardServerLayoutState

public Map<String,Map<String,ShardState>> shardServerLayoutState(String table)
                                                          throws BlurException,
                                                                 TException
Specified by:
shardServerLayoutState 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

configuration

public Map<String,String> configuration()
                                 throws BlurException,
                                        TException
Specified by:
configuration in interface Blur.Iface
Throws:
BlurException
TException

metrics

public Map<String,Metric> metrics(Set<String> metrics)
                           throws BlurException,
                                  TException
Specified by:
metrics 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

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

enqueueMutate

public void enqueueMutate(RowMutation mutation)
                   throws BlurException,
                          TException
Specified by:
enqueueMutate in interface Blur.Iface
Throws:
BlurException
TException

enqueueMutateBatch

public void enqueueMutateBatch(List<RowMutation> mutations)
                        throws BlurException,
                               TException
Specified by:
enqueueMutateBatch in interface Blur.Iface
Throws:
BlurException
TException


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.