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
-
-
Field Summary
-
Fields inherited from class com.mapr.client.impl.rpc.RpcClient
connection, serviceHosts
-
Fields inherited from class com.mapr.client.impl.rpc.RpcBinding
epoch, mapRClient, nextCallId, nextConnId
-
-
Constructor Summary
Constructors Constructor Description MfsClient(MapRClient maprClient, com.mapr.fs.proto.Common.Server mfsServer, boolean isSecure)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.stumbleupon.async.Deferred<com.mapr.fs.proto.Dbserver.ColumnFamilyCreateResponse>columnFamilyCreate(java.lang.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>getattr(Fid fileFid)com.mapr.fs.proto.Common.ServergetMfsServer()com.stumbleupon.async.Deferred<com.mapr.fs.proto.Dbserver.GetTableSchemaResponse>getTableSchema(Fid tableFid)com.stumbleupon.async.Deferred<com.mapr.fs.proto.Fileserver.LookupResponse>lookup(java.lang.String fileName, Fid parentFid)com.stumbleupon.async.Deferred<com.mapr.fs.proto.Fileserver.PathWalkPlusResponse>pathWalkPlus(java.lang.String filePath, Fid startFid)com.stumbleupon.async.Deferred<com.mapr.fs.proto.Dbserver.PutResponse>put(Fid tabletFid, long schemaVersion, java.lang.Iterable<com.mapr.fs.proto.Dbserver.CompressedRow> compRowList, io.netty.buffer.ByteBuf payload)com.stumbleupon.async.Deferred<java.lang.Object>startClient()com.stumbleupon.async.Deferred<java.lang.Object>stopClient()com.stumbleupon.async.Deferred<com.mapr.fs.proto.Dbserver.TableCreateResponse>tableCreate(java.lang.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>unlink(java.lang.String filePath, Fid parentFid)-
Methods inherited from class com.mapr.client.impl.rpc.RpcClient
sendRequest, startBinding, stopBinding
-
Methods inherited from class com.mapr.client.impl.rpc.RpcBinding
getClientEventLoopGroup, getMapRClient, isSecure, isStarted, nextCallId, nextConnId, start, stop
-
-
-
-
Constructor Detail
-
MfsClient
public MfsClient(MapRClient maprClient, com.mapr.fs.proto.Common.Server mfsServer, boolean isSecure)
-
-
Method Detail
-
startClient
public com.stumbleupon.async.Deferred<java.lang.Object> startClient()
- Overrides:
startClientin classRpcClient
-
stopClient
public com.stumbleupon.async.Deferred<java.lang.Object> 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(java.lang.String fileName, Fid parentFid) throws java.lang.InterruptedException, java.lang.Exception- Throws:
java.lang.InterruptedExceptionjava.lang.Exception
-
unlink
public com.stumbleupon.async.Deferred<com.mapr.fs.proto.Fileserver.UnlinkResponse> unlink(java.lang.String filePath, Fid parentFid) throws java.lang.InterruptedException, java.lang.Exception- Throws:
java.lang.InterruptedExceptionjava.lang.Exception
-
pathWalkPlus
public com.stumbleupon.async.Deferred<com.mapr.fs.proto.Fileserver.PathWalkPlusResponse> pathWalkPlus(java.lang.String filePath, Fid startFid) throws java.lang.InterruptedException, java.lang.Exception- Throws:
java.lang.InterruptedExceptionjava.lang.Exception
-
getattr
public com.stumbleupon.async.Deferred<com.mapr.fs.proto.Fileserver.GetattrResponse> getattr(Fid fileFid) throws java.lang.InterruptedException, java.lang.Exception
- Throws:
java.lang.InterruptedExceptionjava.lang.Exception
-
tableCreate
public com.stumbleupon.async.Deferred<com.mapr.fs.proto.Dbserver.TableCreateResponse> tableCreate(java.lang.String tableName, Fid parent, boolean isJson) throws java.lang.InterruptedException, java.lang.Exception- Throws:
java.lang.InterruptedExceptionjava.lang.Exception
-
columnFamilyScan
public com.stumbleupon.async.Deferred<com.mapr.fs.proto.Dbserver.ColumnFamilyScanResponse> columnFamilyScan(Fid tableFid) throws java.lang.InterruptedException, java.lang.Exception
- Throws:
java.lang.InterruptedExceptionjava.lang.Exception
-
columnFamilyCreate
public com.stumbleupon.async.Deferred<com.mapr.fs.proto.Dbserver.ColumnFamilyCreateResponse> columnFamilyCreate(java.lang.String cfName, Fid tableFid) throws java.lang.InterruptedException, java.lang.Exception- Throws:
java.lang.InterruptedExceptionjava.lang.Exception
-
getTableSchema
public com.stumbleupon.async.Deferred<com.mapr.fs.proto.Dbserver.GetTableSchemaResponse> getTableSchema(Fid tableFid) throws java.lang.InterruptedException, java.lang.Exception
- Throws:
java.lang.InterruptedExceptionjava.lang.Exception
-
tabletLookup
public com.stumbleupon.async.Deferred<com.mapr.fs.proto.Dbserver.TabletLookupResponse> tabletLookup(Fid tableFid, io.netty.buffer.ByteBuf key, int numTablets) throws java.lang.InterruptedException, java.lang.Exception
- Throws:
java.lang.InterruptedExceptionjava.lang.Exception
-
put
public com.stumbleupon.async.Deferred<com.mapr.fs.proto.Dbserver.PutResponse> put(Fid tabletFid, long schemaVersion, java.lang.Iterable<com.mapr.fs.proto.Dbserver.CompressedRow> compRowList, io.netty.buffer.ByteBuf payload) throws java.lang.InterruptedException, java.lang.Exception
- Throws:
java.lang.InterruptedExceptionjava.lang.Exception
-
-