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 the RamJournalRM, FlashJournalRM, and the BackupJournalRM.
Since:
Coherence 3.7
Author:
cf 2010.12.10
  • Field Details

    • JOURNAL_SERVICE_NAME

      public static final String JOURNAL_SERVICE_NAME
      The name of the JournalService as a registered resource.
      See Also:
    • f_lock

      protected final Lock f_lock
      The lock that should be used to control concurrent access to this Journal Services.
    • JOURNAL_SERVICE_LOCK

      protected static final Lock JOURNAL_SERVICE_LOCK
      The lock that should be used to control concurrent access to all Journal Services.
  • Constructor Details

  • Method Details

    • dispose

      public void dispose()
      Shut down and release the RAM, flash and backup Journal Resource Managers.
      Specified by:
      dispose in interface Disposable
      Since:
      Coherence 3.7
    • ensureJournalService

      public static JournalService ensureJournalService(Cluster cluster)
      Ensure the JournalService is registered as a cluster resource.
      Parameters:
      cluster - the Cluster for which the JournalService is storing data
      Returns:
      the JournalService
    • ensureFlashJournalRM

      public FlashJournalRM ensureFlashJournalRM()
      Ensure there is a configured FlashJournalRM.
      Returns:
      a FlashJournalRM for use
      Since:
      Coherence 3.7
    • ensureRamJournalRM

      public RamJournalRM ensureRamJournalRM()
      Ensure there is a configured RAMJournalRM.
      Returns:
      a RamJournalRM to be used
      Since:
      Coherence 3.7
    • ensureBackupJournalRM

      public BackupJournalRM ensureBackupJournalRM()
      Ensure there is a configured BackupJournalRM.
      Returns:
      a BackupJournalRM to be used
      Since:
      Coherence 3.7.1
    • getCluster

      public Cluster getCluster()
      Returns the Cluster for which this JournalService is storing data.
      Returns:
      the Cluster