Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.drools.management
Interface KnowledgeSessionMonitoringMBean

    public interface KnowledgeSessionMonitoringMBean

An MBean interface for Knowledge Session monitoring

Method Summary
`double` | `getAverageFiringTime()` Returns the average firing time in milliseconds for rules in this session since last reset.
`String` | `getKnowledgeBaseId()` Returns the associated knowledge base ID
`int` | `getKnowledgeSessionId()` Returns the associated knowledge session ID
`Date` | `getLastReset()` Returns the timestamp of the last stats reset
`ObjectName` | `getName()` Returns this MBean name
`Map<String,String>` | `getStatsByProcess()`
`Map<Long,String>` | `getStatsByProcessInstance()`
`Map<String,String>` | `getStatsByRule()`
`String` | `getStatsForProcess(String processId)`
`String` | `getStatsForProcessInstance(long processInstanceId)`
`String` | `getStatsForRule(String ruleName)` Returns a formatted String with statistics for a single rule in this session, like number of activations created, cancelled and fired as well as firing time.
`long` | `getTotalActivationsCancelled()` Returns the total number of activations cancelled in this session since last reset.
`long` | `getTotalActivationsCreated()` Returns the total number of activations created in this session since last reset.
`long` | `getTotalActivationsFired()` Returns the total number of activations fired in this session since last reset.
`long` | `getTotalFactCount()` Returns the total fact count current loaded into this session
`long` | `getTotalFiringTime()` Returns the total milliseconds spent firing rules in this session since last reset.
`long` | `getTotalProcessInstancesCompleted()`
`long` | `getTotalProcessInstancesStarted()`
`void` | `reset()` Resets all stats

Method Detail

### reset

    void reset()

  Resets all stats

### getName

    ObjectName getName()

  Returns this MBean name

  Returns:

### getKnowledgeBaseId

    String getKnowledgeBaseId()

  Returns the associated knowledge base ID

  Returns:

### getKnowledgeSessionId

    int getKnowledgeSessionId()

  Returns the associated knowledge session ID

  Returns:

### getTotalFactCount

    long getTotalFactCount()

  Returns the total fact count current loaded into this session

  Returns:

### getTotalActivationsFired

    long getTotalActivationsFired()

  Returns the total number of activations fired in this session since last reset.

  Returns:

### getTotalActivationsCancelled

    long getTotalActivationsCancelled()

  Returns the total number of activations cancelled in this session since last reset.

  Returns:

### getTotalActivationsCreated

    long getTotalActivationsCreated()

  Returns the total number of activations created in this session since last reset.

  Returns:

### getTotalFiringTime

    long getTotalFiringTime()

  Returns the total milliseconds spent firing rules in this session since last reset.

  Returns:

### getAverageFiringTime

    double getAverageFiringTime()

  Returns the average firing time in milliseconds for rules in this session since last reset.

  Returns:

### getStatsForRule

    String getStatsForRule(String ruleName)

  Returns a formatted String with statistics for a single rule in this session, like number of activations created, cancelled and fired as well as firing time.

  Parameters:
    `ruleName` - the name of the rule for which statistics are requested.
  Returns:

### getLastReset

    Date getLastReset()

  Returns the timestamp of the last stats reset

  Returns:

### getStatsByRule

    Map<String,String> getStatsByRule()

### getTotalProcessInstancesStarted

    long getTotalProcessInstancesStarted()

### getTotalProcessInstancesCompleted

    long getTotalProcessInstancesCompleted()

### getStatsForProcess

    String getStatsForProcess(String processId)

### getStatsByProcess

    Map<String,String> getStatsByProcess()

### getStatsForProcessInstance

    String getStatsForProcessInstance(long processInstanceId)

### getStatsByProcessInstance

    Map<Long,String> getStatsByProcessInstance()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.