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
APersistenceEnvironmentInfo
implementation 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 File
getPersistenceActiveDirectory()
Return the directory under which cached data is actively persisted by the environment.long
getPersistenceActiveSpaceUsed()
Return the total size in bytes used by the persistence layer to persist mutating cache operations.File
getPersistenceBackupDirectory()
Return the directory under which cached data is actively persisted by the environment.long
getPersistenceBackupSpaceUsed()
Return the total size in bytes used by the persistence layer to persist backups of mutating cache operations.File
getPersistenceEventsDirectory()
Return the directory under which cached data is actively persisted by the environment.String
getPersistenceMode()
Return the persistence mode.File
getPersistenceSnapshotDirectory()
Return the directory under which copies of cached data are persisted by the environment.File
getPersistenceTrashDirectory()
Return the directory under which potentially corrupted persisted data is stored by the environment.boolean
isActive()
Return whether the persistence mode is active.String
toString()
-
-
-
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:PersistenceEnvironmentInfo
Return the directory under which cached data is actively persisted by the environment.- Specified by:
getPersistenceActiveDirectory
in interfacePersistenceEnvironmentInfo
- Returns:
- the active directory
-
getPersistenceBackupDirectory
public File getPersistenceBackupDirectory()
Description copied from interface:PersistenceEnvironmentInfo
Return the directory under which cached data is actively persisted by the environment.- Specified by:
getPersistenceBackupDirectory
in interfacePersistenceEnvironmentInfo
- Returns:
- the backup directory
-
getPersistenceEventsDirectory
public File getPersistenceEventsDirectory()
Description copied from interface:PersistenceEnvironmentInfo
Return the directory under which cached data is actively persisted by the environment.- Specified by:
getPersistenceEventsDirectory
in interfacePersistenceEnvironmentInfo
- Returns:
- the events directory
-
getPersistenceSnapshotDirectory
public File getPersistenceSnapshotDirectory()
Description copied from interface:PersistenceEnvironmentInfo
Return the directory under which copies of cached data are persisted by the environment.- Specified by:
getPersistenceSnapshotDirectory
in interfacePersistenceEnvironmentInfo
- Returns:
- the snapshot directory
-
getPersistenceTrashDirectory
public File getPersistenceTrashDirectory()
Description copied from interface:PersistenceEnvironmentInfo
Return the directory under which potentially corrupted persisted data is stored by the environment.- Specified by:
getPersistenceTrashDirectory
in interfacePersistenceEnvironmentInfo
- Returns:
- the trash directory
-
getPersistenceActiveSpaceUsed
public long getPersistenceActiveSpaceUsed()
Description copied from interface:PersistenceEnvironmentInfo
Return the total size in bytes used by the persistence layer to persist mutating cache operations.- Specified by:
getPersistenceActiveSpaceUsed
in interfacePersistenceEnvironmentInfo
- Returns:
- the total size
-
getPersistenceBackupSpaceUsed
public long getPersistenceBackupSpaceUsed()
Description copied from interface:PersistenceEnvironmentInfo
Return the total size in bytes used by the persistence layer to persist backups of mutating cache operations.- Specified by:
getPersistenceBackupSpaceUsed
in 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
-
-