public class ClusterStorageManager extends Object
| Constructor and Description |
|---|
ClusterStorageManager(Authenticator auth)
Initialises all ClusterStorage handlers listed by class name in the property "ClusterStorages"
This property is usually process specific, and so should be in the server/client.conf and not the connect file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abort(Object locker) |
void |
begin(Object locker) |
void |
clearCache() |
void |
clearCache(ItemPath itemPath) |
void |
clearCache(ItemPath itemPath,
String path) |
void |
close() |
void |
commit(Object locker) |
void |
dumpCacheContents(int logLevel) |
String |
executeQuery(Query query)
Executes the Query
|
C2KLocalObject |
get(ItemPath itemPath,
String path)
Internal get method.
|
String[] |
getClusterContents(ItemPath itemPath,
String path)
Retrieves the ids of the next level of a cluster
Does not look in any currently open transactions.
|
ArrayList<ClusterStorage> |
instantiateStores(String allClusters) |
void |
postBoostrap() |
void |
postConnect() |
void |
postStartServer() |
void |
put(ItemPath itemPath,
C2KLocalObject obj) |
void |
put(ItemPath itemPath,
C2KLocalObject obj,
Object locker)
Internal put method.
|
void |
remove(ItemPath itemPath,
String path) |
void |
remove(ItemPath itemPath,
String path,
Object locker)
Deletes a cluster from all writers
|
public ClusterStorageManager(Authenticator auth) throws PersistencyException
auth - the Authenticator to be used to initialise all the handlersPersistencyExceptionpublic ArrayList<ClusterStorage> instantiateStores(String allClusters) throws PersistencyException
PersistencyExceptionpublic void close()
public String executeQuery(Query query) throws PersistencyException
query - the Query to be executedPersistencyExceptionpublic String[] getClusterContents(ItemPath itemPath, String path) throws PersistencyException
itemPath - the current Itempath - the cluster pathPersistencyExceptionpublic C2KLocalObject get(ItemPath itemPath, String path) throws PersistencyException, ObjectNotFoundException
itemPath - current Itenpath - the cluster pathPersistencyExceptionObjectNotFoundExceptionpublic void put(ItemPath itemPath, C2KLocalObject obj) throws PersistencyException
PersistencyExceptionpublic void put(ItemPath itemPath, C2KLocalObject obj, Object locker) throws PersistencyException
PersistencyExceptionpublic void remove(ItemPath itemPath, String path) throws PersistencyException
PersistencyExceptionpublic void remove(ItemPath itemPath, String path, Object locker) throws PersistencyException
PersistencyExceptionpublic void clearCache(ItemPath itemPath)
public void clearCache()
public void dumpCacheContents(int logLevel)
public void begin(Object locker) throws PersistencyException
PersistencyExceptionpublic void commit(Object locker) throws PersistencyException
PersistencyExceptionpublic void abort(Object locker) throws PersistencyException
PersistencyExceptionpublic void postConnect()
throws PersistencyException
PersistencyExceptionpublic void postBoostrap()
throws PersistencyException
PersistencyExceptionpublic void postStartServer()
throws PersistencyException
PersistencyExceptionCopyright © 1997–2020 CRISTAL-iSE. All rights reserved.