@NotStorableClass public abstract class AbstractDelegatingToStoreManagers extends AbstractStoreDelegatingToDataManager
Modifier and Type | Field and Description |
---|---|
protected boolean |
autoSaveEnabled |
protected ClassInfoFactory |
classInfoFactory |
protected IClassNameManager |
classNameManager |
protected int |
currentDataModelIdentifier
data model identifier
|
protected boolean |
garbageManagement
true if garbage management activated
|
protected GarbageManager |
garbageManager
manager of to garbage record identifier storing and link storing
|
protected HelperBinaryConversion |
helperBinaryConversion |
protected HelperReflect |
helperReflect |
protected Object |
mutex
file access synchronization mutex
|
protected ObjectIOManager |
objectIOManager
object reading and writing on data file manager
|
protected ProxyManager2 |
proxyManager2 |
protected boolean |
proxyMode |
protected IFilePersistenceAutoSaver |
saver |
protected StoreGarbager |
storeGarbager
manage garbage of data record
|
protected StoreHeader |
storeHeader
store header, data record #0
|
protected StoreSaver3 |
storeSaver
manage saving of object
|
protected StoreSynchro |
storeSynchro
group of synchronization object for file access, share between
Store and ProxyCallBack |
dataManager, logger, STORE_DATA, TRACE_FILE
Modifier | Constructor and Description |
---|---|
protected |
AbstractDelegatingToStoreManagers(StoreProperties storeProperties) |
clearDataManager, dataManagerBackup, dataManagerFreeSize, dataManagerGetNumberOfDataRecord, dataManagerGetNumberOfFreeRecord, dataManagerHeapSize, dataManagerUsedSize, flushDataManager, getDataManager, getNewDataRecordIdentifier, getStorageFileName, startDataManagerService, stopDataManagerService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addProhibitedPackage, addToNotCheckMethod, addToNotCheckMethod, addToNotCheckMethod, addToNotCheckMethod, clear, close, createObjectReadingInStoreOrGetExisting, disableBackgroundGarbageSweep, doNotSave, enableBackgroundGarbageSweep, endAccessSession, freeSize, garbageSweep, getAllReferenceLink, getCandidate, getDataRecordIdentifierAssociatedToObject, getNumberOfDataRecord, getNumberOfFreeRecord, getNumberOfGarbageCandidate, getNumberOfModified, getNumberOfObjectState, getNumberOfReferenced, getNumberOfToGarbage, getNumberOfVisitedForSave, getNumberOfWeakReference, getObjectHavingStateSet, getRoot, getStoredEnumMap, getStoreRoot, getToGarbage, isBackgroundGarbageSweepWorking, isChangeLogEnabled, newAccessSession, open, readRoot, removeWriteSubstitution, removeWriteSubstitution, save, setAutoSaveEventListener, setChangeLogEnabled, setDeprecatedInStore, setDeprecatedInStore, setEnumState, setForceEnhance, setForceEnhance, setGarbageListener, setInstanceFactory, setNoLazyLoad, setNoLazyLoad, setNoLazyLoad, setNoLazyLoad, setNotPersistedField, setNotPersistedField, setNotStorable, setNotStorable, setObjectIOForClass, setObjectIOForClass, setRoot, setStorable, setStorable, setStoredEnumMap, setStoreNotUseStandardSerialization, setStoreNotUseStandardSerialization, setStoreSerializeAndGZippedInOneRecord, setStoreSerializeAndGZippedInOneRecord, setStoreSerializeAndZippedInOneRecord, setStoreSerializeAndZippedInOneRecord, setStoreSerializeInOneRecord, setStoreSerializeInOneRecord, setSubstituteObjectManager, setSubstituteObjectManager, setSubstitutionOfJavaUtilCollection, setWriteSubstitution, setWriteSubstitution, totalSize, usedForGarbageManagement, usedSize
setBackgroundException
protected final HelperReflect helperReflect
protected final boolean proxyMode
protected final boolean garbageManagement
protected IClassNameManager classNameManager
protected ObjectIOManager objectIOManager
protected StoreSaver3 storeSaver
protected StoreGarbager storeGarbager
protected GarbageManager garbageManager
protected StoreHeader storeHeader
protected final StoreSynchro storeSynchro
Store
and ProxyCallBack
protected final Object mutex
protected ClassInfoFactory classInfoFactory
protected HelperBinaryConversion helperBinaryConversion
protected int currentDataModelIdentifier
protected ProxyManager2 proxyManager2
protected boolean autoSaveEnabled
protected IFilePersistenceAutoSaver saver
protected AbstractDelegatingToStoreManagers(StoreProperties storeProperties) throws StoreException
StoreException
public boolean isProxyMode()
public JoafipMutex getMutex()
public ClassLoaderProvider getClassLoaderProvider()
public void setClassLoaderProvider(ClassLoaderProvider classLoaderProvider)
public ProxyManager2 getProxyManager2()
public StoreSynchro getStoreSynchro()
public HelperBinaryConversion getHelperBinaryConversion()
public void stop() throws StoreException
StoreException
public ClassInfoFactory getClassInfoFactory()
public boolean isGarbageManagement() throws StoreException
StoreException
public HeapRecordableManager getHeapRecordableManager() throws StoreException
StoreException
protected boolean readAndSetHeapRecordableState(IHeapRecordable heapRecordable) throws HeapRecordableException
HeapRecordableException
protected DataRecordIdentifier attachHeapRecordable(IHeapRecordable heapRecordable) throws HeapRecordableException
HeapRecordableException
protected void heapRecordableManagerSave() throws HeapRecordableException
HeapRecordableException
protected void heapRecordableManagerDoNotSave(boolean clear)
public ObjectIOManager getObjectIOManager() throws StoreException
StoreException
public StoreSaver3 getStoreSaver()
public void setZipCompressionLevel(int zipCompressionLevel) throws StoreException
zipCompressionLevel
- the zip the compression level for object storing using zipped
serializationStoreException
protected void loadClassName() throws StoreException, StoreClassNotFoundException
public IClassNameManager getClassNameManager()
public int getClassIdentifier(Class<?> clazz) throws StoreException, StoreClassNotFoundException
public GarbageManager getGarbageManager()
StoreException
public void setStoreMode(NavigableMap<String,EnumStoreMode> storeModeMap)
public void setDeprecatedInStore(NavigableMap<String,Boolean> deprecatedinStoreMap)
public void setNotStorable(NavigableMap<String,Boolean> notStorableMap)
public Object deepCopy(Object sourceObject, boolean forceLoad) throws CopierException
CopierException
public void setPersistenceId(int persistenceId)
public int getPersistenceId()
public long getCurrentFileAccessSessionIdentifier()
public void xmlExport(String directoryName, String temporaryDirectoryName, boolean exportPersistedClassByteCode) throws StoreException, StoreClassNotFoundException, StoreInvalidClassException, StoreDataCorruptedException, StoreNotSerializableException, StoreTooBigForSerializationException
IStore
directoryName directory
also export byte code of class of persisted object
directoryName
- directory name where store exporttemporaryDirectoryName
- temporary directory name used to store temporary files while
exportingexportPersistedClassByteCode
- true if export persisted class byte codeStoreException
StoreClassNotFoundException
StoreInvalidClassException
StoreDataCorruptedException
StoreNotSerializableException
StoreTooBigForSerializationException
public void setExportListener(IExporterListener listener)
public int getNumberOfObjectExported()
public void xmlImport(String directoryName, boolean validating) throws StoreException, StoreClassNotFoundException, StoreInvalidClassException, StoreDataCorruptedException, StoreNotSerializableException
IStore
directoryName directory
directoryName
- directory name where are stored exported data to importStoreException
StoreClassNotFoundException
StoreInvalidClassException
StoreDataCorruptedException
StoreNotSerializableException
public void setImportListener(IImportListener listener)
public int getCurrentDataModelIdentifier()
public ConversionManager getConversionManager()
public Object newProxyInstance(Object sourceObject) throws StoreException
StoreException
public Object newProxyInstance(Class<?> objectClass, Class<?>[] parameterTypes, Object[] initargs) throws StoreException
StoreException
public Object newProxyInstance(Class<?> objectClass) throws StoreException
StoreException
public void setStoreOnlyMarkedStorable(boolean storeOnlyMarkedStorable)
public Collection<ClassInfo> allClassInformation()
public void keptInMemory(String key, Object object) throws StoreException
StoreException
public boolean isKeptInMemory(Object object)
public void referencedByPesistedStaticField(Class<?> classHavingStaticFieldReferenced) throws StoreException
StoreException
public void storedImmutableEnum(Class<? extends Enum<?>> enumClass) throws StoreException
IStore
StoreException
public Map<String,MutableInteger> getWroteObjectSet()
public void setRecordSaveActions(boolean recordActions)
public void setRecordSaveActions(boolean recordActions, ISaveRecordActionListener saveRecordActionListener)
public void setSaveRecordActionListener(ISaveRecordActionListener saveRecordActionListener)
public void setSaveInDataAccessSessionEnabled(boolean enabled)
public void setMaintainedInMemoryEnabled(boolean enabled)
public void setAutoSaveEnabled(boolean enabled)
public boolean isAutoSaveEnabled()
public void autoSaveSetup(int maxInMemoryThreshold)
public void setSaver(IFilePersistenceAutoSaver saver)
public void maintainInMemorySetup(int maintainedInMemoryQuota)
public Object newInstance(Class<?> objectClass, Class<?>[] parameterTypes, Object[] initargs)
objectClass
- the class of the object to createparameterTypes
- parameters type, see
Class.getConstructor(Class...)
initargs
- the construction parameters, see
Constructor.newInstance(Object...)
protected Object newInstance(ClassInfo objectClassInfo, Class<?>[] parameterTypes, Object[] initargs) throws ProxyException, ReflectException, ClassInfoException, ObjectIOException
public ClassInfo knownAsNotExisting(String className) throws StoreClassNotFoundException, StoreException
public ClassInfo getClassInfoInDataRecord(DataRecordIdentifier dataRecordIdentifier) throws StoreException
StoreException
public Class<?> classOfObject(Object object) throws StoreException
StoreException
public ClassInfo classInfoOfObject(Object object) throws StoreException
StoreException
@Fortest public GarbageCandidateRecordManager getGarbageCandidateRecordManager()
@Fortest public ToVisitRecordManager getToVisitRecordManager()
@Fortest public VisitedRecordManager getVisitedRecordManager()
@Fortest public ToGarbageRecordManager getToGarbageRecordManager()
@Fortest public LinkRecordManager getLinkRecordManager()
IStore
public void usedForClassNameManagement(Set<DataRecordIdentifier> setToUpdate) throws StoreException
StoreException
@Fortest public ObjectAndPersistInfo getObjectAndPersistInfoOfObjectFromQueue(Object object)
@Fortest public List<ObjectAndPersistInfo> getObjectAndPersistInfoOfObjectFromQueue()
@Fortest public void listenStateMapClean(IObjectStateMapCLeanListener listener)
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.