Class ClusterConfig
- java.lang.Object
-
- org.apache.jackrabbit.core.config.ClusterConfig
-
- All Implemented Interfaces:
JournalFactory
public class ClusterConfig extends Object implements JournalFactory
Cluster configuration.
-
-
Constructor Summary
Constructors Constructor Description ClusterConfig(String id, long syncDelay, long stopDelay, JournalFactory jf)
Creates a new cluster configuration.ClusterConfig(String id, long syncDelay, JournalFactory jf)
Creates a new cluster configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
Return the id configuration attribute value.Journal
getJournal(org.apache.jackrabbit.spi.commons.namespace.NamespaceResolver resolver)
Returns an initialized journal instance.long
getStopDelay()
long
getSyncDelay()
Return the syncDelay configuration attribute value.
-
-
-
Constructor Detail
-
ClusterConfig
public ClusterConfig(String id, long syncDelay, JournalFactory jf)
Creates a new cluster configuration.- Parameters:
id
- custom cluster node idsyncDelay
- syncDelay, in millisecondsjf
- journal factory
-
ClusterConfig
public ClusterConfig(String id, long syncDelay, long stopDelay, JournalFactory jf)
Creates a new cluster configuration.- Parameters:
id
- custom cluster node idsyncDelay
- syncDelay, in millisecondsstopDelay
- stopDelay in millisecondsjf
- journal factory
-
-
Method Detail
-
getId
public String getId()
Return the id configuration attribute value.- Returns:
- id attribute value
-
getSyncDelay
public long getSyncDelay()
Return the syncDelay configuration attribute value.- Returns:
- syncDelay
-
getStopDelay
public long getStopDelay()
- Returns:
- stopDelay the stopDelay configuration attribute value.
-
getJournal
public Journal getJournal(org.apache.jackrabbit.spi.commons.namespace.NamespaceResolver resolver) throws RepositoryException
Returns an initialized journal instance.- Specified by:
getJournal
in interfaceJournalFactory
- Parameters:
resolver
- namespace resolver- Returns:
- initialized journal
- Throws:
RepositoryException
RepositoryException
- if the journal can not be created
-
-