public class Backend extends Object implements LockerProvider, AutoCloseable
KeyColumnValueStore
) and all external indexing providers (IndexProvider
).Modifier and Type | Field and Description |
---|---|
static double |
EDGESTORE_CACHE_PERCENT |
static String |
EDGESTORE_NAME
These are the names for the edge store and property index databases, respectively.
|
static double |
INDEXSTORE_CACHE_PERCENT |
static String |
INDEXSTORE_NAME |
static String |
LOCK_STORE_SUFFIX |
static String |
METRICS_CACHE_SUFFIX |
static String |
METRICS_INDEX_PROVIDER_NAME |
static String |
METRICS_MERGED_CACHE |
static String |
METRICS_MERGED_STORE |
static String |
METRICS_STOREMANAGER_NAME |
static Map<String,String> |
REGISTERED_LOG_MANAGERS |
static String |
SYSTEM_MGMT_LOG_NAME |
static String |
SYSTEM_TX_LOG_NAME |
Constructor and Description |
---|
Backend(Configuration configuration) |
public static final String EDGESTORE_NAME
These names are fixed and should NEVER be changed. Changing these strings can disrupt storage adapters that rely on these names for specific configurations. In the past, the store name for the ID table, janusgraph_ids, was also marked here, but to clear the upgrade path from Titan to JanusGraph, we had to pull it into configuration.
public static final String INDEXSTORE_NAME
public static final String METRICS_STOREMANAGER_NAME
public static final String METRICS_MERGED_STORE
public static final String METRICS_MERGED_CACHE
public static final String METRICS_CACHE_SUFFIX
public static final String METRICS_INDEX_PROVIDER_NAME
public static final String LOCK_STORE_SUFFIX
public static final String SYSTEM_TX_LOG_NAME
public static final String SYSTEM_MGMT_LOG_NAME
public static final double EDGESTORE_CACHE_PERCENT
public static final double INDEXSTORE_CACHE_PERCENT
public Backend(Configuration configuration)
public Locker getLocker(String lockerName)
getLocker
in interface LockerProvider
public void initialize(Configuration config)
config
- public Map<String,IndexInformation> getIndexInformation()
IndexProvider
s.public KCVSLog getSystemTxLog()
public Log getSystemMgmtLog()
public StandardScanner.Builder buildEdgeScanJob()
public StandardScanner.Builder buildGraphIndexScanJob()
public ScanJobFuture getScanJobStatus(Object jobId)
public Log getUserLog(String identifier) throws BackendException
BackendException
public KCVSConfiguration getGlobalSystemConfig()
public KCVSConfiguration getUserConfiguration()
public KCVSLogManager getKCVSLogManager(String logName)
public LogManager getLogManager(String logName)
public static KeyColumnValueStoreManager getStorageManager(Configuration storageConfig)
public static <T> T getImplementationClass(Configuration config, String className, Map<String,String> registeredImplementations)
public IDAuthority getIDAuthority()
IDAuthority
.public StoreFeatures getStoreFeatures()
StoreFeatures
of the configured backend storage engine.public Class<? extends KeyColumnValueStoreManager> getStoreManagerClass()
public StoreManager getStoreManager()
public Map<String,IndexFeatures> getIndexFeatures()
IndexFeatures
of all configured index backendspublic BackendTransaction beginTransaction(TransactionConfiguration configuration, KeyInformation.Retriever indexKeyRetriever) throws BackendException
BackendTransaction
.BackendException
public void close() throws BackendException
close
in interface AutoCloseable
BackendException
public void clearStorage() throws BackendException
IMPORTANT: Clearing storage means that ALL data will be lost and cannot be recovered.
BackendException
public static ConfigOption<?> getOptionForShorthand(String shorthand)
public KCVSCache getEdgeStoreCache()
public KCVSCache getIndexStoreCache()
Copyright © 2012–2023. All rights reserved.