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 java.lang.String confuriPname  

    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

    Modifier and Type Method Description
    java.lang.String[] activeConnectionInfo()  
    SynchConnection getConnection​(java.lang.String callbackUrl)
    Find a connection
    SynchConnection getConnectionById​(java.lang.String id)
    Get a connection for outbound calls by id
    java.lang.String loadConfig()  
    void setConnection​(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