Package org.bedework.synch.service
Interface SynchConfMBean
-
- All Superinterfaces:
org.bedework.util.jmx.BaseMBean,org.bedework.util.jmx.ConfBaseMBean
- All Known Implementing Classes:
SynchConf
public interface SynchConfMBean extends org.bedework.util.jmx.ConfBaseMBeanConfigure the Bedework synch engine service- Author:
- douglm
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddHibernateProperty(String name, String value)StringdisplayHibernateProperty(String name)Display the named propertyStringgetCallbackURI()web service push callback uri - null for no serviceList<String>getConnectorNames()List connector namesintgetDumpThreshold()booleangetExport()StringgetHibernateDialect()StringgetKeystore()Path to keystore - null for use defaultintgetMissingTargetRetries()StringgetPrivKeys()StringgetPubKeys()StringgetSchemaOutFile()List<Stat>getStats()Get the current statsbooleangetSubscriptionsOnly()intgetSynchlingPoolSize()longgetSynchlingPoolTimeout()StringgetTimezonesURI()Timezone server locationbooleanisStarted()LifecycleStringlistHibernateProperties()List the hibernate propertiesStringloadConfig()(Re)load the configurationvoidremoveHibernateProperty(String name)Remove the named propertyStringrescheduleNow(String id)Reschedule the subscription nowStringschema()Create or dump new schema.List<String>schemaStatus()Returns status of the schema build.voidsetCallbackURI(String val)web service push callback uri - null for no servicevoidsetDumpThreshold(int val)voidsetExport(boolean val)voidsetHibernateDialect(String value)voidsetHibernateProperty(String name, String value)voidsetKeystore(String val)Path to keystore - null for use defaultvoidsetMissingTargetRetries(int val)How often we retry when a target is missingvoidsetPrivKeys(String val)voidsetPubKeys(String val)voidsetSchemaOutFile(String val)voidsetSubscriptionsOnly(boolean val)voidsetSynchlingPoolSize(int val)voidsetSynchlingPoolTimeout(long val)voidsetTimezonesURI(String val)Timezone server locationvoidstart()Lifecyclevoidstop()Lifecycle
-
-
-
Method Detail
-
setSynchlingPoolSize
void setSynchlingPoolSize(int val)
- Parameters:
val- current size of synchling pool
-
getSynchlingPoolSize
int getSynchlingPoolSize()
- Returns:
- current size of synchling pool
-
setSynchlingPoolTimeout
void setSynchlingPoolTimeout(long val)
- Parameters:
val- timeout in millisecs
-
getSynchlingPoolTimeout
long getSynchlingPoolTimeout()
- Returns:
- timeout in millisecs
-
setMissingTargetRetries
void setMissingTargetRetries(int val)
How often we retry when a target is missing- Parameters:
val-
-
getMissingTargetRetries
int getMissingTargetRetries()
- Returns:
- How often we retry when a target is missing
-
setCallbackURI
void setCallbackURI(String val)
web service push callback uri - null for no service- Parameters:
val- String
-
getCallbackURI
String getCallbackURI()
web service push callback uri - null for no service- Returns:
- String
-
setTimezonesURI
void setTimezonesURI(String val)
Timezone server location- Parameters:
val- String
-
getTimezonesURI
String getTimezonesURI()
Timezone server location- Returns:
- String
-
setKeystore
void setKeystore(String val)
Path to keystore - null for use default- Parameters:
val- String
-
getKeystore
String getKeystore()
Path to keystore - null for use default- Returns:
- String
-
setPrivKeys
void setPrivKeys(String val)
- Parameters:
val- String
-
getPrivKeys
String getPrivKeys()
- Returns:
- String
-
setPubKeys
void setPubKeys(String val)
- Parameters:
val- String
-
getPubKeys
String getPubKeys()
- Returns:
- String
-
setSubscriptionsOnly
void setSubscriptionsOnly(boolean val)
- Parameters:
val- true if this instance only handles subscriptions
-
getSubscriptionsOnly
boolean getSubscriptionsOnly()
- Returns:
- true if this instance only handles subscriptions
-
setExport
void setExport(boolean val)
- Parameters:
val- Export schema to database?
-
getExport
boolean getExport()
- Returns:
- true for export schema
-
setSchemaOutFile
void setSchemaOutFile(String val)
- Parameters:
val- Output file name - full path
-
getSchemaOutFile
String getSchemaOutFile()
- Returns:
- Output file name - full path
-
setDumpThreshold
void setDumpThreshold(int val)
- Parameters:
val- Dump threshold
-
getDumpThreshold
int getDumpThreshold()
- Returns:
- Dump threshold
-
schema
String schema()
Create or dump new schema. If export and drop set will try to drop tables. Export and create will create a schema in the db and export, drop, create will drop tables, and try to create a new schema. The export and drop flags will all be reset to false after this, whatever the result. This avoids accidental damage to the db.- Returns:
- Completion message
-
schemaStatus
List<String> schemaStatus()
Returns status of the schema build.- Returns:
- Completion messages
-
rescheduleNow
String rescheduleNow(String id)
Reschedule the subscription now- Parameters:
id-- Returns:
- status
-
setHibernateDialect
void setHibernateDialect(String value)
- Parameters:
value-
-
getHibernateDialect
String getHibernateDialect()
- Returns:
- Completion messages
-
listHibernateProperties
String listHibernateProperties()
List the hibernate properties- Returns:
- properties
-
displayHibernateProperty
String displayHibernateProperty(String name)
Display the named property- Parameters:
name-- Returns:
- value
-
removeHibernateProperty
void removeHibernateProperty(String name)
Remove the named property- Parameters:
name-
-
addHibernateProperty
void addHibernateProperty(String name, String value)
- Parameters:
name-value-
-
setHibernateProperty
void setHibernateProperty(String name, String value)
- Parameters:
name-value-
-
start
void start()
Lifecycle- Specified by:
startin interfaceorg.bedework.util.jmx.BaseMBean
-
stop
void stop()
Lifecycle- Specified by:
stopin interfaceorg.bedework.util.jmx.BaseMBean
-
isStarted
boolean isStarted()
Lifecycle- Returns:
- true if started
-
loadConfig
String loadConfig()
(Re)load the configuration- Returns:
- status
-
-