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 Lock
The lock that should be used to control concurrent access to this Journal Services.protected static final Lock
The lock that should be used to control concurrent access to all Journal Services.static final String
The name of theJournalService
as a registered resource. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
JournalService
(Cluster cluster) Construct theJournalService
associated with the specifiedCluster
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
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 JournalService
ensureJournalService
(Cluster cluster) Ensure theJournalService
is registered as a cluster resource.Ensure there is a configured RAMJournalRM.Returns theCluster
for which thisJournalService
is 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 Details
-
JOURNAL_SERVICE_NAME
The name of theJournalService
as 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 theJournalService
associated with the specifiedCluster
.- Parameters:
cluster
- theCluster
for which theJournalService
is storing data
-
-
Method Details
-
dispose
public void dispose()Shut down and release the RAM, flash and backup Journal Resource Managers.- Specified by:
dispose
in interfaceDisposable
- Since:
- Coherence 3.7
-
ensureJournalService
Ensure theJournalService
is registered as a cluster resource.- Parameters:
cluster
- theCluster
for which theJournalService
is storing data- Returns:
- the
JournalService
-
ensureFlashJournalRM
Ensure there is a configured FlashJournalRM.- Returns:
- a
FlashJournalRM
for use - Since:
- Coherence 3.7
-
ensureRamJournalRM
Ensure there is a configured RAMJournalRM.- Returns:
- a
RamJournalRM
to be used - Since:
- Coherence 3.7
-
ensureBackupJournalRM
Ensure there is a configured BackupJournalRM.- Returns:
- a
BackupJournalRM
to be used - Since:
- Coherence 3.7.1
-
getCluster
Returns theCluster
for which thisJournalService
is storing data.- Returns:
- the
Cluster
-