org.apache.jackrabbit.core.config
Class ClusterConfig

java.lang.Object
  extended by org.apache.jackrabbit.core.config.ClusterConfig
All Implemented Interfaces:
JournalFactory

public class ClusterConfig
extends Object
implements JournalFactory

Cluster configuration.


Constructor Summary
ClusterConfig(String id, long syncDelay, JournalFactory jf)
          Creates a new cluster configuration.
 
Method Summary
 String getId()
          Return the id configuration attribute value.
 Journal getJournal(NamespaceResolver resolver)
          Returns an initialized journal instance.
 long getSyncDelay()
          Return the syncDelay configuration attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterConfig

public ClusterConfig(String id,
                     long syncDelay,
                     JournalFactory jf)
Creates a new cluster configuration.

Parameters:
id - custom cluster node id
syncDelay - syncDelay, in milliseconds
jc - journal configuration
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

getJournal

public Journal getJournal(NamespaceResolver resolver)
                   throws RepositoryException
Returns an initialized journal instance.

Specified by:
getJournal in interface JournalFactory
Parameters:
resolver - namespace resolver
Returns:
initialized journal
Throws:
RepositoryException
RepositoryException - if the journal can not be created


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.