org.jdiameter.api
Interface Statistic


public interface Statistic

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

Version:
1.5.1 Final
Author:
erick.svenson@yahoo.com

Method Summary
 void enable(boolean value)
          Enable/Disable collecting statistics
 java.lang.String getDescription()
          Return description of statistic
 java.lang.String getName()
          Return name of statistic
 StatisticRecord[] getRecords()
          Return counters of statistics
 boolean isEnabled()
          Return true is statistic is collecting
 void reset()
          Reset all counter in statistic
 

Method Detail

getName

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

Returns:
name of statistic

getDescription

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

Returns:
description of statistic

enable

void enable(boolean value)
Enable/Disable collecting statistics

Parameters:
value - true for enable statistic

isEnabled

boolean isEnabled()
Return true is statistic is collecting

Returns:
true is statistic is collecting

reset

void reset()
Reset all counter in statistic


getRecords

StatisticRecord[] getRecords()
Return counters of statistics

Returns:
counters of statistics


Copyright © 2013. All Rights Reserved.