© 2002 BEA Systems, Inc.


com.bea.p13n.mbeans
Interface BehaviorTrackingMBean


public interface BehaviorTrackingMBean
extends ServiceConfigurationMBean, TrackingConstants

Configuration for Behavior Tracking


Fields inherited from class com.bea.p13n.tracking.TrackingConstants
DEFAULT_BUFFER_SIZE, DEFAULT_DATA_SOURCE_NAME, DEFAULT_FORCE_FLUSH_INTERVAL, DEFAULT_TIME_INTERVAL, MAX_BUFFER_SIZE, MAX_FORCE_FLUSH_INTERVAL, MAX_TIME_INTERVAL, MIN_BUFFER_SIZE, MIN_TIME_INTERVAL
 
Fields inherited from class weblogic.management.configuration.ConfigurationMBean
CACHING_STUB_SVUID
 
Method Summary
 java.lang.String getDataSourceJndiName()
          Get the data source name to use for persisting behavior tracking data.
 int getMaxBufferSize()
          Get maximum size of the event buffer, which hold events until the events are persisted to the database.
 java.lang.String[] getPersistedEventTypes()
          Returns the Event types to persist to the database.
 java.lang.String getPersistenceClassname()
          Get the class that is used for persistence of the messages.
 int getSweepInterval()
          Get the interval, in seconds, at which to check the buffers to see whether events in the buffer must be persisted.
 int getSweepMaxTime()
          Cet the time in seconds to wait before forcing a flush to the database This is the longest amount of time that an even will exist in any cache.
 void setDataSourceJndiName(java.lang.String name)
          Set the data source name to use for persisting behavior tracking data.
 void setMaxBufferSize(int maxSize)
          Set maximum size of the event buffer.
 void setPersistedEventTypes(java.lang.String[] events)
          Set the Event types to persist to the database.
 void setPersistenceClassname(java.lang.String name)
          Get the class that is used for persistence of the messages.
 void setSweepInterval(int sweepIntervalSecs)
          Set the interval, in seconds, at which to check the buffers to see whether events in the buffer must be persisted.
 void setSweepMaxTime(int maxTime)
          Set the time in seconds to wait before forcing a flush to the database This is the longest amount of time that an even will exist in any cache.
 
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean
addLinkMbeanAttribute, getAttributeStringValue, getNotes, getSetFields, getXml, getXmlConverter, isPersistenceEnabled, setNotes, setPersistenceEnabled
 
Methods inherited from interface weblogic.management.WebLogicMBean
getMBeanInfo, getName, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setName, setParent
 
Methods inherited from interface javax.management.DynamicMBean
getAttribute, getAttributes, invoke, setAttribute, setAttributes
 
Methods inherited from interface javax.management.MBeanRegistration
postDeregister, postRegister, preDeregister, preRegister
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 

Method Detail

getPersistedEventTypes

public java.lang.String[] getPersistedEventTypes()
Returns the Event types to persist to the database. Example event types are: AddToCartEvent, BuyEvent, etc.

Old Property: behaviorTracking.persistToDatabase

setPersistedEventTypes

public void setPersistedEventTypes(java.lang.String[] events)
Set the Event types to persist to the database.

Legal NULL: true

getMaxBufferSize

public int getMaxBufferSize()
Get maximum size of the event buffer, which hold events until the events are persisted to the database.

Default Value: DEFAULT_BUFFER_SIZE
Old Property: behaviorTracking.cache.maxCount

setMaxBufferSize

public void setMaxBufferSize(int maxSize)
Set maximum size of the event buffer. Setting this to 0 means all events will be persisted as they are received.

Legal Minimum Value: MIN_BUFFER_SIZE
Legal Maximum Value: MAX_BUFFER_SIZE

getSweepInterval

public int getSweepInterval()
Get the interval, in seconds, at which to check the buffers to see whether events in the buffer must be persisted. There are two cases that will trigger the persistence of the buffer: either the max buffer size (MaxBufferSize) has been reached, or the maximum time to wait in the buffer (SweepMaxTime) has been exceeded.

Default Value: DEFAULT_TIME_INTERVAL
Old Property: behaviorTracking.cache.checkIntervalSec

setSweepInterval

public void setSweepInterval(int sweepIntervalSecs)
Set the interval, in seconds, at which to check the buffers to see whether events in the buffer must be persisted. There are two cases that will trigger the persistence of the buffer: either the max buffer size (MaxBufferSize) has been reached, or the maximum time to wait in the buffer (SweepMaxTime) has been exceeded.

Legal Minimum Value: MIN_TIME_INTERVAL
Legal Maximum Value: MAX_TIME_INTERVAL

getSweepMaxTime

public int getSweepMaxTime()
Cet the time in seconds to wait before forcing a flush to the database This is the longest amount of time that an even will exist in any cache.

Default Value: DEFAULT_FORCE_FLUSH_INTERVAL
Old Property: behaviorTracking.cache.maxAgeSec

setSweepMaxTime

public void setSweepMaxTime(int maxTime)
Set the time in seconds to wait before forcing a flush to the database This is the longest amount of time that an even will exist in any cache.

Legal Minimum Value: MIN_TIME_INTERVAL
Legal Maximum Value: MAX_FORCE_FLUSH_INTERVAL

getDataSourceJndiName

public java.lang.String getDataSourceJndiName()
Get the data source name to use for persisting behavior tracking data. This is the actual JNDI name of the data source; not the name of the DataSource MBean.

Default Value: DEFAULT_DATA_SOURCE_JNDI_NAME
Old Property: behaviorTracking.database.connectionPool

setDataSourceJndiName

public void setDataSourceJndiName(java.lang.String name)
Set the data source name to use for persisting behavior tracking data. This is the actual JNDI name of the data source; not the name of the DataSource MBean.

Legal NULL: false

getPersistenceClassname

public java.lang.String getPersistenceClassname()
Get the class that is used for persistence of the messages. The class provided must be a subclass of com.bea.p13n.tracking.internal.persistence.AbstractDatabasePersister Use this option if you wish to override the default behavior of persisting behavior tracking events to a database. This will be the fully qualified classname of the persistence class.


setPersistenceClassname

public void setPersistenceClassname(java.lang.String name)
Get the class that is used for persistence of the messages. The class provided must be a subclass of com.bea.p13n.tracking.internal.persistence.AbstractDatabasePersister Use this option if you wish to override the default behavior of persisting behavior tracking events to a database. This must be the fully qualified classname of the persistence class.

Legal NULL: true

© 2002 BEA Systems, Inc.

Copyright © 2002 BEA Systems, Inc. All Rights Reserved