Class HBaseHandler

java.lang.Object
io.datarouter.web.handler.BaseHandler
io.datarouter.client.hbase.web.HBaseHandler

public class HBaseHandler
extends io.datarouter.web.handler.BaseHandler
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.datarouter.web.handler.BaseHandler

    io.datarouter.web.handler.BaseHandler.Handler, io.datarouter.web.handler.BaseHandler.NullHandlerDecoder, io.datarouter.web.handler.BaseHandler.NullHandlerEncoder
  • Field Summary

    Fields inherited from class io.datarouter.web.handler.BaseHandler

    accountName, HANDLER_CLASS, HANDLER_ENCODER_ATTRIBUTE, HANDLER_METHOD, params, paramValidators, request, REQUEST_DURATION_STRING, REQUEST_RECEIVED_AT, response, servletContext, SUBMIT_ACTION, TRACE_CONTEXT, TRACE_URL_REQUEST_ATTRIBUTE
  • Constructor Summary

    Constructors
    Constructor Description
    HBaseHandler()  
  • Method Summary

    Modifier and Type Method Description
    io.datarouter.web.handler.mav.Mav compactAllHBaseTableRegions()  
    io.datarouter.web.handler.mav.Mav compactHBaseTableRegions()  
    io.datarouter.web.handler.mav.Mav flushAllHBaseTableRegions()  
    io.datarouter.web.handler.mav.Mav flushHBaseTableRegions()  
    protected Class<? extends io.datarouter.storage.client.ClientType<?,​?>> getClientType()  
    io.datarouter.web.handler.mav.Mav majorCompactAllHBaseTableRegions()  
    io.datarouter.web.handler.mav.Mav majorCompactHBaseTableRegions()  
    io.datarouter.web.handler.mav.Mav moveHBaseTableRegions​(String tableName, String destinationServerName)  
    io.datarouter.web.handler.mav.Mav moveRegionsToCorrectServer​(io.datarouter.web.handler.types.optional.OptionalInteger pauseBetweenRegionsMs)  
    io.datarouter.web.handler.mav.Mav splitPartitions()  
    io.datarouter.web.handler.mav.Mav updateHBaseColumnAttribute​(String columnName)  
    io.datarouter.web.handler.mav.Mav updateHBaseTableAttribute​(io.datarouter.web.handler.types.optional.OptionalLong maxFileSizeMb, io.datarouter.web.handler.types.optional.OptionalLong memstoreFlushSizeMb)  
    io.datarouter.web.handler.mav.Mav viewHBaseServers()  
    io.datarouter.web.handler.mav.Mav viewHBaseTableRegions​(io.datarouter.web.handler.types.optional.OptionalString groupBy)  
    io.datarouter.web.handler.mav.Mav viewHBaseTableSettings()  

    Methods inherited from class io.datarouter.web.handler.BaseHandler

    getDefaultMultipartCharset, getLastPathSegment, getParamValidator, getParamValidator, getRequest, getSessionInfo, getUserZoneId, handleMissingParameters, handleWrapper, invokeHandlerMethod, postProcess, setAccountName, setDefaultHandlerDecoder, setDefaultHandlerEncoder, setParams, setRequest, setResponse, setServletContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HBaseHandler

      public HBaseHandler()
  • Method Details

    • getClientType

      protected Class<? extends io.datarouter.storage.client.ClientType<?,​?>> getClientType()
    • viewHBaseServers

      public io.datarouter.web.handler.mav.Mav viewHBaseServers() throws IOException
      Throws:
      IOException
    • viewHBaseTableSettings

      public io.datarouter.web.handler.mav.Mav viewHBaseTableSettings() throws org.apache.hadoop.hbase.TableNotFoundException, IOException
      Throws:
      org.apache.hadoop.hbase.TableNotFoundException
      IOException
    • viewHBaseTableRegions

      public io.datarouter.web.handler.mav.Mav viewHBaseTableRegions​(io.datarouter.web.handler.types.optional.OptionalString groupBy)
    • updateHBaseTableAttribute

      public io.datarouter.web.handler.mav.Mav updateHBaseTableAttribute​(io.datarouter.web.handler.types.optional.OptionalLong maxFileSizeMb, io.datarouter.web.handler.types.optional.OptionalLong memstoreFlushSizeMb) throws IOException
      Throws:
      IOException
    • updateHBaseColumnAttribute

      public io.datarouter.web.handler.mav.Mav updateHBaseColumnAttribute​(String columnName) throws org.apache.hadoop.hbase.TableNotFoundException, IOException
      Throws:
      org.apache.hadoop.hbase.TableNotFoundException
      IOException
    • moveRegionsToCorrectServer

      public io.datarouter.web.handler.mav.Mav moveRegionsToCorrectServer​(io.datarouter.web.handler.types.optional.OptionalInteger pauseBetweenRegionsMs) throws IOException
      Throws:
      IOException
    • moveHBaseTableRegions

      public io.datarouter.web.handler.mav.Mav moveHBaseTableRegions​(String tableName, String destinationServerName) throws IOException
      Throws:
      IOException
    • compactHBaseTableRegions

      public io.datarouter.web.handler.mav.Mav compactHBaseTableRegions() throws IOException
      Throws:
      IOException
    • compactAllHBaseTableRegions

      public io.datarouter.web.handler.mav.Mav compactAllHBaseTableRegions() throws IOException
      Throws:
      IOException
    • majorCompactHBaseTableRegions

      public io.datarouter.web.handler.mav.Mav majorCompactHBaseTableRegions() throws IOException
      Throws:
      IOException
    • majorCompactAllHBaseTableRegions

      public io.datarouter.web.handler.mav.Mav majorCompactAllHBaseTableRegions() throws IOException
      Throws:
      IOException
    • flushHBaseTableRegions

      public io.datarouter.web.handler.mav.Mav flushHBaseTableRegions() throws IOException
      Throws:
      IOException
    • flushAllHBaseTableRegions

      public io.datarouter.web.handler.mav.Mav flushAllHBaseTableRegions() throws IOException
      Throws:
      IOException
    • splitPartitions

      public io.datarouter.web.handler.mav.Mav splitPartitions() throws Exception
      Throws:
      Exception