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
-
Method Summary
Modifier and TypeMethodDescriptionReturn the directory under which cached data is actively persisted by the environment.long
Return 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.long
Return 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.boolean
isActive()
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:
sMode
- persistence mode (active or on-demand)dirActive
- active directorydirSnapshot
- snapshot directorydirTrash
- trash directory
-
-
Method Details
-
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
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
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
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
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
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
-