public class MapRClient extends java.lang.Object implements Connection, LifeCycle
| Modifier and Type | Field and Description |
|---|---|
protected com.mapr.fs.proto.Common.SetattrMsg |
myAttr |
protected com.mapr.fs.proto.Security.CredentialsMsg |
myCreds |
| Constructor and Description |
|---|
MapRClient(Cluster cluster) |
| Modifier and Type | Method and Description |
|---|---|
com.mapr.fs.proto.Dbserver.ColumnFamilyScanResponse |
columnFamilyScan(Fid tableFid) |
Table |
createTable(java.lang.String tablePath) |
Fid |
doPathWalk(java.lang.String filePath,
Fid startFid) |
com.mapr.fs.proto.Fileserver.GetattrResponse |
getAttr(Fid fileFid) |
com.mapr.fs.proto.Common.SetattrMsg |
getAttributes() |
CldbClient |
getCldbClient() |
io.netty.channel.EventLoopGroup |
getClientEventLoopGroup() |
com.mapr.fs.proto.Security.CredentialsMsg |
getCredentials() |
MfsClient |
getMfsClientFromContainerId(int containerId) |
Fid |
getRootFid() |
io.netty.channel.EventLoopGroup |
getServerEventLoopGroup() |
Table |
getTable(java.lang.String tablePath) |
boolean |
isSecure() |
boolean |
isStarted() |
com.mapr.fs.proto.Dbserver.TabletLookupResponse |
lookupTablet(java.lang.String key,
Fid tableFid,
int numTablets) |
int |
nextEpoh() |
com.stumbleupon.async.Deferred<java.lang.Object> |
start() |
com.stumbleupon.async.Deferred<java.lang.Object> |
stop() |
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) |
com.mapr.fs.proto.Fileserver.UnlinkResponse |
unlink(java.lang.String filePath) |
protected com.mapr.fs.proto.Security.CredentialsMsg myCreds
protected com.mapr.fs.proto.Common.SetattrMsg myAttr
public MapRClient(Cluster cluster)
public com.stumbleupon.async.Deferred<java.lang.Object> start()
public com.stumbleupon.async.Deferred<java.lang.Object> stop()
public CldbClient getCldbClient()
public com.mapr.fs.proto.Security.CredentialsMsg getCredentials()
public com.mapr.fs.proto.Common.SetattrMsg getAttributes()
public int nextEpoh()
public io.netty.channel.EventLoopGroup getClientEventLoopGroup()
public io.netty.channel.EventLoopGroup getServerEventLoopGroup()
public boolean isSecure()
public Table getTable(java.lang.String tablePath) throws MapRClientException
getTable in interface ConnectionMapRClientExceptionpublic Table createTable(java.lang.String tablePath) throws MapRClientException
createTable in interface ConnectionMapRClientExceptionpublic MfsClient getMfsClientFromContainerId(int containerId) throws java.lang.Exception
java.lang.Exceptionpublic Fid getRootFid() throws java.lang.Exception
java.lang.Exceptionpublic Fid doPathWalk(java.lang.String filePath, Fid startFid) throws java.lang.Exception
java.lang.Exceptionpublic com.mapr.fs.proto.Fileserver.UnlinkResponse unlink(java.lang.String filePath)
throws java.lang.Exception
java.lang.Exceptionpublic com.mapr.fs.proto.Fileserver.GetattrResponse getAttr(Fid fileFid) throws java.lang.Exception
java.lang.Exceptionpublic com.mapr.fs.proto.Dbserver.ColumnFamilyScanResponse columnFamilyScan(Fid tableFid) throws java.lang.Exception
java.lang.Exceptionpublic com.mapr.fs.proto.Dbserver.TabletLookupResponse lookupTablet(java.lang.String key,
Fid tableFid,
int numTablets)
throws java.lang.Exception
java.lang.Exceptionpublic 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
java.lang.Exception