Package com.tangosol.io.journal
Class JournalService
java.lang.Object
com.tangosol.io.journal.JournalService
- All Implemented Interfaces:
Disposable,AutoCloseable
A JournalService manages the lifecycle for the
RamJournalRM,
FlashJournalRM, and the BackupJournalRM.- Since:
- Coherence 3.7
- Author:
- cf 2010.12.10
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LockThe lock that should be used to control concurrent access to this Journal Services.protected static final LockThe lock that should be used to control concurrent access to all Journal Services.static final StringThe name of theJournalServiceas a registered resource. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJournalService(Cluster cluster) Construct theJournalServiceassociated with the specifiedCluster. -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Shut down and release the RAM, flash and backup Journal Resource Managers.Ensure there is a configured BackupJournalRM.Ensure there is a configured FlashJournalRM.static JournalServiceensureJournalService(Cluster cluster) Ensure theJournalServiceis registered as a cluster resource.Ensure there is a configured RAMJournalRM.Returns theClusterfor which thisJournalServiceis storing data.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.oracle.coherence.common.base.Disposable
close
-
Field Details
-
JOURNAL_SERVICE_NAME
The name of theJournalServiceas a registered resource.- See Also:
-
f_lock
The lock that should be used to control concurrent access to this Journal Services. -
JOURNAL_SERVICE_LOCK
The lock that should be used to control concurrent access to all Journal Services.
-
-
Constructor Details
-
JournalService
Construct theJournalServiceassociated with the specifiedCluster.- Parameters:
cluster- theClusterfor which theJournalServiceis storing data
-
-
Method Details
-
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
Ensure theJournalServiceis registered as a cluster resource.- Parameters:
cluster- theClusterfor which theJournalServiceis storing data- Returns:
- the
JournalService
-
ensureFlashJournalRM
Ensure there is a configured FlashJournalRM.- Returns:
- a
FlashJournalRMfor use - Since:
- Coherence 3.7
-
ensureRamJournalRM
Ensure there is a configured RAMJournalRM.- Returns:
- a
RamJournalRMto be used - Since:
- Coherence 3.7
-
ensureBackupJournalRM
Ensure there is a configured BackupJournalRM.- Returns:
- a
BackupJournalRMto be used - Since:
- Coherence 3.7.1
-
getCluster
Returns theClusterfor which thisJournalServiceis storing data.- Returns:
- the
Cluster
-