Class MapRClient

java.lang.Object
com.mapr.client.impl.MapRClient
All Implemented Interfaces:
Connection, LifeCycle

public class MapRClient extends Object implements Connection, LifeCycle
  • Field Details

    • myCreds

      protected com.mapr.fs.proto.Security.CredentialsMsg myCreds
    • myAttr

      protected com.mapr.fs.proto.Common.SetattrMsg myAttr
  • Constructor Details

    • MapRClient

      public MapRClient(Cluster cluster)
  • Method Details

    • start

      public com.stumbleupon.async.Deferred<Object> start()
      Specified by:
      start in interface LifeCycle
    • stop

      public com.stumbleupon.async.Deferred<Object> stop()
      Specified by:
      stop in interface LifeCycle
    • isStarted

      public boolean isStarted()
      Specified by:
      isStarted in interface LifeCycle
    • getCldbClient

      public CldbClient getCldbClient()
    • getCredentials

      public com.mapr.fs.proto.Security.CredentialsMsg getCredentials()
    • getAttributes

      public com.mapr.fs.proto.Common.SetattrMsg getAttributes()
    • nextEpoh

      public int nextEpoh()
    • getClientEventLoopGroup

      public io.netty.channel.EventLoopGroup getClientEventLoopGroup()
    • getServerEventLoopGroup

      public io.netty.channel.EventLoopGroup getServerEventLoopGroup()
    • isSecure

      public boolean isSecure()
    • getTable

      public Table getTable(String tablePath) throws MapRClientException
      Specified by:
      getTable in interface Connection
      Throws:
      MapRClientException
    • createTable

      public Table createTable(String tablePath) throws MapRClientException
      Specified by:
      createTable in interface Connection
      Throws:
      MapRClientException
    • getMfsClientFromContainerId

      public MfsClient getMfsClientFromContainerId(int containerId) throws Exception
      Throws:
      Exception
    • getRootFid

      public Fid getRootFid() throws Exception
      Throws:
      Exception
    • doPathWalk

      public Fid doPathWalk(String filePath, Fid startFid) throws Exception
      Throws:
      Exception
    • unlink

      public com.mapr.fs.proto.Fileserver.UnlinkResponse unlink(String filePath) throws Exception
      Throws:
      Exception
    • getAttr

      public com.mapr.fs.proto.Fileserver.GetattrResponse getAttr(Fid fileFid) throws Exception
      Throws:
      Exception
    • columnFamilyScan

      public com.mapr.fs.proto.Dbserver.ColumnFamilyScanResponse columnFamilyScan(Fid tableFid) throws Exception
      Throws:
      Exception
    • lookupTablet

      public com.mapr.fs.proto.Dbserver.TabletLookupResponse lookupTablet(String key, Fid tableFid, int numTablets) throws Exception
      Throws:
      Exception
    • submitPutReq

      public com.stumbleupon.async.Deferred<com.mapr.fs.proto.Dbserver.PutResponse> submitPutReq(Fid tableFid, String columnFamilyName, io.netty.buffer.ByteBuf rowKey, io.netty.buffer.ByteBuf rowValue) throws Exception
      Throws:
      Exception