Class SynchConnections
- java.lang.Object
-
- org.bedework.util.jmx.ConfBase
-
- org.bedework.caldav.server.soap.synch.SynchConnections
-
- All Implemented Interfaces:
SynchConnectionsMBean,org.bedework.util.jmx.BaseMBean,org.bedework.util.jmx.ConfBaseMBean,org.bedework.util.logging.Logged
public class SynchConnections extends org.bedework.util.jmx.ConfBase implements SynchConnectionsMBean
This is a simple bean to handle the dynamic connections made between the CalDAV server and synch engines. These connections are defined by no more than an id and token.They are stored in a table with a url as the key. The url is the callback url of the synch service.
At this point I'm not sure how there can be more than one useful callback url. How do we select which one to callback to?
- Author:
- douglm
-
-
Field Summary
Fields Modifier and Type Field Description static StringconfuriPname-
Fields inherited from class org.bedework.util.jmx.ConfBase
cfg, statusDone, statusFailed, statusInterrupted, statusRunning, statusStopped, statusTimedout, statusUnknown
-
Fields inherited from interface org.bedework.caldav.server.soap.synch.SynchConnectionsMBean
configName, serviceName
-
-
Constructor Summary
Constructors Constructor Description SynchConnections()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]activeConnectionInfo()SynchConnectiongetConnection(String callbackUrl)Find a connectionSynchConnectiongetConnectionById(String id)Get a connection for outbound calls by idStringloadConfig()voidsetConnection(SynchConnection val)Put/update a connection-
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.util.logging.Logged
audit, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, warn
-
-
-
-
Field Detail
-
confuriPname
public static final String confuriPname
- See Also:
- Constant Field Values
-
-
Method Detail
-
loadConfig
public String loadConfig()
- Specified by:
loadConfigin classorg.bedework.util.jmx.ConfBase
-
setConnection
public void setConnection(SynchConnection val)
Description copied from interface:SynchConnectionsMBeanPut/update a connection- Specified by:
setConnectionin interfaceSynchConnectionsMBean
-
getConnection
public SynchConnection getConnection(String callbackUrl)
Description copied from interface:SynchConnectionsMBeanFind a connection- Specified by:
getConnectionin interfaceSynchConnectionsMBean- Returns:
- a connection or null
-
getConnectionById
public SynchConnection getConnectionById(String id)
Description copied from interface:SynchConnectionsMBeanGet a connection for outbound calls by id- Specified by:
getConnectionByIdin interfaceSynchConnectionsMBean- Returns:
- a connection or null
-
activeConnectionInfo
public String[] activeConnectionInfo()
- Specified by:
activeConnectionInfoin interfaceSynchConnectionsMBean- Returns:
- list of connections
-
-