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

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

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

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.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

/** 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;
}
org.jboss.web.tomcat.statisticsReplicationStatisticsgetTimeStatistic

Popular methods of ReplicationStatistics

  • 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
  • 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 Sublime Text 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