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
APersistenceEnvironmentInfoimplementation that exposes the active, snapshot and trash directories, in addition to the persistence mode.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilegetPersistenceActiveDirectory()Return the directory under which cached data is actively persisted by the environment.longgetPersistenceActiveSpaceUsed()Return the total size in bytes used by the persistence layer to persist mutating cache operations.FilegetPersistenceBackupDirectory()Return the directory under which cached data is actively persisted by the environment.longgetPersistenceBackupSpaceUsed()Return the total size in bytes used by the persistence layer to persist backups of mutating cache operations.FilegetPersistenceEventsDirectory()Return the directory under which cached data is actively persisted by the environment.StringgetPersistenceMode()Return the persistence mode.FilegetPersistenceSnapshotDirectory()Return the directory under which copies of cached data are persisted by the environment.FilegetPersistenceTrashDirectory()Return the directory under which potentially corrupted persisted data is stored by the environment.booleanisActive()Return whether the persistence mode is active.StringtoString()
-
-
-
Constructor Detail
-
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 Detail
-
getPersistenceActiveDirectory
public File 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
public File 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
public File 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
public File 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
public File 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
public String 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
-
-