Class PersistenceEnvironmentParamBuilder.PersistenceEnvironmentInfo
java.lang.Object
com.tangosol.coherence.config.builder.PersistenceEnvironmentParamBuilder.PersistenceEnvironmentInfo
- All Implemented Interfaces:
PersistenceEnvironmentInfo
- Enclosing class:
- PersistenceEnvironmentParamBuilder
public static class PersistenceEnvironmentParamBuilder.PersistenceEnvironmentInfo
extends Object
implements PersistenceEnvironmentInfo
A
PersistenceEnvironmentInfo
implementation that exposes the active, snapshot and trash directories,
in addition to the persistence mode.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the directory under which cached data is actively persisted by the environment.longReturn the total size in bytes used by the persistence layer to persist mutating cache operations.Return the directory under which cached data is actively persisted by the environment.longReturn the total size in bytes used by the persistence layer to persist backups of mutating cache operations.Return the directory under which cached data is actively persisted by the environment.Return the persistence mode.Return the directory under which copies of cached data are persisted by the environment.Return the directory under which potentially corrupted persisted data is stored by the environment.booleanisActive()Return whether the persistence mode is active.toString()
-
Constructor Details
-
PersistenceEnvironmentInfo
public PersistenceEnvironmentInfo(String sMode, File dirActive, File dirBackup, File dirEvents, File dirSnapshot, File dirTrash) - Parameters:
dirActive- active directorydirSnapshot- snapshot directorydirTrash- trash directorysMode- persistence mode (active or on-demand)
-
-
Method Details
-
getPersistenceActiveDirectory
Description copied from interface:PersistenceEnvironmentInfoReturn the directory under which cached data is actively persisted by the environment.- Specified by:
getPersistenceActiveDirectoryin interfacePersistenceEnvironmentInfo- Returns:
- the active directory
-
getPersistenceBackupDirectory
Description copied from interface:PersistenceEnvironmentInfoReturn the directory under which cached data is actively persisted by the environment.- Specified by:
getPersistenceBackupDirectoryin interfacePersistenceEnvironmentInfo- Returns:
- the backup directory
-
getPersistenceEventsDirectory
Description copied from interface:PersistenceEnvironmentInfoReturn the directory under which cached data is actively persisted by the environment.- Specified by:
getPersistenceEventsDirectoryin interfacePersistenceEnvironmentInfo- Returns:
- the events directory
-
getPersistenceSnapshotDirectory
Description copied from interface:PersistenceEnvironmentInfoReturn the directory under which copies of cached data are persisted by the environment.- Specified by:
getPersistenceSnapshotDirectoryin interfacePersistenceEnvironmentInfo- Returns:
- the snapshot directory
-
getPersistenceTrashDirectory
Description copied from interface:PersistenceEnvironmentInfoReturn the directory under which potentially corrupted persisted data is stored by the environment.- Specified by:
getPersistenceTrashDirectoryin interfacePersistenceEnvironmentInfo- Returns:
- the trash directory
-
getPersistenceActiveSpaceUsed
public long getPersistenceActiveSpaceUsed()Description copied from interface:PersistenceEnvironmentInfoReturn the total size in bytes used by the persistence layer to persist mutating cache operations.- Specified by:
getPersistenceActiveSpaceUsedin interfacePersistenceEnvironmentInfo- Returns:
- the total size
-
getPersistenceBackupSpaceUsed
public long getPersistenceBackupSpaceUsed()Description copied from interface:PersistenceEnvironmentInfoReturn the total size in bytes used by the persistence layer to persist backups of mutating cache operations.- Specified by:
getPersistenceBackupSpaceUsedin interfacePersistenceEnvironmentInfo- Returns:
- the total size
-
getPersistenceMode
Return the persistence mode.- Returns:
- the persistence mode (active or on-demand)
-
isActive
public boolean isActive()Return whether the persistence mode is active.- Returns:
- true if the persistence mode is active
-
toString
-