Package org.bedework.carddav.server.jmx
Class DbDirHandlerConf
- java.lang.Object
-
- org.bedework.util.jmx.ConfBase<DirHandlerConfig>
-
- org.bedework.carddav.server.jmx.DirHandlerConf
-
- org.bedework.carddav.server.jmx.DbDirHandlerConf
-
- All Implemented Interfaces:
DbDirHandlerConfMBean,DirHandlerConfMBean,org.bedework.util.jmx.BaseMBean,org.bedework.util.jmx.ConfBaseMBean,org.bedework.util.logging.Logged
public class DbDirHandlerConf extends DirHandlerConf implements DbDirHandlerConfMBean
- Author:
- douglm
-
-
Constructor Summary
Constructors Constructor Description DbDirHandlerConf()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddHibernateProperty(String name, String value)StringdisplayHibernateProperty(String name)Display the named propertyDbDirHandlerConfiggetConf()booleangetExport()StringgetHibernateDialect()intgetQueryLimit()StringgetRootAccess()StringgetRootOwner()StringgetSchemaOutFile()StringlistHibernateProperties()List the hibernate propertiesvoidremoveHibernateProperty(String name)Remove the named propertyStringschema()Create or dump new schema.List<String>schemaStatus()Returns status of the schema build.voidsetExport(boolean val)Export schema to database?voidsetHibernateDialect(String value)voidsetHibernateProperty(String name, String value)voidsetQueryLimit(int val)Set the query limit - 0 for no limitvoidsetRootAccess(String val)voidsetRootOwner(String val)voidsetSchemaOutFile(String val)Output file name - full path-
Methods inherited from class org.bedework.carddav.server.jmx.DirHandlerConf
getAddressBook, getCardKind, getCardPathPrefix, getCardPathPrefixes, getClassName, getDirectory, getOwnerHref, getPathPrefix, getPrincipalPrefix, init, loadConfig, setAddressBook, setCardKind, setCardPathPrefix, setCardPathPrefixes, setClassName, setDirectory, setOwnerHref, setPathPrefix, setPrincipalPrefix
-
Methods inherited from class org.bedework.util.jmx.ConfBase
createObjectName, getConfig, getConfigInfo, getConfigInfo, getConfigInfo, getConfigName, getConfigPname, getConfigUri, getLogger, getManagementContext, getPathSuffix, getRegisteredMBeans, getServiceName, getServiceObjectName, getStatus, getStore, isRunning, loadConfig, loadOnlyConfig, makeObject, register, register, saveConfig, setConfigName, setConfigPname, setConfigUri, setPathSuffix, setServiceName, setStatus, setStore, start, stop, unregister, unregister
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bedework.util.jmx.BaseMBean
getServiceName, isRunning, start, stop
-
Methods inherited from interface org.bedework.util.jmx.ConfBaseMBean
getConfigName, getStatus, saveConfig, setConfigName, setStatus
-
Methods inherited from interface org.bedework.carddav.server.jmx.DirHandlerConfMBean
getAddressBook, getCardKind, getCardPathPrefix, getCardPathPrefixes, getClassName, getDirectory, getOwnerHref, getPathPrefix, getPrincipalPrefix, setAddressBook, setCardKind, setCardPathPrefix, setCardPathPrefixes, setClassName, setDirectory, setOwnerHref, setPathPrefix, setPrincipalPrefix
-
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, setLogLevel, trace, trace, warn
-
-
-
-
Method Detail
-
setExport
public void setExport(boolean val)
Description copied from interface:DbDirHandlerConfMBeanExport schema to database?- Specified by:
setExportin interfaceDbDirHandlerConfMBean- Parameters:
val- true to export
-
getExport
public boolean getExport()
- Specified by:
getExportin interfaceDbDirHandlerConfMBean- Returns:
- true for export schema
-
setSchemaOutFile
public void setSchemaOutFile(String val)
Description copied from interface:DbDirHandlerConfMBeanOutput file name - full path- Specified by:
setSchemaOutFilein interfaceDbDirHandlerConfMBean- Parameters:
val- Output file name - full path
-
getSchemaOutFile
public String getSchemaOutFile()
- Specified by:
getSchemaOutFilein interfaceDbDirHandlerConfMBean- Returns:
- Output file name - full path
-
setRootAccess
public void setRootAccess(String val)
- Specified by:
setRootAccessin interfaceDbDirHandlerConfMBean- Parameters:
val- access set at the root. Needs to be an XML value
-
getRootAccess
public String getRootAccess()
- Specified by:
getRootAccessin interfaceDbDirHandlerConfMBean- Returns:
- String
-
setRootOwner
public void setRootOwner(String val)
- Specified by:
setRootOwnerin interfaceDbDirHandlerConfMBean- Parameters:
val- owner of the user root and user home
-
getRootOwner
public String getRootOwner()
- Specified by:
getRootOwnerin interfaceDbDirHandlerConfMBean- Returns:
- owner of the user root and user home
-
setQueryLimit
public void setQueryLimit(int val)
Description copied from interface:DbDirHandlerConfMBeanSet the query limit - 0 for no limit- Specified by:
setQueryLimitin interfaceDbDirHandlerConfMBean- Parameters:
val- Max number of entries returned
-
getQueryLimit
public int getQueryLimit()
- Specified by:
getQueryLimitin interfaceDbDirHandlerConfMBean- Returns:
- int Max number of entries returned
-
schema
public String schema()
Description copied from interface:DbDirHandlerConfMBeanCreate 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.- Specified by:
schemain interfaceDbDirHandlerConfMBean- Returns:
- Completion message
-
schemaStatus
public List<String> schemaStatus()
Description copied from interface:DbDirHandlerConfMBeanReturns status of the schema build.- Specified by:
schemaStatusin interfaceDbDirHandlerConfMBean- Returns:
- Completion messages
-
setHibernateDialect
public void setHibernateDialect(String value)
- Specified by:
setHibernateDialectin interfaceDbDirHandlerConfMBean- Parameters:
value- the hibernate dialect
-
getHibernateDialect
public String getHibernateDialect()
- Specified by:
getHibernateDialectin interfaceDbDirHandlerConfMBean- Returns:
- Completion messages
-
listHibernateProperties
public String listHibernateProperties()
Description copied from interface:DbDirHandlerConfMBeanList the hibernate properties- Specified by:
listHibernatePropertiesin interfaceDbDirHandlerConfMBean- Returns:
- properties
-
displayHibernateProperty
public String displayHibernateProperty(String name)
Description copied from interface:DbDirHandlerConfMBeanDisplay the named property- Specified by:
displayHibernatePropertyin interfaceDbDirHandlerConfMBean- Parameters:
name- of property- Returns:
- value
-
removeHibernateProperty
public void removeHibernateProperty(String name)
Description copied from interface:DbDirHandlerConfMBeanRemove the named property- Specified by:
removeHibernatePropertyin interfaceDbDirHandlerConfMBean- Parameters:
name- of property
-
addHibernateProperty
public void addHibernateProperty(String name, String value)
- Specified by:
addHibernatePropertyin interfaceDbDirHandlerConfMBean- Parameters:
name- of propertyvalue- of property
-
setHibernateProperty
public void setHibernateProperty(String name, String value)
- Specified by:
setHibernatePropertyin interfaceDbDirHandlerConfMBean- Parameters:
name- of propertyvalue- of property
-
getConf
public DbDirHandlerConfig getConf()
- Overrides:
getConfin classDirHandlerConf- Returns:
- current state of config
-
-