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 StringgetId()Return the id configuration attribute value.JournalgetJournal(NamespaceResolver resolver)Returns an initialized journal instance.longgetStopDelay()longgetSyncDelay()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(NamespaceResolver resolver) throws RepositoryException
Returns an initialized journal instance.- Specified by:
getJournalin interfaceJournalFactory- Parameters:
resolver- namespace resolver- Returns:
- initialized journal
- Throws:
RepositoryExceptionRepositoryException- if the journal can not be created
-
-