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

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

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

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

/**
 * Execute a periodic task, such as reloading, etc. This method will be
 * invoked inside the classloading context of this container. Unexpected
 * throwables will be caught and logged.
 * @see org.apache.catalina.ha.deploy.FarmWarDeployer#backgroundProcess()
 * @see org.apache.catalina.tribes.group.GroupChannel#heartbeat()
 * @see org.apache.catalina.tribes.group.GroupChannel.HeartbeatThread#run()
 * 
 */
@Override
public void backgroundProcess() {
  if (clusterDeployer != null) clusterDeployer.backgroundProcess();
    //send a heartbeat through the channel        
  if ( isHeartbeatBackgroundEnabled() && channel !=null ) channel.heartbeat();
}
origin: org.apache.tomcat/tomcat-catalina-ha

/**
 * Execute a periodic task, such as reloading, etc. This method will be
 * invoked inside the classloading context of this container. Unexpected
 * throwables will be caught and logged.
 * @see org.apache.catalina.ha.deploy.FarmWarDeployer#backgroundProcess()
 * @see org.apache.catalina.tribes.group.GroupChannel#heartbeat()
 *
 */
@Override
public void backgroundProcess() {
  if (clusterDeployer != null) clusterDeployer.backgroundProcess();
  //send a heartbeat through the channel
  if ( isHeartbeatBackgroundEnabled() && channel !=null ) channel.heartbeat();
  // periodic event
  fireLifecycleEvent(Lifecycle.PERIODIC_EVENT, null);
}
origin: codefollower/Tomcat-Research

/**
 * Execute a periodic task, such as reloading, etc. This method will be
 * invoked inside the classloading context of this container. Unexpected
 * throwables will be caught and logged.
 * @see org.apache.catalina.ha.deploy.FarmWarDeployer#backgroundProcess()
 * @see org.apache.catalina.tribes.group.GroupChannel#heartbeat()
 * @see org.apache.catalina.tribes.group.GroupChannel.HeartbeatThread#run()
 *
 */
@Override
public void backgroundProcess() {
  if (clusterDeployer != null) clusterDeployer.backgroundProcess();
  //send a heartbeat through the channel
  if ( isHeartbeatBackgroundEnabled() && channel !=null ) channel.heartbeat();
  // periodic event
  fireLifecycleEvent(Lifecycle.PERIODIC_EVENT, null);
}
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.tcpSimpleTcpClusterisHeartbeatBackgroundEnabled

Javadoc

Return heartbeat enable flag (default false)

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
  • getManagerTemplate
  • 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

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Top 12 Jupyter Notebook extensions
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