org.jdiameter.api
Interface Statistic

All Superinterfaces:
Wrapper

public interface Statistic
extends Wrapper

This class is conntainer for statistics information. For example: Count Request/Answer messages

Version:
1.5.1 Final

Method Summary
 void enable(boolean value)
          Enable/Disable collecting statistics
 java.lang.String getDescription()
          Retrurn description of statistic
 java.lang.String getName()
          Return name of statistic
 java.util.Set<StatisticRecord> getRecords()
          Return counters of statistics
 boolean isEnable()
          Return true is statistic is collecting
 void reset()
          Reset all counter in statistic
 
Methods inherited from interface org.jdiameter.api.Wrapper
isWrapperFor, unwrap
 

Method Detail

getName

java.lang.String getName()
Return name of statistic

Returns:
name of statistic

getDescription

java.lang.String getDescription()
Retrurn description of statistic

Returns:
description of statistic

enable

void enable(boolean value)
Enable/Disable collecting statistics

Parameters:
value - true for enable statistic

isEnable

boolean isEnable()
Return true is statistic is collecting

Returns:
true is statistic is collecting

reset

void reset()
Reset all counter in statistic


getRecords

java.util.Set<StatisticRecord> getRecords()
Return counters of statistics

Returns:
counters of statistics


Copyright © 2010. All Rights Reserved.