Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2005 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.bea.p13n.mbeans
Interface BehaviorTrackingMBean

All Superinterfaces:
  ConfigurationMBean, javax.management.DynamicMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, ServiceConfigurationMBean, TrackingConstants, WebLogicMBean

public interface BehaviorTrackingMBean
extends ServiceConfigurationMBean, TrackingConstants

Configuration for Behavior Tracking

Field Summary

Fields inherited from interface weblogic.management.configuration.ConfigurationMBean
`CACHING_STUB_SVUID, DEFAULT_EMPTY_BYTE_ARRAY`

Fields inherited from interface 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`

Method Summary
`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.
`String[]` | `getPersistedEventTypes()` Returns the Event types to persist to the database.
`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(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(String[] events)` Set the Event types to persist to the database.
`void` | `setPersistenceClassname(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
`freezeCurrentValue, getAttributeStringValue, getComments, getNotes, getSetFields, getXmlConverter, isDefaultedMBean, isPersistenceEnabled, preDeregister, registerConfigMBean, restoreDefaultValue, setComments, setDefaultedMBean, setNotes, setPersistenceEnabled, touch, unRegisterConfigMBean`

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, preRegister`

Methods inherited from interface javax.management.NotificationBroadcaster
`addNotificationListener, getNotificationInfo, removeNotificationListener`

Method Detail

### getDataSourceJndiName

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

  MBean Attribute Default Value:
    DEFAULT_DATA_SOURCE_NAME

### getMaxBufferSize

    public int getMaxBufferSize()

  Get maximum size of the event buffer, which hold events until the events are persisted to the database.

  MBean Attribute Default Value:
    DEFAULT_BUFFER_SIZE

### getPersistedEventTypes

    public String[] getPersistedEventTypes()

  Returns the Event types to persist to the database. Example event types are: AddToCartEvent, BuyEvent, etc.

### getPersistenceClassname

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

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

  MBean Attribute Default Value:
    DEFAULT_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.

  MBean Attribute Default Value:
    DEFAULT_FORCE_FLUSH_INTERVAL

### setDataSourceJndiName

    public void setDataSourceJndiName(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.

  MBean Attribute Legal Null:
    false

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

  MBean Attribute Legal Max:
    MAX_BUFFER_SIZE
  MBean Attribute Legal Min:
    MIN_BUFFER_SIZE

### setPersistedEventTypes

    public void setPersistedEventTypes(String[] events)

  Set the Event types to persist to the database.

  MBean Attribute Legal Null:
    true

### setPersistenceClassname

    public void setPersistenceClassname(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.

  MBean Attribute Legal Null:
    true

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

  MBean Attribute Legal Max:
    MAX_TIME_INTERVAL
  MBean Attribute Legal Min:
    MIN_TIME_INTERVAL

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

  MBean Attribute Legal Max:
    MAX_FORCE_FLUSH_INTERVAL
  MBean Attribute Legal Min:
    MIN_TIME_INTERVAL

Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2005 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005 BEA Systems, Inc. All Rights Reserved