Class AbstractXStreamPersister<K extends Key,V>
java.lang.Object
com.atlassian.bamboo.persister.xstream.AbstractXStreamPersister<K,V>
- All Implemented Interfaces:
XStreamObjectPersister<K,
V>
- Direct Known Subclasses:
XStreamChainStatePersisterImpl
,XStreamCurrentlyBuildingPersisterImpl
,XStreamDeploymentInProgressPersisterImpl
,XStreamSecureTokenPersister
public abstract class AbstractXStreamPersister<K extends Key,V>
extends Object
implements XStreamObjectPersister<K,V>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Remove all persisted objectsLoad object from the storageloadAll()
Loads all stored objects.Loads all stored objects and removes files from storage.void
Remove object identified by key from the storagevoid
Save an object in the storageprotected File
storageFile
(K key) Create storage file for persisting objectprotected File
temporaryFile
(K key) Create temporary file for persisting object
-
Constructor Details
-
AbstractXStreamPersister
-
-
Method Details
-
load
Description copied from interface:XStreamObjectPersister
Load object from the storage- Specified by:
load
in interfaceXStreamObjectPersister<K extends Key,
V> - Returns:
- object fetched from the storage
-
save
Description copied from interface:XStreamObjectPersister
Save an object in the storage- Specified by:
save
in interfaceXStreamObjectPersister<K extends Key,
V>
-
remove
Description copied from interface:XStreamObjectPersister
Remove object identified by key from the storage- Specified by:
remove
in interfaceXStreamObjectPersister<K extends Key,
V>
-
cleanStorage
public void cleanStorage()Description copied from interface:XStreamObjectPersister
Remove all persisted objects- Specified by:
cleanStorage
in interfaceXStreamObjectPersister<K extends Key,
V>
-
loadAndRemoveAll
Description copied from interface:XStreamObjectPersister
Loads all stored objects and removes files from storage.- Specified by:
loadAndRemoveAll
in interfaceXStreamObjectPersister<K extends Key,
V>
-
temporaryFile
Create temporary file for persisting object -
storageFile
Create storage file for persisting object -
loadAll
Description copied from interface:XStreamObjectPersister
Loads all stored objects.- Specified by:
loadAll
in interfaceXStreamObjectPersister<K extends Key,
V>
-