public class Operation extends java.lang.Object implements KvDatabaseOp
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
LOG |
| Constructor and Description |
|---|
Operation(KvStoreClient clnt)
Deprecated.
|
Operation(KvStoreClient clnt,
com.mapr.fs.proto.Security.CredentialsMsg creds) |
| Modifier and Type | Method and Description |
|---|---|
int |
apply() |
int |
apply(java.util.List<com.mapr.fs.proto.Fileserver.KvStoreMultiopResponse> multiResp) |
int |
bulkCreateContainer(int[] cidList,
int volId,
java.util.List<java.util.List<com.mapr.fs.proto.Common.Server>> servers,
boolean isMirrorVolume,
boolean isShuffleVolume,
com.mapr.fs.proto.Common.ContainerReplType replType,
com.mapr.fs.proto.Common.FSVolumeProperties fsVolProps,
long[] cycleIdList) |
int |
createContainer(int cid,
int volId,
java.util.List<com.mapr.fs.proto.Common.Server> servers,
boolean isNameContainer,
boolean isMirrorContainer,
boolean isShuffleVolume,
com.mapr.fs.proto.Common.ContainerReplType replType,
com.mapr.fs.proto.Common.SetattrMsg rootDirAttr,
com.mapr.fs.proto.Common.FSVolumeProperties fsVolProps,
long cycleId)
The following function is called to create on new container.
|
int |
createSnapshotContainer(int rwContainerId,
int rwVolId,
int snapContainerId,
int snapId,
com.mapr.fs.proto.Common.Server master) |
int |
createSnapshotRootContainer(int rwContainerId,
int rwVolId,
int snapContainerId,
int snapId,
com.mapr.fs.proto.Common.Server master,
java.lang.String snapName) |
int |
createStaleContainer(int cid,
int volId,
java.util.List<com.mapr.fs.proto.Common.Server> servers,
boolean rootOfVolume,
boolean isMirrorContainer,
com.mapr.fs.proto.Common.ContainerReplType replType,
com.mapr.fs.proto.Common.FSVolumeProperties fsVolprops,
long cycleId)
The following function is called to create additional copies of an existing container.
|
int |
delete(KvTable<?> kvTable,
com.mapr.fs.proto.Fileserver.KvStoreKey key) |
int |
delete(KvTable<java.lang.Integer> kvTable,
java.lang.Integer keyValue) |
int |
delete(KvTable<java.lang.Long> kvTable,
java.lang.Long keyValue) |
int |
delete(KvTable<java.lang.String> kvTable,
java.lang.String keyValue) |
int |
deleteSnapshotVolume(int rwRootContainerId,
int rwVolId,
int snapRootContainerId,
int snapId,
com.mapr.fs.proto.Common.Server master,
java.lang.String snapName) |
static com.mapr.fs.proto.Fileserver.KvStoreKey |
getKey(byte[] keyBytes,
int keyLength) |
int |
insert(KvStore<java.lang.Integer> kv,
java.lang.Integer keyValue,
com.google.protobuf.MessageLite value) |
int |
insert(KvTable<?> kv,
com.mapr.fs.proto.Fileserver.KvStoreKey key,
com.google.protobuf.ByteString value) |
int |
insert(KvTable<java.lang.Integer> kvTable,
java.lang.Integer key,
com.google.protobuf.MessageLite value,
boolean verifyKey) |
int |
insert(KvTable<java.lang.Long> kv,
java.lang.Long key,
com.google.protobuf.MessageLite value,
boolean verifyKey) |
int |
insert(KvTable<java.lang.String> kv,
java.lang.String key,
com.google.protobuf.MessageLite value) |
int |
insert(KvTable<java.lang.String> kv,
java.lang.String key,
java.lang.String value) |
int |
removeContainer(int cid,
int serverIp) |
void |
setSkipLogFlush(boolean skipLogFlush) |
@Deprecated public Operation(KvStoreClient clnt)
public Operation(KvStoreClient clnt, com.mapr.fs.proto.Security.CredentialsMsg creds)
public void setSkipLogFlush(boolean skipLogFlush)
setSkipLogFlush in interface KvDatabaseOppublic int insert(KvTable<java.lang.Integer> kvTable, java.lang.Integer key, com.google.protobuf.MessageLite value, boolean verifyKey)
insert in interface KvDatabaseOppublic int insert(KvStore<java.lang.Integer> kv, java.lang.Integer keyValue, com.google.protobuf.MessageLite value)
public int insert(KvTable<java.lang.Long> kv, java.lang.Long key, com.google.protobuf.MessageLite value, boolean verifyKey)
insert in interface KvDatabaseOppublic int insert(KvTable<java.lang.String> kv, java.lang.String key, com.google.protobuf.MessageLite value)
insert in interface KvDatabaseOppublic int insert(KvTable<java.lang.String> kv, java.lang.String key, java.lang.String value)
insert in interface KvDatabaseOppublic int insert(KvTable<?> kv, com.mapr.fs.proto.Fileserver.KvStoreKey key, com.google.protobuf.ByteString value)
insert in interface KvDatabaseOppublic int delete(KvTable<java.lang.Integer> kvTable, java.lang.Integer keyValue)
delete in interface KvDatabaseOppublic int delete(KvTable<java.lang.Long> kvTable, java.lang.Long keyValue)
delete in interface KvDatabaseOppublic int delete(KvTable<java.lang.String> kvTable, java.lang.String keyValue)
delete in interface KvDatabaseOppublic int delete(KvTable<?> kvTable, com.mapr.fs.proto.Fileserver.KvStoreKey key)
delete in interface KvDatabaseOppublic static com.mapr.fs.proto.Fileserver.KvStoreKey getKey(byte[] keyBytes,
int keyLength)
public int createContainer(int cid,
int volId,
java.util.List<com.mapr.fs.proto.Common.Server> servers,
boolean isNameContainer,
boolean isMirrorContainer,
boolean isShuffleVolume,
com.mapr.fs.proto.Common.ContainerReplType replType,
com.mapr.fs.proto.Common.SetattrMsg rootDirAttr,
com.mapr.fs.proto.Common.FSVolumeProperties fsVolProps,
long cycleId)
cid - volId - servers - isNameContainer - isMirrorContainer - isShuffleVolume - replType - rootDirAttr - fsVolProps - cycleId - public int bulkCreateContainer(int[] cidList,
int volId,
java.util.List<java.util.List<com.mapr.fs.proto.Common.Server>> servers,
boolean isMirrorVolume,
boolean isShuffleVolume,
com.mapr.fs.proto.Common.ContainerReplType replType,
com.mapr.fs.proto.Common.FSVolumeProperties fsVolProps,
long[] cycleIdList)
public int createStaleContainer(int cid,
int volId,
java.util.List<com.mapr.fs.proto.Common.Server> servers,
boolean rootOfVolume,
boolean isMirrorContainer,
com.mapr.fs.proto.Common.ContainerReplType replType,
com.mapr.fs.proto.Common.FSVolumeProperties fsVolprops,
long cycleId)
cid - volId - servers - rootOfVolume - isMirrorContainer - replType - fsVolprops - cycleId - public int removeContainer(int cid,
int serverIp)
public int createSnapshotRootContainer(int rwContainerId,
int rwVolId,
int snapContainerId,
int snapId,
com.mapr.fs.proto.Common.Server master,
java.lang.String snapName)
public int createSnapshotContainer(int rwContainerId,
int rwVolId,
int snapContainerId,
int snapId,
com.mapr.fs.proto.Common.Server master)
public int deleteSnapshotVolume(int rwRootContainerId,
int rwVolId,
int snapRootContainerId,
int snapId,
com.mapr.fs.proto.Common.Server master,
java.lang.String snapName)
public int apply()
apply in interface KvDatabaseOppublic int apply(java.util.List<com.mapr.fs.proto.Fileserver.KvStoreMultiopResponse> multiResp)