Search in sources :

Example 6 with DeltaManager

use of org.apache.catalina.ha.session.DeltaManager in project tomcat by apache.

the class SimpleTcpCluster method createManager.

/**
 * Create new Manager without add to cluster (comes with start the manager)
 *
 * @param name
 *            Context Name of this manager
 * @see org.apache.catalina.Cluster#createManager(java.lang.String)
 * @see DeltaManager#start()
 */
@Override
public synchronized Manager createManager(String name) {
    if (log.isDebugEnabled()) {
        log.debug("Creating ClusterManager for context " + name + " using class " + getManagerTemplate().getClass().getName());
    }
    ClusterManager manager = null;
    try {
        manager = managerTemplate.cloneFromTemplate();
        manager.setName(name);
    } catch (Exception x) {
        log.error(sm.getString("simpleTcpCluster.clustermanager.cloneFailed"), x);
        manager = new org.apache.catalina.ha.session.DeltaManager();
    } finally {
        if (manager != null) {
            manager.setCluster(this);
        }
    }
    return manager;
}
Also used : DeltaManager(org.apache.catalina.ha.session.DeltaManager) ClusterManager(org.apache.catalina.ha.ClusterManager) LifecycleException(org.apache.catalina.LifecycleException)

Aggregations

DeltaManager (org.apache.catalina.ha.session.DeltaManager)6 LifecycleException (org.apache.catalina.LifecycleException)2 ClusterManager (org.apache.catalina.ha.ClusterManager)2 BackupManager (org.apache.catalina.ha.session.BackupManager)2 ClusterSessionListener (org.apache.catalina.ha.session.ClusterSessionListener)2 JvmRouteBinderValve (org.apache.catalina.ha.session.JvmRouteBinderValve)2 GroupChannel (org.apache.catalina.tribes.group.GroupChannel)2 TcpFailureDetector (org.apache.catalina.tribes.group.interceptors.TcpFailureDetector)2 lombok.val (lombok.val)1 JvmRouteSessionIDBinderListener (org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener)1 MessageDispatch15Interceptor (org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor)1 MessageDispatchInterceptor (org.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor)1