Tabnine Logo
SimpleTcpCluster.getManagerTemplate
Code IndexAdd Tabnine to your IDE (free)

How to use
getManagerTemplate
method
in
org.apache.catalina.ha.tcp.SimpleTcpCluster

Best Java code snippets using org.apache.catalina.ha.tcp.SimpleTcpCluster.getManagerTemplate (Showing top 5 results out of 315)

origin: codefollower/Tomcat-Research

/**
 * 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());
  }
  Manager manager = null;
  try {
    manager = managerTemplate.cloneFromTemplate();
    ((ClusterManager)manager).setName(name);
  } catch (Exception x) {
    log.error("Unable to clone cluster manager, defaulting to org.apache.catalina.ha.session.DeltaManager", x);
    manager = new org.apache.catalina.ha.session.DeltaManager();
  } finally {
    if ( manager != null && (manager instanceof ClusterManager)) ((ClusterManager)manager).setCluster(this);
  }
  return manager;
}
origin: org.apache.geronimo.ext.tomcat/catalina-ha

/**
 * 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());
  }
  Manager manager = null;
  try {
    manager = managerTemplate.cloneFromTemplate();
    ((ClusterManager)manager).setName(name);
  } catch (Exception x) {
    log.error("Unable to clone cluster manager, defaulting to org.apache.catalina.ha.session.DeltaManager", x);
    manager = new org.apache.catalina.ha.session.DeltaManager();
  } finally {
    if ( manager != null && (manager instanceof ClusterManager)) ((ClusterManager)manager).setCluster(this);
  }
  return manager;
}

origin: org.apache.tomcat/tomcat-catalina-ha

/**
 * 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;
}
origin: codefollower/Tomcat-Research

SimpleTcpCluster tcpCluster = (SimpleTcpCluster) cluster;
ClusterManager manager = tcpCluster.getManagerTemplate();
if (manager != null) {
  storeElement(aWriter, indent, manager);
origin: org.apache.tomee/tomee-catalina

public SimpleTomEETcpCluster(final SimpleTcpCluster from) {
  clusterListeners.addAll(Arrays.asList(from.findClusterListeners()));
  setClusterName(from.getClusterName());
  setContainer(from.getContainer());
  setNotifyLifecycleListenerOnFailure(from.isNotifyLifecycleListenerOnFailure());
  setChannelSendOptions(from.getChannelSendOptions());
  setChannelStartOptions(from.getChannelStartOptions());
  setHeartbeatBackgroundEnabled(from.isHeartbeatBackgroundEnabled());
  setChannel(from.getChannel());
  getManagers().putAll(from.getManagers());
  setManagerTemplate(from.getManagerTemplate());
  setClusterDeployer(from.getClusterDeployer());
  for (final Valve valve : from.getValves()) {
    addValve(valve);
  }
}
org.apache.catalina.ha.tcpSimpleTcpClustergetManagerTemplate

Popular methods of SimpleTcpCluster

  • addValve
    Add cluster valve Cluster Valves are only add to container when cluster is started!
  • checkDefaults
  • getContainer
    Get the Container associated with our Cluster
  • isHeartbeatBackgroundEnabled
    Return heartbeat enable flag (default false)
  • addClusterListener
    Add cluster message listener and register cluster to this listener.
  • fireLifecycleEvent
  • getClusterName
    Return the name of the cluster that this Server is currently configured to operate within.
  • getLocalMember
    Return the member that represents this node.
  • getManagerName
  • messageReceived
  • register
  • registerClusterValve
    register all cluster valve to host or engine
  • register,
  • registerClusterValve,
  • registerMember,
  • send,
  • setState,
  • unregister,
  • unregisterClusterValve,
  • unregisterMember,
  • findClusterListeners

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Permission (java.security)
    Legacy security code; do not use.
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now