Package org.drools.management.KieSessionMonitoringImpl.AgendaStats

Examples of org.drools.management.KieSessionMonitoringImpl.AgendaStats.AgendaStatsData


   
    /* (non-Javadoc)
     * @see org.drools.management.KnowledgeSessionMonitoringMBean#getStatsForRule(java.lang.String)
     */
    public String getStatsForRule( String ruleName ) {
        AgendaStatsData data = this.agendaStats.getRuleStats( ruleName );
        String result = data == null ? "matchesCreated=0 matchesCancelled=0 matchesFired=0 firingTime=0ms" : data.toString();
        return result;
    }
View Full Code Here


        }
       
        public void activationCancelled(ActivationCancelledEvent event,
                                        WorkingMemory workingMemory) {
            this.consolidated.matchesCancelled.incrementAndGet();
            AgendaStatsData data = getRuleStatsInstance( event.getActivation().getRule().getName() );
            data.matchesCancelled.incrementAndGet();
        }
View Full Code Here

        }

        public void activationCreated(ActivationCreatedEvent event,
                                      WorkingMemory workingMemory) {
            this.consolidated.matchesCreated.incrementAndGet();
            AgendaStatsData data = getRuleStatsInstance( event.getActivation().getRule().getName() );
            data.matchesCreated.incrementAndGet();
        }
View Full Code Here

            data.matchesCreated.incrementAndGet();
        }

        public void afterActivationFired(AfterActivationFiredEvent event,
                                         WorkingMemory workingMemory) {
            AgendaStatsData data = getRuleStatsInstance( event.getActivation().getRule().getName() );
            this.consolidated.stopFireClock();
            data.stopFireClock();
            this.consolidated.matchesFired.incrementAndGet();
            data.matchesFired.incrementAndGet();
        }
View Full Code Here

            // no stats gathered for now
        }

        public void beforeActivationFired(BeforeActivationFiredEvent event,
                                          WorkingMemory workingMemory) {
            AgendaStatsData data = getRuleStatsInstance( event.getActivation().getRule().getName() );
            this.consolidated.startFireClock();
            data.startFireClock();
        }
View Full Code Here

            this.consolidated.startFireClock();
            data.startFireClock();
        }
       
        private AgendaStatsData getRuleStatsInstance(String ruleName) {
            AgendaStatsData data = this.ruleStats.get( ruleName );
            if( data == null ) {
                data = new AgendaStatsData();
                this.ruleStats.put( ruleName, data );
            }
            return data;
        }
View Full Code Here

TOP

Related Classes of org.drools.management.KieSessionMonitoringImpl.AgendaStats.AgendaStatsData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.