sk.baka.webvm.analyzer
Class SamplerConfig

java.lang.Object
  extended by sk.baka.webvm.analyzer.SamplerConfig

public final class SamplerConfig
extends Object

Configures the sampler.

Author:
Martin Vysny

Constructor Summary
SamplerConfig(int historyLength, int historySampleDelayMs, int initialDelay)
          Creates new object.
 
Method Summary
 int getHistoryLength()
          A number of samples to keep in the history.
 int getHistorySampleDelayMs()
          Sample each x milliseconds
 int getInitialDelay()
          Sleep x milliseconds before sampling start.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SamplerConfig

public SamplerConfig(int historyLength,
                     int historySampleDelayMs,
                     int initialDelay)
Creates new object.

Parameters:
historyLength - a number of samples to keep in the history.
historySampleDelayMs - sample each x milliseconds
initialDelay - sleep x milliseconds before sampling start
Method Detail

getInitialDelay

public int getInitialDelay()
Sleep x milliseconds before sampling start.

Returns:

getHistoryLength

public int getHistoryLength()
A number of samples to keep in the history.

Returns:

getHistorySampleDelayMs

public int getHistorySampleDelayMs()
Sample each x milliseconds

Returns:


Copyright © 2010 Baka. All Rights Reserved.