Package com.mapr.client.impl.clients
Class MfsClient
java.lang.Object
com.mapr.client.impl.rpc.RpcBinding
com.mapr.client.impl.rpc.RpcClient
com.mapr.client.impl.clients.MfsClient
- All Implemented Interfaces:
LifeCycle
-
Field Summary
Fields inherited from class com.mapr.client.impl.rpc.RpcClient
connection, serviceHostsFields inherited from class com.mapr.client.impl.rpc.RpcBinding
epoch, mapRClient, nextCallId, nextConnId -
Constructor Summary
ConstructorsConstructorDescriptionMfsClient(MapRClient maprClient, com.mapr.fs.proto.Common.Server mfsServer, boolean isSecure) -
Method Summary
Modifier and TypeMethodDescriptioncom.stumbleupon.async.Deferred<com.mapr.fs.proto.Dbserver.ColumnFamilyCreateResponse>columnFamilyCreate(String cfName, Fid tableFid) com.stumbleupon.async.Deferred<com.mapr.fs.proto.Dbserver.ColumnFamilyScanResponse>columnFamilyScan(Fid tableFid) com.stumbleupon.async.Deferred<com.mapr.fs.proto.Fileserver.GetattrResponse>com.mapr.fs.proto.Common.Servercom.stumbleupon.async.Deferred<com.mapr.fs.proto.Dbserver.GetTableSchemaResponse>getTableSchema(Fid tableFid) com.stumbleupon.async.Deferred<com.mapr.fs.proto.Fileserver.LookupResponse>com.stumbleupon.async.Deferred<com.mapr.fs.proto.Fileserver.PathWalkPlusResponse>pathWalkPlus(String filePath, Fid startFid) com.stumbleupon.async.Deferred<com.mapr.fs.proto.Dbserver.PutResponse>put(Fid tabletFid, long schemaVersion, Iterable<com.mapr.fs.proto.Dbserver.CompressedRow> compRowList, io.netty.buffer.ByteBuf payload) com.stumbleupon.async.Deferred<Object>com.stumbleupon.async.Deferred<Object>com.stumbleupon.async.Deferred<com.mapr.fs.proto.Dbserver.TableCreateResponse>tableCreate(String tableName, Fid parent, boolean isJson) com.stumbleupon.async.Deferred<com.mapr.fs.proto.Dbserver.TabletLookupResponse>tabletLookup(Fid tableFid, io.netty.buffer.ByteBuf key, int numTablets) com.stumbleupon.async.Deferred<com.mapr.fs.proto.Fileserver.UnlinkResponse>Methods inherited from class com.mapr.client.impl.rpc.RpcClient
sendRequest, startBinding, stopBindingMethods inherited from class com.mapr.client.impl.rpc.RpcBinding
getClientEventLoopGroup, getMapRClient, isSecure, isStarted, nextCallId, nextConnId, start, stop
-
Constructor Details
-
MfsClient
public MfsClient(MapRClient maprClient, com.mapr.fs.proto.Common.Server mfsServer, boolean isSecure)
-
-
Method Details
-
startClient
- Overrides:
startClientin classRpcClient
-
stopClient
- Overrides:
stopClientin classRpcClient
-
getMfsServer
public com.mapr.fs.proto.Common.Server getMfsServer() -
lookup
public com.stumbleupon.async.Deferred<com.mapr.fs.proto.Fileserver.LookupResponse> lookup(String fileName, Fid parentFid) throws InterruptedException, Exception - Throws:
InterruptedExceptionException
-
unlink
public com.stumbleupon.async.Deferred<com.mapr.fs.proto.Fileserver.UnlinkResponse> unlink(String filePath, Fid parentFid) throws InterruptedException, Exception - Throws:
InterruptedExceptionException
-
pathWalkPlus
public com.stumbleupon.async.Deferred<com.mapr.fs.proto.Fileserver.PathWalkPlusResponse> pathWalkPlus(String filePath, Fid startFid) throws InterruptedException, Exception - Throws:
InterruptedExceptionException
-
getattr
public com.stumbleupon.async.Deferred<com.mapr.fs.proto.Fileserver.GetattrResponse> getattr(Fid fileFid) throws InterruptedException, Exception - Throws:
InterruptedExceptionException
-
tableCreate
public com.stumbleupon.async.Deferred<com.mapr.fs.proto.Dbserver.TableCreateResponse> tableCreate(String tableName, Fid parent, boolean isJson) throws InterruptedException, Exception - Throws:
InterruptedExceptionException
-
columnFamilyScan
public com.stumbleupon.async.Deferred<com.mapr.fs.proto.Dbserver.ColumnFamilyScanResponse> columnFamilyScan(Fid tableFid) throws InterruptedException, Exception - Throws:
InterruptedExceptionException
-
columnFamilyCreate
public com.stumbleupon.async.Deferred<com.mapr.fs.proto.Dbserver.ColumnFamilyCreateResponse> columnFamilyCreate(String cfName, Fid tableFid) throws InterruptedException, Exception - Throws:
InterruptedExceptionException
-
getTableSchema
public com.stumbleupon.async.Deferred<com.mapr.fs.proto.Dbserver.GetTableSchemaResponse> getTableSchema(Fid tableFid) throws InterruptedException, Exception - Throws:
InterruptedExceptionException
-
tabletLookup
public com.stumbleupon.async.Deferred<com.mapr.fs.proto.Dbserver.TabletLookupResponse> tabletLookup(Fid tableFid, io.netty.buffer.ByteBuf key, int numTablets) throws InterruptedException, Exception - Throws:
InterruptedExceptionException
-
put
public com.stumbleupon.async.Deferred<com.mapr.fs.proto.Dbserver.PutResponse> put(Fid tabletFid, long schemaVersion, Iterable<com.mapr.fs.proto.Dbserver.CompressedRow> compRowList, io.netty.buffer.ByteBuf payload) throws InterruptedException, Exception - Throws:
InterruptedExceptionException
-