TrackingConstants Interface

com.bea.p13n.tracking
TrackingConstants Interface

public interface TrackingConstants

Encapsulates constants associated with behavior tracking. All classes in the tracking service should use these constants to avoid typos, conflicting names, etc.


All Known Subinterfaces

BehaviorTrackingMBean

Field Summary

public static final int
DEFAULT_BUFFER_SIZE
The default size of the events buffer.
public static final String
DEFAULT_DATA_SOURCE_NAME
The default connection pool name
public static final int
DEFAULT_FORCE_FLUSH_INTERVAL
Default maximum age of an event in the buffer is 120 seconds.
public static final int
DEFAULT_TIME_INTERVAL
The default time interval, in seconds, at which the events buffer will be checked to see if it needs to be persisted to the database.
public static final int
MAX_BUFFER_SIZE
The maximum size of the events buffer.
public static final int
MAX_FORCE_FLUSH_INTERVAL
Maximum allowable age of an event in the buffer, in seconds.
public static final int
MAX_TIME_INTERVAL
Maximum time, in seconds, to check to see if events in the buffer must be persisted to the database.
public static final int
MIN_BUFFER_SIZE
The minumum size of the events buffer.
public static final int
MIN_TIME_INTERVAL
Minimum time, in seconds, to check to see if events in the buffer must be persisted to the database.
 

Field Detail

DEFAULT_BUFFER_SIZE

public static final int DEFAULT_BUFFER_SIZE
The default size of the events buffer.


DEFAULT_DATA_SOURCE_NAME

public static final String DEFAULT_DATA_SOURCE_NAME
The default connection pool name


DEFAULT_FORCE_FLUSH_INTERVAL

public static final int DEFAULT_FORCE_FLUSH_INTERVAL
Default maximum age of an event in the buffer is 120 seconds. This means that events will not stay in the buffer for more than 120 seconds before being persisted to the database.


DEFAULT_TIME_INTERVAL

public static final int DEFAULT_TIME_INTERVAL
The default time interval, in seconds, at which the events buffer will be checked to see if it needs to be persisted to the database. There are two conditions that will trigger the persistence of the buffer: either the max buffer size has been reached, or the max age of an event in the buffer has been exceeded.


MAX_BUFFER_SIZE

public static final int MAX_BUFFER_SIZE
The maximum size of the events buffer.


MAX_FORCE_FLUSH_INTERVAL

public static final int MAX_FORCE_FLUSH_INTERVAL
Maximum allowable age of an event in the buffer, in seconds. Translates to 5 minutes.


MAX_TIME_INTERVAL

public static final int MAX_TIME_INTERVAL
Maximum time, in seconds, to check to see if events in the buffer must be persisted to the database. Translates to 5 minutes.


MIN_BUFFER_SIZE

public static final int MIN_BUFFER_SIZE
The minumum size of the events buffer. Using this value means the events will be persisted to the database as soon as they are received.


MIN_TIME_INTERVAL

public static final int MIN_TIME_INTERVAL
Minimum time, in seconds, to check to see if events in the buffer must be persisted to the database. Setting this value to any less than this might cause performance problems. There are two conditions that will trigger the persistence of the buffer: either the max buffer size has been reached, or the max age of an event in the buffer has been exceeded.