| Modifier and Type | Method and Description |
|---|---|
long |
changeEncryptionKey(byte[] oldEncryptionKey,
byte[] newEncryptionKey,
boolean encryptionDryRun) |
void |
checkIfContextCanBeMoved(java.lang.String oldPath,
java.lang.String newPath) |
void |
checkMoveDataTablesIsPossible(java.lang.String oldContext,
java.lang.String newContext)
Checks whether moveDataTables() operation is allowed.
|
long |
deleteDataTables(java.lang.String context)
Delete persistent variable values that match a certain context path.
|
DataTable |
getDataTable(EntityReference key)
Load a previously stored value of a variable.
|
DataTable |
getStatistics()
Returns usage statistics table.
|
void |
migrateResource(java.lang.String sourceServerId,
java.lang.String targetServerId,
java.lang.String resourceName)
Migrate a resource from one node of a cluster to another
|
long |
moveDataTables(java.lang.String oldContext,
java.lang.String newContext)
Reassociate a set of persistent variable values with a different context path.
|
void |
removeDataTable(EntityReference key,
DataTable value,
boolean shouldProcessDataBlocks)
Delete persistent value of a variable.
|
void |
renameDataTable(java.lang.String context,
java.lang.String oldName,
java.lang.String newName)
Reassociate a persistent value with a differently names variable.
|
void |
saveDataTable(EntityReference key,
DataTable table)
Persistently save value of a variable.
|
void |
saveDataTable(EntityReference key,
DataTable table,
DataTable oldTable)
Persistently save value of a variable.
|
void saveDataTable(EntityReference key, DataTable table) throws DaoException, ContextException
key - Reference to a variable represented by context path and variable nametable - Variable value to be stored persistentlyDaoException - If storage has failedContextException - If other error occurredvoid saveDataTable(EntityReference key, DataTable table, DataTable oldTable) throws DaoException, ContextException
key - Reference to a variable represented by context path and variable nametable - Variable value to be stored persistentlyoldTable - Previous value of the variable or null if not availableDaoException - If storage has failedContextException - If other error occurredDataTable getDataTable(EntityReference key) throws DaoException, ContextException
key - Reference to a variable represented by context path and variable nameDaoException - If loading has failedContextException - If value was corrupted and cannot be properly converted to a DataTablelong deleteDataTables(java.lang.String context)
throws DaoException,
ContextException
context - Path of context those persistent variable values must be deletedDaoException - If removal has failedContextException - If any other error occurredvoid removeDataTable(EntityReference key, DataTable value, boolean shouldProcessDataBlocks) throws DaoException, ContextException
getDataTable(EntityReference).key - Reference to a variable represented by context path and variable namevalue - Current value of a variable to use for finding and deleting referred data blocksDaoException - If removal of variable's value or referred data blocks has failedContextException - If any other error occurredlong moveDataTables(java.lang.String oldContext,
java.lang.String newContext)
throws DaoException
oldContext - Context path of persistent value to reassociatenewContext - New context path for selected valuesDaoException - If reassociation process has failedvoid checkMoveDataTablesIsPossible(java.lang.String oldContext,
java.lang.String newContext)
throws ContextException
oldContext - Source context packnewContext - Target context pathContextException - If move operation is not currently allowed for provided pathsvoid renameDataTable(java.lang.String context,
java.lang.String oldName,
java.lang.String newName)
throws DaoException
context - Context path of persistent value to reassociateoldName - Old name of a variable pointing to the persistent valuenewName - New name of a variable pointing to the persistent valueDaoException - If reassociation has failedDataTable getStatistics()
long changeEncryptionKey(byte[] oldEncryptionKey,
byte[] newEncryptionKey,
boolean encryptionDryRun)
void migrateResource(java.lang.String sourceServerId,
java.lang.String targetServerId,
java.lang.String resourceName)
throws DaoException
sourceServerId - ID of server to migrate resource fromtargetServerId - ID of server to migrate resource toresourceName - Path of the resource to be migratedDaoException - If migration has failedvoid checkIfContextCanBeMoved(java.lang.String oldPath,
java.lang.String newPath)
throws ContextException
ContextException