public class MemoryOnlyClusterStorage extends ClusterStorage
allClusterTypes, COLLECTION, HISTORY, JOB, LIFECYCLE, NONE, OUTCOME, PROPERTY, READ, READWRITE, ROOT, VIEWPOINT, WRITE| Constructor and Description |
|---|
MemoryOnlyClusterStorage() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shuts down the storage.
|
void |
delete(ItemPath thisItem,
String path)
Remove a CRISTAL local object from storage.
|
void |
dumpContents(ItemPath thisItem) |
C2KLocalObject |
get(ItemPath thisItem,
String path)
Fetches a CRISTAL local object from storage
|
String[] |
getClusterContents(ItemPath thisItem,
String path)
Queries the local path below the given root and returns the possible next
elements.
|
String |
getId() |
String |
getName() |
void |
open(Authenticator auth)
Connects to the storage.
|
void |
put(ItemPath thisItem,
C2KLocalObject obj)
Stores a CRISTAL local object.
|
short |
queryClusterSupport(String clusterType)
Declares whether or not this ClusterStorage can read or write a
particular CRISTAL local object type.
|
getClusterType, getPathpublic void open(Authenticator auth) throws PersistencyException
ClusterStorageopen in class ClusterStorageauth - The Authenticator instance that the user or server logged in
with.PersistencyException - If storage initialization failedpublic void close()
throws PersistencyException
ClusterStorageclose in class ClusterStoragePersistencyException - If closing failedpublic short queryClusterSupport(String clusterType)
ClusterStoragequeryClusterSupport in class ClusterStorageclusterType - The Cluster type requested. Must be one of the Cluster type
constants from this class.public String getName()
getName in class ClusterStoragepublic String getId()
getId in class ClusterStoragepublic C2KLocalObject get(ItemPath thisItem, String path) throws PersistencyException
ClusterStorageget in class ClusterStoragethisItem - The ItemPath of the containing Itempath - The path of the local objectPersistencyException - when retrieval failedpublic void put(ItemPath thisItem, C2KLocalObject obj) throws PersistencyException
ClusterStorageput in class ClusterStoragethisItem - The Item that the object will be stored underobj - The C2KLocalObject to storePersistencyException - When storage failspublic void delete(ItemPath thisItem, String path) throws PersistencyException
ClusterStoragedelete in class ClusterStoragethisItem - The containing Itempath - The path of the object to be removedPersistencyException - When deletion fails or is not allowedpublic String[] getClusterContents(ItemPath thisItem, String path) throws PersistencyException
ClusterStoragegetClusterContents in class ClusterStoragethisItem - The Item to querypath - The path within that Item to query. May be ClusterStorage.ROOT
(empty String)PersistencyException - When an error occurred during the querypublic void dumpContents(ItemPath thisItem)
Copyright © 1997–2016 CRISTAL-iSE. All rights reserved.