public class RocksDBBlobStoreHandler extends BlobStoreStorageHandler implements ServiceDetailsProvider, ServiceMonitorsProvider
| Constructor and Description |
|---|
RocksDBBlobStoreHandler(RocksDBBlobStoreConfigurer configurer) |
| Modifier and Type | Method and Description |
|---|---|
Object |
add(Serializable id,
Serializable data,
BlobStoreObjectType objectType)
Add the specified id with the specified data .
|
void |
close()
.
|
org.rocksdb.RocksIterator |
createAdminRocksIterator() |
org.rocksdb.RocksIterator |
createDataRocksIterator() |
org.rocksdb.RocksIterator |
createMetadataRocksIterator() |
org.rocksdb.RocksIterator |
createSyncListRocksIterator() |
org.rocksdb.RocksIterator |
createSyncOverflowRocksIterator() |
List<BlobStoreBulkOperationResult> |
executeBulk(List<BlobStoreBulkOperationRequest> operations,
BlobStoreObjectType objectType,
boolean transactional)
.
|
Serializable |
get(Serializable id,
Object position,
BlobStoreObjectType objectType)
Returns the data to which the specified id is mapped,
|
protected long |
getBlockSizeKB() |
protected long |
getCacheSizeMB() |
protected XAPColumnFamilyOptions |
getDataColumnFamilyOptions() |
protected XAPDBOptions |
getDBOptions() |
protected String |
getMappingDir() |
Properties |
getProperties()
.
|
ServiceDetails[] |
getServicesDetails()
Retruns one or more service details that the service exposes.
|
ServiceMonitors[] |
getServicesMonitors()
Retruns one or more service details that the service exposes.
|
BlobStoreStorageStatistics |
getStatistics() |
void |
initialize(BlobStoreConfig blobStoreConfig)
initialize a blob-store implementation.
|
protected boolean |
isCentralStorage() |
Boolean |
isPersistent() |
DataIterator<BlobStoreGetBulkOperationResult> |
iterator(BlobStoreObjectType objectType)
.
|
Serializable |
remove(Serializable id,
Object position,
BlobStoreObjectType objectType)
Removes the id (and its corresponding data) from this FDF.
|
Object |
replace(Serializable id,
Serializable data,
Object position,
BlobStoreObjectType objectType)
Replace the data to which the specified id is mapped with new data,
|
public RocksDBBlobStoreHandler(RocksDBBlobStoreConfigurer configurer)
protected long getCacheSizeMB()
protected long getBlockSizeKB()
public void initialize(BlobStoreConfig blobStoreConfig)
BlobStoreStorageHandlerinitialize in class BlobStoreStorageHandlerblobStoreConfig - - Configuration for blobstore implementation.public Properties getProperties()
BlobStoreStorageHandlergetProperties in class BlobStoreStorageHandlerpublic Object add(Serializable id, Serializable data, BlobStoreObjectType objectType)
BlobStoreStorageHandleradd in class BlobStoreStorageHandlerid - id with which the specified value is to be associateddata - data to be associated with the specified idobjectType - the object type - one of BlobStoreObjectType valuespublic Serializable get(Serializable id, Object position, BlobStoreObjectType objectType)
BlobStoreStorageHandlerget in class BlobStoreStorageHandlerid - id with which the specified data is to be associatedposition - optional position object which will be used as a pointer of locating the
id, or null if irrelevantobjectType - the object type - one of BlobStoreObjectType valuespublic Object replace(Serializable id, Serializable data, Object position, BlobStoreObjectType objectType)
BlobStoreStorageHandlerreplace in class BlobStoreStorageHandlerid - id with which the specified data is to be associateddata - the new data to replace the existing one.position - optional position object which will be used as a pointer of locating the
id, or null if irrelevantobjectType - the object type - one of BlobStoreObjectType valuespublic BlobStoreStorageStatistics getStatistics()
getStatistics in class BlobStoreStorageHandlerpublic Serializable remove(Serializable id, Object position, BlobStoreObjectType objectType)
BlobStoreStorageHandlerremove in class BlobStoreStorageHandlerid - the key that needs to be removedposition - optional position object which will be used as a pointer of locating the
id, or null if irrelevantobjectType - the object type - one of BlobStoreObjectType valuespublic List<BlobStoreBulkOperationResult> executeBulk(List<BlobStoreBulkOperationRequest> operations, BlobStoreObjectType objectType, boolean transactional)
BlobStoreStorageHandlerexecuteBulk in class BlobStoreStorageHandleroperations - - a list of operations to performobjectType - the object type - one of BlobStoreObjectType valuestransactional - - true if the bulk is to be performed in the blobstore as one logical
transaction if the blobstore supports transactions, false otherwisepublic DataIterator<BlobStoreGetBulkOperationResult> iterator(BlobStoreObjectType objectType)
BlobStoreStorageHandleriterator in class BlobStoreStorageHandlerobjectType - the object type - one of BlobStoreObjectType valuespublic Boolean isPersistent()
isPersistent in class BlobStoreStorageHandlerpublic void close()
BlobStoreStorageHandlerclose in class BlobStoreStorageHandlerpublic org.rocksdb.RocksIterator createDataRocksIterator()
public org.rocksdb.RocksIterator createMetadataRocksIterator()
public org.rocksdb.RocksIterator createSyncListRocksIterator()
public org.rocksdb.RocksIterator createSyncOverflowRocksIterator()
public org.rocksdb.RocksIterator createAdminRocksIterator()
public ServiceMonitors[] getServicesMonitors()
ServiceMonitorsProvidergetServicesMonitors in interface ServiceMonitorsProviderpublic ServiceDetails[] getServicesDetails()
ServiceDetailsProvidergetServicesDetails in interface ServiceDetailsProviderprotected XAPDBOptions getDBOptions()
protected XAPColumnFamilyOptions getDataColumnFamilyOptions()
protected String getMappingDir()
protected boolean isCentralStorage()
Copyright © GigaSpaces.