org.apache.blur.thrift.generated
Class SafeClientGen

java.lang.Object
  extended by org.apache.blur.thirdparty.thrift_0_9_0.TServiceClient
      extended by org.apache.blur.thrift.generated.Blur.Client
          extended by org.apache.blur.thrift.generated.SafeClientGen
All Implemented Interfaces:
Blur.Iface

public class SafeClientGen
extends Blur.Client


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.blur.thrift.generated.Blur.Client
Blur.Client.Factory
 
Constructor Summary
SafeClientGen(TProtocol prot)
           
SafeClientGen(TProtocol iprot, TProtocol oprot)
           
 
Method Summary
 boolean addColumnDefinition(String arg0, ColumnDefinition arg1)
          Attempts to add a column definition to the given table.
 void cancelQuery(String arg0, String arg1)
          Cancels a query that is executing against the given table with the given uuid.
 Map configuration()
          Fetches the Blur configuration.
 List controllerServerList()
          Returns a list of all the controller servers.
 void createSnapshot(String arg0, String arg1)
          Creates a snapshot for the table with the given name
 void createTable(TableDescriptor arg0)
          Creates a table with the given TableDescriptor.
 TableDescriptor describe(String arg0)
          Returns a table descriptor for the given table.
 void disableTable(String arg0)
          Disables the given table, blocking until all shards are offline.
 void enableTable(String arg0)
          Enables the given table, blocking until all shards are online.
 void enqueueMutate(RowMutation arg0)
          Enqueue a RowMutation.
 void enqueueMutateBatch(List arg0)
          Enqueue a batch of RowMutations.
 FetchResult fetchRow(String arg0, Selector arg1)
          Fetches a Row or a Record in the given table with the given Selector.
 List fetchRowBatch(String arg0, List arg1)
          Fetches a batch of Rows or Records in the given table with the given Selector list.
 boolean isInSafeMode(String arg0)
          Checks to see if the given cluster is in safemode.
 Map listSnapshots(String arg0)
          Returns a map where the key is the shard, and the list is the snapshots within that shard
 void logging(String arg0, Level arg1)
          Changes the logging level for the given instance dynamically at runtime.
 Map metrics(Set arg0)
          Fetches the Blur metrics by name.
 void mutate(RowMutation arg0)
          Mutates a Row given the RowMutation that is provided.
 void mutateBatch(List arg0)
          Mutates a group of Rows given the list of RowMutations that are provided.
 void optimize(String arg0, int arg1)
          Will perform a forced optimize on the index in the given table.
 String parseQuery(String arg0, Query arg1)
          Parses the given query and returns the string that represents the query.
 void ping()
          A way to ping a server to make sure the connection is still valid.
 BlurResults query(String arg0, BlurQuery arg1)
          Executes a query against a the given table and returns the results.
 BlurQueryStatus queryStatusById(String arg0, String arg1)
          Returns the query status for the given table and query uuid.
 List queryStatusIdList(String arg0)
          Returns a list of the query ids of queries that have recently been executed for the given table.
 long recordFrequency(String arg0, String arg1, String arg2, String arg3)
          Gets the record frequency for the provided table, family, column and value.
 boolean recv_addColumnDefinition()
           
 void recv_cancelQuery()
           
 Map recv_configuration()
           
 List recv_controllerServerList()
           
 void recv_createSnapshot()
           
 void recv_createTable()
           
 TableDescriptor recv_describe()
           
 void recv_disableTable()
           
 void recv_enableTable()
           
 void recv_enqueueMutate()
           
 void recv_enqueueMutateBatch()
           
 FetchResult recv_fetchRow()
           
 List recv_fetchRowBatch()
           
 boolean recv_isInSafeMode()
           
 Map recv_listSnapshots()
           
 void recv_logging()
           
 Map recv_metrics()
           
 void recv_mutate()
           
 void recv_mutateBatch()
           
 void recv_optimize()
           
 String recv_parseQuery()
           
 void recv_ping()
           
 BlurResults recv_query()
           
 BlurQueryStatus recv_queryStatusById()
           
 List recv_queryStatusIdList()
           
 long recv_recordFrequency()
           
 void recv_removeSnapshot()
           
 void recv_removeTable()
           
 void recv_resetLogging()
           
 Schema recv_schema()
           
 List recv_shardClusterList()
           
 Map recv_shardServerLayout()
           
 Map recv_shardServerLayoutState()
           
 List recv_shardServerList()
           
 List recv_tableList()
           
 List recv_tableListByCluster()
           
 TableStats recv_tableStats()
           
 List recv_terms()
           
 List recv_traceList()
           
 void recv_traceRemove()
           
 String recv_traceRequestFetch()
           
 List recv_traceRequestList()
           
 void removeSnapshot(String arg0, String arg1)
          Removes a previous snapshot(identified by name) of the table
 void removeTable(String arg0, boolean arg1)
          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 arg0)
          Gets the schema for a given table.
 void send_addColumnDefinition(String arg0, ColumnDefinition arg1)
           
 void send_cancelQuery(String arg0, String arg1)
           
 void send_configuration()
           
 void send_controllerServerList()
           
 void send_createSnapshot(String arg0, String arg1)
           
 void send_createTable(TableDescriptor arg0)
           
 void send_describe(String arg0)
           
 void send_disableTable(String arg0)
           
 void send_enableTable(String arg0)
           
 void send_enqueueMutate(RowMutation arg0)
           
 void send_enqueueMutateBatch(List arg0)
           
 void send_fetchRow(String arg0, Selector arg1)
           
 void send_fetchRowBatch(String arg0, List arg1)
           
 void send_isInSafeMode(String arg0)
           
 void send_listSnapshots(String arg0)
           
 void send_logging(String arg0, Level arg1)
           
 void send_metrics(Set arg0)
           
 void send_mutate(RowMutation arg0)
           
 void send_mutateBatch(List arg0)
           
 void send_optimize(String arg0, int arg1)
           
 void send_parseQuery(String arg0, Query arg1)
           
 void send_ping()
           
 void send_query(String arg0, BlurQuery arg1)
           
 void send_queryStatusById(String arg0, String arg1)
           
 void send_queryStatusIdList(String arg0)
           
 void send_recordFrequency(String arg0, String arg1, String arg2, String arg3)
           
 void send_removeSnapshot(String arg0, String arg1)
           
 void send_removeTable(String arg0, boolean arg1)
           
 void send_resetLogging()
           
 void send_schema(String arg0)
           
 void send_setUser(User arg0)
           
 void send_shardClusterList()
           
 void send_shardServerLayout(String arg0)
           
 void send_shardServerLayoutState(String arg0)
           
 void send_shardServerList(String arg0)
           
 void send_startTrace(String arg0, String arg1)
           
 void send_tableList()
           
 void send_tableListByCluster(String arg0)
           
 void send_tableStats(String arg0)
           
 void send_terms(String arg0, String arg1, String arg2, String arg3, short arg4)
           
 void send_traceList()
           
 void send_traceRemove(String arg0)
           
 void send_traceRequestFetch(String arg0, String arg1)
           
 void send_traceRequestList(String arg0)
           
 void setUser(User arg0)
          Sets the User for the current session.
 List shardClusterList()
          Returns a list of all the shard clusters.
 Map shardServerLayout(String arg0)
          Returns a map of the layout of the given table, where the key is the shard name and the value is the shard server.

This method will return the "correct" layout for the given shard, or the "correct" layout of cluster if called on a controller.

The meaning of correct:
Given the current state of the shard cluster with failures taken into account, the correct layout is what the layout should be given the current state.
 Map shardServerLayoutState(String arg0)
          Returns a map of the layout of the given table, where the key is the shard name and the value is the shard server.

This method will return immediately with what shards are currently open in the shard server.
 List shardServerList(String arg0)
          Returns a list of all the shard servers for the given cluster.
 void startTrace(String arg0, String arg1)
          Starts a trace with the given trace id.
 List tableList()
          Returns a list of the table names across all shard clusters.
 List tableListByCluster(String arg0)
          Returns a list of the table names for the given cluster.
 TableStats tableStats(String arg0)
          Gets the table stats for the given table.
 List terms(String arg0, String arg1, String arg2, String arg3, short arg4)
          Gets the terms list from the index for the given table, family, column using the startWith value to page through the results.
 List traceList()
          Get a list of all the traces.
 void traceRemove(String arg0)
          Remove the trace for the given trace id.
 String traceRequestFetch(String arg0, String arg1)
          Fetches the given trace.
 List traceRequestList(String arg0)
          Gets a request list for the given trace.
 
Methods inherited from class org.apache.blur.thirdparty.thrift_0_9_0.TServiceClient
getInputProtocol, getOutputProtocol
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SafeClientGen

public SafeClientGen(TProtocol iprot,
                     TProtocol oprot)

SafeClientGen

public SafeClientGen(TProtocol prot)
Method Detail

addColumnDefinition

public boolean addColumnDefinition(String arg0,
                                   ColumnDefinition arg1)
                            throws BlurException,
                                   TException
Description copied from interface: Blur.Iface
Attempts to add a column definition to the given table.

Specified by:
addColumnDefinition in interface Blur.Iface
Overrides:
addColumnDefinition in class Blur.Client
Parameters:
arg0 - the name of the table.
arg1 - the ColumnDefinition.
Returns:
true if successfully defined false if not.
Throws:
BlurException
TException

cancelQuery

public void cancelQuery(String arg0,
                        String arg1)
                 throws BlurException,
                        TException
Description copied from interface: Blur.Iface
Cancels a query that is executing against the given table with the given uuid. Note, the cancel call maybe take some time for the query actually stops executing.

Specified by:
cancelQuery in interface Blur.Iface
Overrides:
cancelQuery in class Blur.Client
Parameters:
arg0 - the table name.
arg1 - the uuid of the query.
Throws:
BlurException
TException

configuration

public Map configuration()
                  throws BlurException,
                         TException
Description copied from interface: Blur.Iface
Fetches the Blur configuration.

Specified by:
configuration in interface Blur.Iface
Overrides:
configuration in class Blur.Client
Returns:
Map of property name to value.
Throws:
BlurException
TException

controllerServerList

public List controllerServerList()
                          throws BlurException,
                                 TException
Description copied from interface: Blur.Iface
Returns a list of all the controller servers.

Specified by:
controllerServerList in interface Blur.Iface
Overrides:
controllerServerList in class Blur.Client
Returns:
list of all the controllers.
Throws:
BlurException
TException

createSnapshot

public void createSnapshot(String arg0,
                           String arg1)
                    throws BlurException,
                           TException
Description copied from interface: Blur.Iface
Creates a snapshot for the table with the given name

Specified by:
createSnapshot in interface Blur.Iface
Overrides:
createSnapshot in class Blur.Client
Throws:
BlurException
TException

createTable

public void createTable(TableDescriptor arg0)
                 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 Blur.Client
Parameters:
arg0 - the TableDescriptor.
Throws:
BlurException
TException

describe

public TableDescriptor describe(String arg0)
                         throws BlurException,
                                TException
Description copied from interface: Blur.Iface
Returns a table descriptor for the given table.

Specified by:
describe in interface Blur.Iface
Overrides:
describe in class Blur.Client
Parameters:
arg0 - the table name.
Returns:
the TableDescriptor.
Throws:
BlurException
TException

disableTable

public void disableTable(String arg0)
                  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 Blur.Client
Parameters:
arg0 - the table name.
Throws:
BlurException
TException

enableTable

public void enableTable(String arg0)
                 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 Blur.Client
Parameters:
arg0 - the table name.
Throws:
BlurException
TException

enqueueMutate

public void enqueueMutate(RowMutation arg0)
                   throws BlurException,
                          TException
Description copied from interface: Blur.Iface
Enqueue a RowMutation. Note that the effect of the RowMutation will occur at some point in the future, volume and load will play a role in how much time will pass before the mutation goes into effect.

Specified by:
enqueueMutate in interface Blur.Iface
Overrides:
enqueueMutate in class Blur.Client
Parameters:
arg0 - the RowMutation.
Throws:
BlurException
TException

enqueueMutateBatch

public void enqueueMutateBatch(List arg0)
                        throws BlurException,
                               TException
Description copied from interface: Blur.Iface
Enqueue a batch of RowMutations. Note that the effect of the RowMutation will occur at some point in the future, volume and load will play a role in how much time will pass before the mutation goes into effect.

Specified by:
enqueueMutateBatch in interface Blur.Iface
Overrides:
enqueueMutateBatch in class Blur.Client
Parameters:
arg0 - the batch of RowMutations.
Throws:
BlurException
TException

fetchRow

public FetchResult fetchRow(String arg0,
                            Selector arg1)
                     throws BlurException,
                            TException
Description copied from interface: Blur.Iface
Fetches a Row or a Record in the given table with the given Selector.

Specified by:
fetchRow in interface Blur.Iface
Overrides:
fetchRow in class Blur.Client
Parameters:
arg0 - the table name.
arg1 - the Selector to use to fetch the Row or Record.
Returns:
the FetchResult.
Throws:
BlurException
TException

fetchRowBatch

public List fetchRowBatch(String arg0,
                          List arg1)
                   throws BlurException,
                          TException
Description copied from interface: Blur.Iface
Fetches a batch of Rows or Records in the given table with the given Selector list.

Specified by:
fetchRowBatch in interface Blur.Iface
Overrides:
fetchRowBatch in class Blur.Client
Parameters:
arg0 - the table name.
arg1 - the Selector to use to fetch the Row or Record.
Returns:
the FetchResult.
Throws:
BlurException
TException

isInSafeMode

public boolean isInSafeMode(String arg0)
                     throws BlurException,
                            TException
Description copied from interface: Blur.Iface
Checks to see if the given cluster is in safemode.

Specified by:
isInSafeMode in interface Blur.Iface
Overrides:
isInSafeMode in class Blur.Client
Parameters:
arg0 - the name of the cluster.
Returns:
boolean.
Throws:
BlurException
TException

listSnapshots

public Map listSnapshots(String arg0)
                  throws BlurException,
                         TException
Description copied from interface: Blur.Iface
Returns a map where the key is the shard, and the list is the snapshots within that shard

Specified by:
listSnapshots in interface Blur.Iface
Overrides:
listSnapshots in class Blur.Client
Throws:
BlurException
TException

logging

public void logging(String arg0,
                    Level arg1)
             throws BlurException,
                    TException
Description copied from interface: Blur.Iface
Changes the logging level for the given instance dynamically at runtime.

Specified by:
logging in interface Blur.Iface
Overrides:
logging in class Blur.Client
Parameters:
arg0 - the className or Logger Name of the Logger to be changed.
arg1 - the logging level.
Throws:
BlurException
TException

metrics

public Map metrics(Set arg0)
            throws BlurException,
                   TException
Description copied from interface: Blur.Iface
Fetches the Blur metrics by name. If the metrics parameter is null all the Metrics are returned.

Specified by:
metrics in interface Blur.Iface
Overrides:
metrics in class Blur.Client
Parameters:
arg0 - the names of the metrics to return. If null all are returned.
Returns:
Map of metric name to Metric.
Throws:
BlurException
TException

mutate

public void mutate(RowMutation arg0)
            throws BlurException,
                   TException
Description copied from interface: Blur.Iface
Mutates a Row given the RowMutation that is provided.

Specified by:
mutate in interface Blur.Iface
Overrides:
mutate in class Blur.Client
Parameters:
arg0 - the RowMutation.
Throws:
BlurException
TException

mutateBatch

public void mutateBatch(List arg0)
                 throws BlurException,
                        TException
Description copied from interface: Blur.Iface
Mutates a group of Rows given the list of RowMutations that are provided. Note: This is not an atomic operation.

Specified by:
mutateBatch in interface Blur.Iface
Overrides:
mutateBatch in class Blur.Client
Parameters:
arg0 - the batch of RowMutations.
Throws:
BlurException
TException

optimize

public void optimize(String arg0,
                     int arg1)
              throws BlurException,
                     TException
Description copied from interface: Blur.Iface
Will perform a forced optimize on the index in the given table.

Specified by:
optimize in interface Blur.Iface
Overrides:
optimize in class Blur.Client
Parameters:
arg0 - table the name of the table.
arg1 - the maximum of segments per shard index after the operation is completed.
Throws:
BlurException
TException

parseQuery

public String parseQuery(String arg0,
                         Query arg1)
                  throws BlurException,
                         TException
Description copied from interface: Blur.Iface
Parses the given query and returns the string that represents the query.

Specified by:
parseQuery in interface Blur.Iface
Overrides:
parseQuery in class Blur.Client
Parameters:
arg0 - the table name.
arg1 - the query to parse.
Returns:
string representation of the parsed query.
Throws:
BlurException
TException

ping

public void ping()
          throws TException
Description copied from interface: Blur.Iface
A way to ping a server to make sure the connection is still valid.

Specified by:
ping in interface Blur.Iface
Overrides:
ping in class Blur.Client
Throws:
TException

query

public BlurResults query(String arg0,
                         BlurQuery arg1)
                  throws BlurException,
                         TException
Description copied from interface: Blur.Iface
Executes a query against a the given table and returns the results. If this method is executed against a controller the results will contain the aggregated results from all the shards. If this method is executed against a shard server the results will only contain aggregated results from the shards of the given table that are being served on the shard server, if any.

Specified by:
query in interface Blur.Iface
Overrides:
query in class Blur.Client
Parameters:
arg0 - the table name.
arg1 - the query to execute.
Returns:
the BlurResults.
Throws:
BlurException
TException

queryStatusById

public BlurQueryStatus queryStatusById(String arg0,
                                       String arg1)
                                throws BlurException,
                                       TException
Description copied from interface: Blur.Iface
Returns the query status for the given table and query uuid.

Specified by:
queryStatusById in interface Blur.Iface
Overrides:
queryStatusById in class Blur.Client
Parameters:
arg0 - the table name.
arg1 - the uuid of the query.
Returns:
fetches the BlurQueryStatus for the given table and uuid.
Throws:
BlurException
TException

queryStatusIdList

public List queryStatusIdList(String arg0)
                       throws BlurException,
                              TException
Description copied from interface: Blur.Iface
Returns a list of the query ids of queries that have recently been executed for the given table.

Specified by:
queryStatusIdList in interface Blur.Iface
Overrides:
queryStatusIdList in class Blur.Client
Parameters:
arg0 - the table name.
Returns:
list of all the uuids of the queries uuids.
Throws:
BlurException
TException

recordFrequency

public long recordFrequency(String arg0,
                            String arg1,
                            String arg2,
                            String arg3)
                     throws BlurException,
                            TException
Description copied from interface: Blur.Iface
Gets the record frequency for the provided table, family, column and value.

Specified by:
recordFrequency in interface Blur.Iface
Overrides:
recordFrequency in class Blur.Client
Parameters:
arg0 - the table name.
arg1 - the column family. If the frequency requested is a system field like "rowid", "recordid", "family", etc then columnFamily can be null.
arg2 - the column name.
arg3 - the value.
Returns:
the count for the entire table.
Throws:
BlurException
TException

recv_addColumnDefinition

public boolean recv_addColumnDefinition()
                                 throws BlurException,
                                        TException
Overrides:
recv_addColumnDefinition in class Blur.Client
Throws:
BlurException
TException

recv_cancelQuery

public void recv_cancelQuery()
                      throws BlurException,
                             TException
Overrides:
recv_cancelQuery in class Blur.Client
Throws:
BlurException
TException

recv_configuration

public Map recv_configuration()
                       throws BlurException,
                              TException
Overrides:
recv_configuration in class Blur.Client
Throws:
BlurException
TException

recv_controllerServerList

public List recv_controllerServerList()
                               throws BlurException,
                                      TException
Overrides:
recv_controllerServerList in class Blur.Client
Throws:
BlurException
TException

recv_createSnapshot

public void recv_createSnapshot()
                         throws BlurException,
                                TException
Overrides:
recv_createSnapshot in class Blur.Client
Throws:
BlurException
TException

recv_createTable

public void recv_createTable()
                      throws BlurException,
                             TException
Overrides:
recv_createTable in class Blur.Client
Throws:
BlurException
TException

recv_describe

public TableDescriptor recv_describe()
                              throws BlurException,
                                     TException
Overrides:
recv_describe in class Blur.Client
Throws:
BlurException
TException

recv_disableTable

public void recv_disableTable()
                       throws BlurException,
                              TException
Overrides:
recv_disableTable in class Blur.Client
Throws:
BlurException
TException

recv_enableTable

public void recv_enableTable()
                      throws BlurException,
                             TException
Overrides:
recv_enableTable in class Blur.Client
Throws:
BlurException
TException

recv_enqueueMutate

public void recv_enqueueMutate()
                        throws BlurException,
                               TException
Overrides:
recv_enqueueMutate in class Blur.Client
Throws:
BlurException
TException

recv_enqueueMutateBatch

public void recv_enqueueMutateBatch()
                             throws BlurException,
                                    TException
Overrides:
recv_enqueueMutateBatch in class Blur.Client
Throws:
BlurException
TException

recv_fetchRow

public FetchResult recv_fetchRow()
                          throws BlurException,
                                 TException
Overrides:
recv_fetchRow in class Blur.Client
Throws:
BlurException
TException

recv_fetchRowBatch

public List recv_fetchRowBatch()
                        throws BlurException,
                               TException
Overrides:
recv_fetchRowBatch in class Blur.Client
Throws:
BlurException
TException

recv_isInSafeMode

public boolean recv_isInSafeMode()
                          throws BlurException,
                                 TException
Overrides:
recv_isInSafeMode in class Blur.Client
Throws:
BlurException
TException

recv_listSnapshots

public Map recv_listSnapshots()
                       throws BlurException,
                              TException
Overrides:
recv_listSnapshots in class Blur.Client
Throws:
BlurException
TException

recv_logging

public void recv_logging()
                  throws BlurException,
                         TException
Overrides:
recv_logging in class Blur.Client
Throws:
BlurException
TException

recv_metrics

public Map recv_metrics()
                 throws BlurException,
                        TException
Overrides:
recv_metrics in class Blur.Client
Throws:
BlurException
TException

recv_mutate

public void recv_mutate()
                 throws BlurException,
                        TException
Overrides:
recv_mutate in class Blur.Client
Throws:
BlurException
TException

recv_mutateBatch

public void recv_mutateBatch()
                      throws BlurException,
                             TException
Overrides:
recv_mutateBatch in class Blur.Client
Throws:
BlurException
TException

recv_optimize

public void recv_optimize()
                   throws BlurException,
                          TException
Overrides:
recv_optimize in class Blur.Client
Throws:
BlurException
TException

recv_parseQuery

public String recv_parseQuery()
                       throws BlurException,
                              TException
Overrides:
recv_parseQuery in class Blur.Client
Throws:
BlurException
TException

recv_ping

public void recv_ping()
               throws TException
Overrides:
recv_ping in class Blur.Client
Throws:
TException

recv_query

public BlurResults recv_query()
                       throws BlurException,
                              TException
Overrides:
recv_query in class Blur.Client
Throws:
BlurException
TException

recv_queryStatusById

public BlurQueryStatus recv_queryStatusById()
                                     throws BlurException,
                                            TException
Overrides:
recv_queryStatusById in class Blur.Client
Throws:
BlurException
TException

recv_queryStatusIdList

public List recv_queryStatusIdList()
                            throws BlurException,
                                   TException
Overrides:
recv_queryStatusIdList in class Blur.Client
Throws:
BlurException
TException

recv_recordFrequency

public long recv_recordFrequency()
                          throws BlurException,
                                 TException
Overrides:
recv_recordFrequency in class Blur.Client
Throws:
BlurException
TException

recv_removeSnapshot

public void recv_removeSnapshot()
                         throws BlurException,
                                TException
Overrides:
recv_removeSnapshot in class Blur.Client
Throws:
BlurException
TException

recv_removeTable

public void recv_removeTable()
                      throws BlurException,
                             TException
Overrides:
recv_removeTable in class Blur.Client
Throws:
BlurException
TException

recv_resetLogging

public void recv_resetLogging()
                       throws BlurException,
                              TException
Overrides:
recv_resetLogging in class Blur.Client
Throws:
BlurException
TException

recv_schema

public Schema recv_schema()
                   throws BlurException,
                          TException
Overrides:
recv_schema in class Blur.Client
Throws:
BlurException
TException

recv_shardClusterList

public List recv_shardClusterList()
                           throws BlurException,
                                  TException
Overrides:
recv_shardClusterList in class Blur.Client
Throws:
BlurException
TException

recv_shardServerLayout

public Map recv_shardServerLayout()
                           throws BlurException,
                                  TException
Overrides:
recv_shardServerLayout in class Blur.Client
Throws:
BlurException
TException

recv_shardServerLayoutState

public Map recv_shardServerLayoutState()
                                throws BlurException,
                                       TException
Overrides:
recv_shardServerLayoutState in class Blur.Client
Throws:
BlurException
TException

recv_shardServerList

public List recv_shardServerList()
                          throws BlurException,
                                 TException
Overrides:
recv_shardServerList in class Blur.Client
Throws:
BlurException
TException

recv_tableList

public List recv_tableList()
                    throws BlurException,
                           TException
Overrides:
recv_tableList in class Blur.Client
Throws:
BlurException
TException

recv_tableListByCluster

public List recv_tableListByCluster()
                             throws BlurException,
                                    TException
Overrides:
recv_tableListByCluster in class Blur.Client
Throws:
BlurException
TException

recv_tableStats

public TableStats recv_tableStats()
                           throws BlurException,
                                  TException
Overrides:
recv_tableStats in class Blur.Client
Throws:
BlurException
TException

recv_terms

public List recv_terms()
                throws BlurException,
                       TException
Overrides:
recv_terms in class Blur.Client
Throws:
BlurException
TException

recv_traceList

public List recv_traceList()
                    throws BlurException,
                           TException
Overrides:
recv_traceList in class Blur.Client
Throws:
BlurException
TException

recv_traceRemove

public void recv_traceRemove()
                      throws BlurException,
                             TException
Overrides:
recv_traceRemove in class Blur.Client
Throws:
BlurException
TException

recv_traceRequestFetch

public String recv_traceRequestFetch()
                              throws BlurException,
                                     TException
Overrides:
recv_traceRequestFetch in class Blur.Client
Throws:
BlurException
TException

recv_traceRequestList

public List recv_traceRequestList()
                           throws BlurException,
                                  TException
Overrides:
recv_traceRequestList in class Blur.Client
Throws:
BlurException
TException

removeSnapshot

public void removeSnapshot(String arg0,
                           String arg1)
                    throws BlurException,
                           TException
Description copied from interface: Blur.Iface
Removes a previous snapshot(identified by name) of the table

Specified by:
removeSnapshot in interface Blur.Iface
Overrides:
removeSnapshot in class Blur.Client
Throws:
BlurException
TException

removeTable

public void removeTable(String arg0,
                        boolean arg1)
                 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 Blur.Client
Parameters:
arg0 - the table name.
arg1 - true to remove the index storage and false if to preserve.
Throws:
BlurException
TException

resetLogging

public void resetLogging()
                  throws BlurException,
                         TException
Description copied from interface: Blur.Iface
Resets the logging for this instance to match the log4j file. NOTE: This will allow for dynamically changing to logging file at runtime.

Specified by:
resetLogging in interface Blur.Iface
Overrides:
resetLogging in class Blur.Client
Throws:
BlurException
TException

schema

public Schema schema(String arg0)
              throws BlurException,
                     TException
Description copied from interface: Blur.Iface
Gets the schema for a given table.

Specified by:
schema in interface Blur.Iface
Overrides:
schema in class Blur.Client
Parameters:
arg0 - the table name.
Returns:
Schema.
Throws:
BlurException
TException

send_addColumnDefinition

public void send_addColumnDefinition(String arg0,
                                     ColumnDefinition arg1)
                              throws TException
Overrides:
send_addColumnDefinition in class Blur.Client
Throws:
TException

send_cancelQuery

public void send_cancelQuery(String arg0,
                             String arg1)
                      throws TException
Overrides:
send_cancelQuery in class Blur.Client
Throws:
TException

send_configuration

public void send_configuration()
                        throws TException
Overrides:
send_configuration in class Blur.Client
Throws:
TException

send_controllerServerList

public void send_controllerServerList()
                               throws TException
Overrides:
send_controllerServerList in class Blur.Client
Throws:
TException

send_createSnapshot

public void send_createSnapshot(String arg0,
                                String arg1)
                         throws TException
Overrides:
send_createSnapshot in class Blur.Client
Throws:
TException

send_createTable

public void send_createTable(TableDescriptor arg0)
                      throws TException
Overrides:
send_createTable in class Blur.Client
Throws:
TException

send_describe

public void send_describe(String arg0)
                   throws TException
Overrides:
send_describe in class Blur.Client
Throws:
TException

send_disableTable

public void send_disableTable(String arg0)
                       throws TException
Overrides:
send_disableTable in class Blur.Client
Throws:
TException

send_enableTable

public void send_enableTable(String arg0)
                      throws TException
Overrides:
send_enableTable in class Blur.Client
Throws:
TException

send_enqueueMutate

public void send_enqueueMutate(RowMutation arg0)
                        throws TException
Overrides:
send_enqueueMutate in class Blur.Client
Throws:
TException

send_enqueueMutateBatch

public void send_enqueueMutateBatch(List arg0)
                             throws TException
Overrides:
send_enqueueMutateBatch in class Blur.Client
Throws:
TException

send_fetchRow

public void send_fetchRow(String arg0,
                          Selector arg1)
                   throws TException
Overrides:
send_fetchRow in class Blur.Client
Throws:
TException

send_fetchRowBatch

public void send_fetchRowBatch(String arg0,
                               List arg1)
                        throws TException
Overrides:
send_fetchRowBatch in class Blur.Client
Throws:
TException

send_isInSafeMode

public void send_isInSafeMode(String arg0)
                       throws TException
Overrides:
send_isInSafeMode in class Blur.Client
Throws:
TException

send_listSnapshots

public void send_listSnapshots(String arg0)
                        throws TException
Overrides:
send_listSnapshots in class Blur.Client
Throws:
TException

send_logging

public void send_logging(String arg0,
                         Level arg1)
                  throws TException
Overrides:
send_logging in class Blur.Client
Throws:
TException

send_metrics

public void send_metrics(Set arg0)
                  throws TException
Overrides:
send_metrics in class Blur.Client
Throws:
TException

send_mutate

public void send_mutate(RowMutation arg0)
                 throws TException
Overrides:
send_mutate in class Blur.Client
Throws:
TException

send_mutateBatch

public void send_mutateBatch(List arg0)
                      throws TException
Overrides:
send_mutateBatch in class Blur.Client
Throws:
TException

send_optimize

public void send_optimize(String arg0,
                          int arg1)
                   throws TException
Overrides:
send_optimize in class Blur.Client
Throws:
TException

send_parseQuery

public void send_parseQuery(String arg0,
                            Query arg1)
                     throws TException
Overrides:
send_parseQuery in class Blur.Client
Throws:
TException

send_ping

public void send_ping()
               throws TException
Overrides:
send_ping in class Blur.Client
Throws:
TException

send_query

public void send_query(String arg0,
                       BlurQuery arg1)
                throws TException
Overrides:
send_query in class Blur.Client
Throws:
TException

send_queryStatusById

public void send_queryStatusById(String arg0,
                                 String arg1)
                          throws TException
Overrides:
send_queryStatusById in class Blur.Client
Throws:
TException

send_queryStatusIdList

public void send_queryStatusIdList(String arg0)
                            throws TException
Overrides:
send_queryStatusIdList in class Blur.Client
Throws:
TException

send_recordFrequency

public void send_recordFrequency(String arg0,
                                 String arg1,
                                 String arg2,
                                 String arg3)
                          throws TException
Overrides:
send_recordFrequency in class Blur.Client
Throws:
TException

send_removeSnapshot

public void send_removeSnapshot(String arg0,
                                String arg1)
                         throws TException
Overrides:
send_removeSnapshot in class Blur.Client
Throws:
TException

send_removeTable

public void send_removeTable(String arg0,
                             boolean arg1)
                      throws TException
Overrides:
send_removeTable in class Blur.Client
Throws:
TException

send_resetLogging

public void send_resetLogging()
                       throws TException
Overrides:
send_resetLogging in class Blur.Client
Throws:
TException

send_schema

public void send_schema(String arg0)
                 throws TException
Overrides:
send_schema in class Blur.Client
Throws:
TException

send_setUser

public void send_setUser(User arg0)
                  throws TException
Overrides:
send_setUser in class Blur.Client
Throws:
TException

send_shardClusterList

public void send_shardClusterList()
                           throws TException
Overrides:
send_shardClusterList in class Blur.Client
Throws:
TException

send_shardServerLayout

public void send_shardServerLayout(String arg0)
                            throws TException
Overrides:
send_shardServerLayout in class Blur.Client
Throws:
TException

send_shardServerLayoutState

public void send_shardServerLayoutState(String arg0)
                                 throws TException
Overrides:
send_shardServerLayoutState in class Blur.Client
Throws:
TException

send_shardServerList

public void send_shardServerList(String arg0)
                          throws TException
Overrides:
send_shardServerList in class Blur.Client
Throws:
TException

send_startTrace

public void send_startTrace(String arg0,
                            String arg1)
                     throws TException
Overrides:
send_startTrace in class Blur.Client
Throws:
TException

send_tableList

public void send_tableList()
                    throws TException
Overrides:
send_tableList in class Blur.Client
Throws:
TException

send_tableListByCluster

public void send_tableListByCluster(String arg0)
                             throws TException
Overrides:
send_tableListByCluster in class Blur.Client
Throws:
TException

send_tableStats

public void send_tableStats(String arg0)
                     throws TException
Overrides:
send_tableStats in class Blur.Client
Throws:
TException

send_terms

public void send_terms(String arg0,
                       String arg1,
                       String arg2,
                       String arg3,
                       short arg4)
                throws TException
Overrides:
send_terms in class Blur.Client
Throws:
TException

send_traceList

public void send_traceList()
                    throws TException
Overrides:
send_traceList in class Blur.Client
Throws:
TException

send_traceRemove

public void send_traceRemove(String arg0)
                      throws TException
Overrides:
send_traceRemove in class Blur.Client
Throws:
TException

send_traceRequestFetch

public void send_traceRequestFetch(String arg0,
                                   String arg1)
                            throws TException
Overrides:
send_traceRequestFetch in class Blur.Client
Throws:
TException

send_traceRequestList

public void send_traceRequestList(String arg0)
                           throws TException
Overrides:
send_traceRequestList in class Blur.Client
Throws:
TException

setUser

public void setUser(User arg0)
             throws TException
Description copied from interface: Blur.Iface
Sets the User for the current session.

Specified by:
setUser in interface Blur.Iface
Overrides:
setUser in class Blur.Client
Parameters:
arg0 - the User object.
Throws:
TException

shardClusterList

public List shardClusterList()
                      throws BlurException,
                             TException
Description copied from interface: Blur.Iface
Returns a list of all the shard clusters.

Specified by:
shardClusterList in interface Blur.Iface
Overrides:
shardClusterList in class Blur.Client
Returns:
list of all the shard clusters.
Throws:
BlurException
TException

shardServerLayout

public Map shardServerLayout(String arg0)
                      throws BlurException,
                             TException
Description copied from interface: Blur.Iface
Returns a map of the layout of the given table, where the key is the shard name and the value is the shard server.

This method will return the "correct" layout for the given shard, or the "correct" layout of cluster if called on a controller.

The meaning of correct:
Given the current state of the shard cluster with failures taken into account, the correct layout is what the layout should be given the current state. In other words, what the shard server should be serving. The act of calling the shard server layout method with the NORMAL option will block until the layout shard server matches the correct layout. Meaning it will block until indexes that should be open are open and ready for queries. However indexes are lazily closed, so if a table is being disabled then the call will return immediately with an empty map, but the indexes may not be close yet.

Specified by:
shardServerLayout in interface Blur.Iface
Overrides:
shardServerLayout in class Blur.Client
Parameters:
arg0 - the table name.
Returns:
map of shards in a table to the shard servers.
Throws:
BlurException
TException

shardServerLayoutState

public Map shardServerLayoutState(String arg0)
                           throws BlurException,
                                  TException
Description copied from interface: Blur.Iface
Returns a map of the layout of the given table, where the key is the shard name and the value is the shard server.

This method will return immediately with what shards are currently open in the shard server. So if a shard is being moved to another server and is being closed by this server it WILL be returned in the map. The shardServerLayout method would not return the shard given the same situation.

Specified by:
shardServerLayoutState in interface Blur.Iface
Overrides:
shardServerLayoutState in class Blur.Client
Parameters:
arg0 - the table name.
Returns:
map of shards to a map of shard servers with the state of the shard.
Throws:
BlurException
TException

shardServerList

public List shardServerList(String arg0)
                     throws BlurException,
                            TException
Description copied from interface: Blur.Iface
Returns a list of all the shard servers for the given cluster.

Specified by:
shardServerList in interface Blur.Iface
Overrides:
shardServerList in class Blur.Client
Parameters:
arg0 - the cluster name.
Returns:
list of all the shard servers within the cluster.
Throws:
BlurException
TException

startTrace

public void startTrace(String arg0,
                       String arg1)
                throws TException
Description copied from interface: Blur.Iface
Starts a trace with the given trace id.

Specified by:
startTrace in interface Blur.Iface
Overrides:
startTrace in class Blur.Client
Parameters:
arg0 - the trace id.
arg1 - the request id, used to connected remote calls together. Client can pass null.
Throws:
TException

tableList

public List tableList()
               throws BlurException,
                      TException
Description copied from interface: Blur.Iface
Returns a list of the table names across all shard clusters.

Specified by:
tableList in interface Blur.Iface
Overrides:
tableList in class Blur.Client
Returns:
list of all tables in all shard clusters.
Throws:
BlurException
TException

tableListByCluster

public List tableListByCluster(String arg0)
                        throws BlurException,
                               TException
Description copied from interface: Blur.Iface
Returns a list of the table names for the given cluster.

Specified by:
tableListByCluster in interface Blur.Iface
Overrides:
tableListByCluster in class Blur.Client
Parameters:
arg0 - the cluster name.
Returns:
list of all the tables within the given shard cluster.
Throws:
BlurException
TException

tableStats

public TableStats tableStats(String arg0)
                      throws BlurException,
                             TException
Description copied from interface: Blur.Iface
Gets the table stats for the given table.

Specified by:
tableStats in interface Blur.Iface
Overrides:
tableStats in class Blur.Client
Parameters:
arg0 - the table name.
Returns:
TableStats.
Throws:
BlurException
TException

terms

public List terms(String arg0,
                  String arg1,
                  String arg2,
                  String arg3,
                  short arg4)
           throws BlurException,
                  TException
Description copied from interface: Blur.Iface
Gets the terms list from the index for the given table, family, column using the startWith value to page through the results. This method only makes sense to use with string and text field types.

Specified by:
terms in interface Blur.Iface
Overrides:
terms in class Blur.Client
Parameters:
arg0 - the table name.
arg1 - the column family. If the frequency requested is a system field like "rowid", "recordid", "family", etc then columnFamily can be null.
arg2 - the column name.
arg3 - the term to start with assuming that you are paging through the term list.
arg4 - the number to fetch at once.
Returns:
the list of terms for the given column.
Throws:
BlurException
TException

traceList

public List traceList()
               throws BlurException,
                      TException
Description copied from interface: Blur.Iface
Get a list of all the traces.

Specified by:
traceList in interface Blur.Iface
Overrides:
traceList in class Blur.Client
Returns:
the list of trace ids.
Throws:
BlurException
TException

traceRemove

public void traceRemove(String arg0)
                 throws BlurException,
                        TException
Description copied from interface: Blur.Iface
Remove the trace for the given trace id.

Specified by:
traceRemove in interface Blur.Iface
Overrides:
traceRemove in class Blur.Client
Parameters:
arg0 - the trace id.
Throws:
BlurException
TException

traceRequestFetch

public String traceRequestFetch(String arg0,
                                String arg1)
                         throws BlurException,
                                TException
Description copied from interface: Blur.Iface
Fetches the given trace.

Specified by:
traceRequestFetch in interface Blur.Iface
Overrides:
traceRequestFetch in class Blur.Client
Parameters:
arg0 - the trace id.
arg1 - the request id.
Returns:
the json for the given trace request.
Throws:
BlurException
TException

traceRequestList

public List traceRequestList(String arg0)
                      throws BlurException,
                             TException
Description copied from interface: Blur.Iface
Gets a request list for the given trace.

Specified by:
traceRequestList in interface Blur.Iface
Overrides:
traceRequestList in class Blur.Client
Parameters:
arg0 - the trace id.
Returns:
the list of request ids for the given trace id.
Throws:
BlurException
TException


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