Class MapRClient

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected com.mapr.fs.proto.Common.SetattrMsg myAttr  
      protected com.mapr.fs.proto.Security.CredentialsMsg myCreds  
    • Constructor Summary

      Constructors 
      Constructor Description
      MapRClient​(Cluster cluster)  
    • Field Detail

      • myCreds

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

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

      • MapRClient

        public MapRClient​(Cluster cluster)
    • Method Detail

      • start

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

        public com.stumbleupon.async.Deferred<java.lang.Object> stop()
        Specified by:
        stop 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()
      • getMfsClientFromContainerId

        public MfsClient getMfsClientFromContainerId​(int containerId)
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getRootFid

        public Fid getRootFid()
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • doPathWalk

        public Fid doPathWalk​(java.lang.String filePath,
                              Fid startFid)
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • unlink

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

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

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

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

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