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

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

Best Java code snippets using org.jboss.web.tomcat.statistics.ReplicationStatistics (Showing top 20 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.jboss.jbossas/jboss-as-tomcat

Map<String, ReplicationStatistics.TimeStatistic> stats = stats_.getStats();
ReplicationStatistics.TimeStatistic stat = 
  (ReplicationStatistics.TimeStatistic) stats.get(sessionId);
origin: org.jboss.jbossas/jboss-as-tomcat

public void updatePassivationStats(String ctx, long elapsed)
{
 TimeStatistic stat = getTimeStatistic(ctx);
 stat.totalPassivationTime += elapsed;
 if( stat.minPassivationTime > elapsed )
   stat.minPassivationTime = elapsed;
 if( stat.maxPassivationTime < elapsed )
   stat.maxPassivationTime = elapsed;
}
origin: org.mobicents.servlet.sip.containers/sip-servlets-tomcat-jboss4

public boolean storeSession(Session baseSession) {
  boolean stored = false;
  if (baseSession != null && started_) {
    ClusteredSession session = (ClusteredSession) baseSession;
    synchronized (session) {
      if (logger.isDebugEnabled()) {
        log_.debug("check to see if needs to store and replicate "
            + "session with id " + session.getIdInternal());
      }
      if (session.isValid()
          && (session.isSessionDirty() || session
              .getExceedsMaxUnreplicatedInterval())) {
        String realId = session.getRealId();
        // Notify all session attributes that they get serialized
        // (SRV 7.7.2)
        long begin = System.currentTimeMillis();
        session.passivate();
        long elapsed = System.currentTimeMillis() - begin;
        stats_.updatePassivationStats(realId, elapsed);
        // Do the actual replication
        begin = System.currentTimeMillis();
        processSessionRepl(session);
        elapsed = System.currentTimeMillis() - begin;
        stored = true;
        stats_.updateReplicationStats(realId, elapsed);
      }
    }
  }
  return stored;
}
origin: org.jboss.jbossas/jboss-as-tomcat

stats_.updateLoadStats(realId, elapsed);
origin: org.jboss.jbossas/jboss-as-tomcat

/**
* {@inheritDoc}
*/
public void resetStats()
{
 stats_.resetStats();
 maxActiveCounter_.set(localActiveCounter_.get());
 rejectedCounter_.set(0);
 createdCounter_.set(0);
 expiredCounter_.set(0);
 processingTime_.set(0);
 maxAliveTime.set(0);
 averageAliveTime.set(0);
 duplicates_.set(0);
 timeSinceLastReset_ = System.currentTimeMillis();
}
origin: org.mobicents.servlet.sip.containers/sip-servlets-tomcat-jboss4

session.passivate();
long elapsed = System.currentTimeMillis() - begin;
stats_.updatePassivationStats(realId, elapsed);
elapsed = System.currentTimeMillis() - begin;
stored = true;
stats_.updateReplicationStats(realId, elapsed);
origin: org.mobicents.servlet.sip.containers/sip-servlets-tomcat-jboss4

  add(session, false); // don't replicate
long elapsed = System.currentTimeMillis() - begin;
stats_.updateLoadStats(realId, elapsed);
origin: org.jboss.jbossas/jboss-as-tomcat

session.notifyWillPassivate(ClusteredSessionNotificationCause.REPLICATION);
long elapsed = System.currentTimeMillis() - begin;
stats_.updatePassivationStats(realId, elapsed);
elapsed = System.currentTimeMillis() - begin;
stored = true;
stats_.updateReplicationStats(realId, elapsed);
origin: org.mobicents.servlet.sip.containers/sip-servlets-tomcat-jboss4

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

  session.initAfterLoad(this);			
long elapsed = System.currentTimeMillis() - begin;
stats_.updateLoadStats(key.toString(), elapsed);
origin: org.jboss.jbossas/jboss-as-tomcat

public void updateLoadStats(String ctx, long elapsed)
{
 TimeStatistic stat = getTimeStatistic(ctx);
 stat.loadCount ++;
 stat.totalLoadlTime += elapsed;
 if( stat.minLoadTime > elapsed )
   stat.minLoadTime = elapsed;
 if( stat.maxLoadTime < elapsed )
   stat.maxLoadTime = elapsed;
}
origin: org.jboss.jbossas/jboss-as-tomcat

Map<String, ReplicationStatistics.TimeStatistic> copy = new HashMap<String, ReplicationStatistics.TimeStatistic>(stats_.getStats());
for (Map.Entry<String, ReplicationStatistics.TimeStatistic> entry : copy.entrySet())
origin: org.mobicents.servlet.sip.containers/sip-servlets-tomcat-jboss4

session.passivate();
long elapsed = System.currentTimeMillis() - begin;
stats_.updatePassivationStats(realId, elapsed);
elapsed = System.currentTimeMillis() - begin;
stored = true;
stats_.updateReplicationStats(realId, elapsed);
origin: org.mobicents.servlet.sip.containers/sip-servlets-tomcat-jboss4

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

  session.initAfterLoad(this);			
long elapsed = System.currentTimeMillis() - begin;
stats_.updateLoadStats(key.toString(), elapsed);
origin: org.jboss.jbossas/jboss-as-tomcat

/** Update the TimeStatistic for the given ctx. This does not synchronize
* on the TimeStatistic so the results are an approximate values.
*
* @param ctx the method to update the statistics for.
* @param elapsed the elapsed time in milliseconds for the invocation.
*/
public void updateReplicationStats(String ctx, long elapsed)
{
 TimeStatistic stat = getTimeStatistic(ctx);
 stat.replicationCount ++;
 stat.totalReplicationlTime += elapsed;
 if( stat.minReplicationTime > elapsed )
   stat.minReplicationTime = elapsed;
 if( stat.maxReplicationTime < elapsed )
   stat.maxReplicationTime = elapsed;
}
origin: org.jboss.jbossas/jboss-as-tomcat

tmp.append("<th>totalLoadTime</th>");
Map<String, ReplicationStatistics.TimeStatistic> copy = new HashMap<String, ReplicationStatistics.TimeStatistic>(stats_.getStats());
for (Map.Entry<String, ReplicationStatistics.TimeStatistic> entry : copy.entrySet())
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);
org.jboss.web.tomcat.statisticsReplicationStatistics

Javadoc

A session replication statistics collection class.

Most used methods

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

  • Making http post requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (ScheduledExecutorService)
  • notifyDataSetChanged (ArrayAdapter)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Path (java.nio.file)
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • 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