Package com.tangosol.io.journal
Class JournalService
- java.lang.Object
-
- com.tangosol.io.journal.JournalService
-
- All Implemented Interfaces:
Disposable,AutoCloseable
public class JournalService extends Object implements Disposable
A JournalService manages the lifecycle for theRamJournalRM,FlashJournalRM, and theBackupJournalRM.- Since:
- Coherence 3.7
- Author:
- cf 2010.12.10
-
-
Field Summary
Fields Modifier and Type Field Description static StringJOURNAL_SERVICE_NAMEThe name of theJournalServiceas a registered resource.
-
Constructor Summary
Constructors Modifier Constructor Description protectedJournalService(Cluster cluster)Construct theJournalServiceassociated with the specifiedCluster.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Shut down and release the RAM, flash and backup Journal Resource Managers.BackupJournalRMensureBackupJournalRM()Ensure there is a configured BackupJournalRM.FlashJournalRMensureFlashJournalRM()Ensure there is a configured FlashJournalRM.static JournalServiceensureJournalService(Cluster cluster)Ensure theJournalServiceis registered as a cluster resource.RamJournalRMensureRamJournalRM()Ensure there is a configured RAMJournalRM.ClustergetCluster()Returns theClusterfor which thisJournalServiceis storing data.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.oracle.coherence.common.base.Disposable
close
-
-
-
-
Field Detail
-
JOURNAL_SERVICE_NAME
public static final String JOURNAL_SERVICE_NAME
The name of theJournalServiceas a registered resource.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JournalService
protected JournalService(Cluster cluster)
Construct theJournalServiceassociated with the specifiedCluster.- Parameters:
cluster- theClusterfor which theJournalServiceis storing data
-
-
Method Detail
-
dispose
public void dispose()
Shut down and release the RAM, flash and backup Journal Resource Managers.- Specified by:
disposein interfaceDisposable- Since:
- Coherence 3.7
-
ensureJournalService
public static JournalService ensureJournalService(Cluster cluster)
Ensure theJournalServiceis registered as a cluster resource.- Parameters:
cluster- theClusterfor which theJournalServiceis storing data- Returns:
- the
JournalService
-
ensureFlashJournalRM
public FlashJournalRM ensureFlashJournalRM()
Ensure there is a configured FlashJournalRM.- Returns:
- a
FlashJournalRMfor use - Since:
- Coherence 3.7
-
ensureRamJournalRM
public RamJournalRM ensureRamJournalRM()
Ensure there is a configured RAMJournalRM.- Returns:
- a
RamJournalRMto be used - Since:
- Coherence 3.7
-
ensureBackupJournalRM
public BackupJournalRM ensureBackupJournalRM()
Ensure there is a configured BackupJournalRM.- Returns:
- a
BackupJournalRMto be used - Since:
- Coherence 3.7.1
-
getCluster
public Cluster getCluster()
Returns theClusterfor which thisJournalServiceis storing data.- Returns:
- the
Cluster
-
-