public class JournalService extends Object implements Disposable
RamJournalRM,
FlashJournalRM, and the BackupJournalRM.| Modifier and Type | Field and Description |
|---|---|
static String |
JOURNAL_SERVICE_NAME
The name of the
JournalService as a registered resource. |
| Modifier | Constructor and Description |
|---|---|
protected |
JournalService(Cluster cluster)
Construct the
JournalService associated with the specified
Cluster. |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Shut down and release the RAM, flash and backup Journal Resource
Managers.
|
BackupJournalRM |
ensureBackupJournalRM()
Ensure there is a configured BackupJournalRM.
|
FlashJournalRM |
ensureFlashJournalRM()
Ensure there is a configured FlashJournalRM.
|
static JournalService |
ensureJournalService(Cluster cluster)
Ensure the
JournalService is registered as a cluster resource. |
RamJournalRM |
ensureRamJournalRM()
Ensure there is a configured RAMJournalRM.
|
Cluster |
getCluster()
Returns the
Cluster for which this JournalService is
storing data. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic static final String JOURNAL_SERVICE_NAME
JournalService as a registered resource.protected JournalService(Cluster cluster)
JournalService associated with the specified
Cluster.cluster - the Cluster for which the JournalService
is storing datapublic void dispose()
dispose in interface Disposablepublic static JournalService ensureJournalService(Cluster cluster)
JournalService is registered as a cluster resource.cluster - the Cluster for which the JournalService
is storing dataJournalServicepublic FlashJournalRM ensureFlashJournalRM()
FlashJournalRM for usepublic RamJournalRM ensureRamJournalRM()
RamJournalRM to be usedpublic BackupJournalRM ensureBackupJournalRM()
BackupJournalRM to be usedpublic Cluster getCluster()
Cluster for which this JournalService is
storing data.Cluster