Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.io.journal
Class JournalService

java.lang.Object
  extended by com.tangosol.io.journal.JournalService

All Implemented Interfaces:
com.oracle.common.base.Disposable

public class JournalService
extends java.lang.Object
implements com.oracle.common.base.Disposable

A JournalService manages the lifecycle for the RamJournalRM, FlashJournalRM, and the BackupJournalRM.

Since:
Coherence 3.7
Author:
cf 2010.12.10

Field Summary
static java.lang.String JOURNAL_SERVICE_NAME
          The name of the JournalService as a registered resource.

 

Constructor Summary
protected JournalService(Cluster cluster)
          Construct the JournalService associated with the specified Cluster.

 

Method Summary
 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.

 

Field Detail

JOURNAL_SERVICE_NAME

public static final java.lang.String JOURNAL_SERVICE_NAME
The name of the JournalService as a registered resource.
See Also:
Constant Field Values

Constructor Detail

JournalService

protected JournalService(Cluster cluster)
Construct the JournalService associated with the specified Cluster.
Parameters:
cluster - the Cluster for which the JournalService is storing data

Method Detail

dispose

public void dispose()
Shut down and release the RAM, flash and backup Journal Resource Managers.
Specified by:
dispose in interface com.oracle.common.base.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

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.