Package org.bedework.synch.conf
Class SynchConfig
- java.lang.Object
-
- org.bedework.util.config.ConfigBase<T>
-
- org.bedework.util.config.HibernateConfigBase<SynchConfig>
-
- org.bedework.synch.conf.SynchConfig
-
- All Implemented Interfaces:
Serializable,Comparable<SynchConfig>,org.bedework.util.config.HibernateConfigI,org.bedework.util.logging.Logged
public class SynchConfig extends org.bedework.util.config.HibernateConfigBase<SynchConfig>
This class defines the various properties we need for the synch engine- Author:
- Mike Douglass
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynchConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCallbackURI()web service push callback uri - null for no serviceList<SynchConnConf<?>>getConnectorConfs()SetSortedSet<IpAddrInfo>getIpInfo()StringgetKeystore()Path to keystore - null for use defaultintgetMissingTargetRetries()StringgetPrivKeys()StringgetPubKeys()booleangetSubscriptionsOnly()intgetSynchlingPoolSize()longgetSynchlingPoolTimeout()StringgetTimezonesURI()Timezone server locationvoidsetCallbackURI(String val)web service push callback uri - null for no servicevoidsetConnectorConfs(List<SynchConnConf<?>> val)voidsetIpInfo(SortedSet<IpAddrInfo> val)voidsetKeystore(String val)Path to keystore - null for use defaultvoidsetMissingTargetRetries(int val)voidsetPrivKeys(String val)voidsetPubKeys(String val)voidsetSubscriptionsOnly(boolean val)This flag alllows us to run synch engine on multiple machines.voidsetSynchlingPoolSize(int val)voidsetSynchlingPoolTimeout(long val)voidsetTimezonesURI(String val)Timezone server location-
Methods inherited from class org.bedework.util.config.HibernateConfigBase
addHibernateProperty, getHibernateDialect, getHibernateProperties, getHibernateProperty, removeHibernateProperty, setHibernateDialect, setHibernateProperties, setHibernateProperty, toString, toStringSegment
-
Methods inherited from class org.bedework.util.config.ConfigBase
addListProperty, compareTo, fromXml, fromXml, fromXml, getLastChanged, getLogger, getName, getProperty, hashCode, markChanged, removeProperty, setListProperty, setName, toProperties, toXml
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, warn
-
-
-
-
Method Detail
-
setSynchlingPoolSize
public void setSynchlingPoolSize(int val)
- Parameters:
val- current size of synchling pool
-
getSynchlingPoolSize
public int getSynchlingPoolSize()
- Returns:
- current size of synchling pool
-
setSynchlingPoolTimeout
public void setSynchlingPoolTimeout(long val)
- Parameters:
val- timeout in millisecs
-
getSynchlingPoolTimeout
public long getSynchlingPoolTimeout()
- Returns:
- timeout in millisecs
-
setMissingTargetRetries
public void setMissingTargetRetries(int val)
- Parameters:
val- How often we retry when a target is missing
-
getMissingTargetRetries
public int getMissingTargetRetries()
- Returns:
- How often we retry when a target is missing
-
setCallbackURI
public void setCallbackURI(String val)
web service push callback uri - null for no service- Parameters:
val- String
-
getCallbackURI
public String getCallbackURI()
web service push callback uri - null for no service- Returns:
- String
-
setTimezonesURI
public void setTimezonesURI(String val)
Timezone server location- Parameters:
val- String
-
getTimezonesURI
public String getTimezonesURI()
Timezone server location- Returns:
- String
-
setKeystore
public void setKeystore(String val)
Path to keystore - null for use default- Parameters:
val- String
-
getKeystore
public String getKeystore()
Path to keystore - null for use default- Returns:
- String
-
setPrivKeys
public void setPrivKeys(String val)
- Parameters:
val- String
-
getPrivKeys
public String getPrivKeys()
- Returns:
- String
-
setPubKeys
public void setPubKeys(String val)
- Parameters:
val- String
-
getPubKeys
public String getPubKeys()
- Returns:
- String
-
setIpInfo
public void setIpInfo(SortedSet<IpAddrInfo> val)
- Parameters:
val-
-
getIpInfo
public SortedSet<IpAddrInfo> getIpInfo()
- Returns:
- ip info
-
setConnectorConfs
public void setConnectorConfs(List<SynchConnConf<?>> val)
- Parameters:
val- Map of (name, className)
-
getConnectorConfs
public List<SynchConnConf<?>> getConnectorConfs()
Set- Returns:
- map
-
setSubscriptionsOnly
public void setSubscriptionsOnly(boolean val)
This flag alllows us to run synch engine on multiple machines. For the moment only one of those instances should handle the actual synch process. All others shoudl have this flag set to true so that they only handle the creation and deletion of subscriptions.- Parameters:
val- true if this instance only handles subscriptions
-
getSubscriptionsOnly
public boolean getSubscriptionsOnly()
- Returns:
- true if this instance only handles subscriptions
-
-