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 inherited from class org.bedework.util.jmx.ConfBase
cfg, statusDone, statusFailed, statusInterrupted, statusRunning, statusStopped, statusTimedout, statusUnknownFields inherited from interface org.bedework.caldav.server.soap.synch.SynchConnectionsMBean
configName, serviceName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]getConnection(String callbackUrl) Find a connectionGet a connection for outbound calls by idvoidPut/update a connectionMethods inherited from class org.bedework.util.jmx.ConfBase
createObjectName, ensureDir, getConfig, getConfigDirectory, getConfigInfo, getConfigInfo, getConfigInfo, getConfigName, getLogger, getManagementContext, getPathSuffix, getRegisteredMBeans, getServiceName, getServiceObjectName, getStatus, getStore, isRunning, loadConfig, makeObject, register, register, saveConfig, setStatus, setStore, start, stop, unregister, unregisterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bedework.util.jmx.BaseMBean
getServiceName, isRunning, start, stopMethods inherited from interface org.bedework.util.jmx.ConfBaseMBean
getConfigName, getStatus, saveConfig, setStatusMethods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, trace, warn
-
Constructor Details
-
SynchConnections
public SynchConnections()
-
-
Method Details
-
loadConfig
- Specified by:
loadConfigin classorg.bedework.util.jmx.ConfBase
-
setConnection
Description copied from interface:SynchConnectionsMBeanPut/update a connection- Specified by:
setConnectionin interfaceSynchConnectionsMBean
-
getConnection
Description copied from interface:SynchConnectionsMBeanFind a connection- Specified by:
getConnectionin interfaceSynchConnectionsMBean- Returns:
- a connection or null
-
getConnectionById
Description copied from interface:SynchConnectionsMBeanGet a connection for outbound calls by id- Specified by:
getConnectionByIdin interfaceSynchConnectionsMBean- Returns:
- a connection or null
-
activeConnectionInfo
- Specified by:
activeConnectionInfoin interfaceSynchConnectionsMBean- Returns:
- list of connections
-