congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ReplicationStatistics.removeStats
Code IndexAdd Tabnine to your IDE (free)

How to use
removeStats
method
in
org.jboss.web.tomcat.statistics.ReplicationStatistics

Best Java code snippets using org.jboss.web.tomcat.statistics.ReplicationStatistics.removeStats (Showing top 14 results out of 315)

origin: org.jboss.jbossas/jboss-as-tomcat

private void bruteForceCleanup(String realId, Exception ex)
{
 log_.warn("Standard expiration of session " + realId
    + " failed; switching to a brute " + "force cleanup. Problem is" + ex.getLocalizedMessage());
 try
 {
   proxy_.removeSessionLocal(realId, null);
 }
 catch (Exception e)
 {
   log_.error("processExpirationPassivation(): Caught exception "
      + "during brute force cleanup of unloaded session " + realId + " session will be removed from Manager "
      + "but may still exist in distributed cache", e);
 }
 finally
 {
   // Get rid of our refs even if distributed store fails
   unloadedSessions_.remove(realId);
   stats_.removeStats(realId);
 }
}
origin: org.mobicents.servlet.sip.containers/sip-servlets-tomcat-jboss4

stats_.removeStats(realId);
origin: org.mobicents.servlet.sip.containers/sip-servlets-tomcat-jboss4

stats_.removeStats(realId);
origin: org.mobicents.servlet.sip.containers/sip-servlets-tomcat-jboss4

stats_.removeStats(realId);
origin: org.jboss.jbossas/jboss-as-tomcat

stats_.removeStats(realId);
 stats_.removeStats(realId);
origin: org.mobicents.servlet.sip.containers/sip-servlets-tomcat-jboss4

/**
 * Removes the session from this Manager's collection of actively managed
 * sessions. Also removes the session from the distributed cache, both on
 * this server and on all other server to which this one replicates.
 */
public void remove(Session session) {
  ClusteredSession clusterSess = (ClusteredSession) session;
  synchronized (clusterSess) {
    String realId = clusterSess.getRealId();
    if (realId == null)
      return;
    if (log_.isDebugEnabled()) {
      log_.debug("Removing session from store with id: " + realId);
    }
    try {
      // Ignore any cache notifications that our own work generates
      ConvergedSessionReplicationContext.startCacheActivity();
      clusterSess.removeMyself();
    } finally {
      ConvergedSessionReplicationContext.finishCacheActivity();
      // We don't want to replicate this session at the end
      // of the request; the removal process took care of that
      ConvergedSessionReplicationContext.sessionExpired(clusterSess,
          realId, snapshotManager_);
      sessions_.remove(realId);
      stats_.removeStats(realId);
      activeCounter_--;
    }
  }
}
origin: org.jboss.jbossas/jboss-as-tomcat

stats_.removeStats(realId);
origin: org.mobicents.servlet.sip.containers/sip-servlets-tomcat-jboss4

stats_.removeStats(realId);
origin: org.jboss.jbossas/jboss-as-tomcat

stats_.removeStats(realId);
origin: org.mobicents.servlet.sip.containers/sip-servlets-tomcat-jboss4

/**
 * {@inheritDoc}
 */
public MobicentsSipSession removeSipSession(final MobicentsSipSessionKey key) {
  ClusteredSipSession clusterSess = (ClusteredSipSession) sipManagerDelegate.removeSipSession(key);
  if(clusterSess == null) {
    return null;
  }
  synchronized (clusterSess) {
    final String realId = clusterSess.getId();
    if (log_.isDebugEnabled()) {
      log_.debug("Removing session from store with id: " + realId);
    }
    try {
      // Ignore any cache notifications that our own work generates
      ConvergedSessionReplicationContext.startSipCacheActivity();
      clusterSess.removeMyself();
    } finally {
      ConvergedSessionReplicationContext.finishSipCacheActivity();
      // We don't want to replicate this session at the end
      // of the request; the removal process took care of that
      ConvergedSessionReplicationContext.sipSessionExpired(clusterSess,
          realId, snapshotManager_);
      stats_.removeStats(realId);
      activeCounter_--;
    }
  }
  return clusterSess;
}
origin: org.mobicents.servlet.sip.containers/sip-servlets-tomcat-jboss4

/**
 * {@inheritDoc}
 */
public MobicentsSipApplicationSession removeSipApplicationSession(
    final MobicentsSipApplicationSessionKey key) {
  ClusteredSipApplicationSession clusterSess = (ClusteredSipApplicationSession) sipManagerDelegate.removeSipApplicationSession(key);
  if(clusterSess == null) {
    return null;
  }
  synchronized (clusterSess) {
    final String realId = clusterSess.getId();
    if (log_.isDebugEnabled()) {
      log_.debug("Removing session from store with id: " + realId);
    }
    try {
      // Ignore any cache notifications that our own work generates
      ConvergedSessionReplicationContext.startSipCacheActivity();
      clusterSess.removeMyself();
    } finally {
      ConvergedSessionReplicationContext.finishSipCacheActivity();
      // We don't want to replicate this session at the end
      // of the request; the removal process took care of that
      ConvergedSessionReplicationContext.sipApplicationSessionExpired(clusterSess,
          realId, snapshotManager_);
      stats_.removeStats(realId);
      activeCounter_--;
    }
  }
  return clusterSess;
}
origin: org.jboss.jbossas/jboss-as-tomcat

stats_.removeStats(realId);
origin: org.mobicents.servlet.sip.containers/sip-servlets-tomcat-jboss4

stats_.removeStats(realId);
origin: org.mobicents.servlet.sip.containers/sip-servlets-tomcat-jboss4

stats_.removeStats(realId);
org.jboss.web.tomcat.statisticsReplicationStatisticsremoveStats

Popular methods of ReplicationStatistics

  • updateLoadStats
  • updatePassivationStats
  • updateReplicationStats
    Update the TimeStatistic for the given ctx. This does not synchronize on the TimeStatistic so the re
  • getStats
    Access the current collection of ctx invocation statistics
  • getTimeStatistic
  • resetStats
    Resets all current TimeStatistics.

Popular in Java

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • runOnUiThread (Activity)
  • getApplicationContext (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Top plugins for WebStorm
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