public class ClusterConfig extends Object implements JournalFactory
Constructor and Description |
---|
ClusterConfig(String id,
long syncDelay,
JournalFactory jf)
Creates a new cluster configuration.
|
ClusterConfig(String id,
long syncDelay,
long stopDelay,
JournalFactory jf)
Creates a new cluster configuration.
|
Modifier and Type | Method and Description |
---|---|
String |
getId()
Return the id configuration attribute value.
|
Journal |
getJournal(NamespaceResolver resolver)
Returns an initialized journal instance.
|
long |
getStopDelay() |
long |
getSyncDelay()
Return the syncDelay configuration attribute value.
|
public ClusterConfig(String id, long syncDelay, JournalFactory jf)
id
- custom cluster node idsyncDelay
- syncDelay, in millisecondsjf
- journal factorypublic ClusterConfig(String id, long syncDelay, long stopDelay, JournalFactory jf)
id
- custom cluster node idsyncDelay
- syncDelay, in millisecondsstopDelay
- stopDelay in millisecondsjf
- journal factorypublic String getId()
public long getSyncDelay()
public long getStopDelay()
public Journal getJournal(NamespaceResolver resolver) throws RepositoryException
getJournal
in interface JournalFactory
resolver
- namespace resolverRepositoryException
RepositoryException
- if the journal can not be createdCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.