org.jdiameter.common.api.statistic
Interface IStatisticRecord


public interface IStatisticRecord

This interface describe extends methods of base class


Nested Class Summary
static interface IStatisticRecord.DoubleValueHolder
           
static interface IStatisticRecord.IntegerValueHolder
           
static interface IStatisticRecord.LongValueHolder
           
static interface IStatisticRecord.ValueHolder
          ValueHolder for external statistics
 
Method Summary
 void dec()
          Decrement counter
 void enable(boolean e)
          Enable/Disable counter
 IStatisticRecord[] getChilds()
          Return childs counters
 java.lang.String getDescription()
          Retrurn description of counter
 java.lang.String getName()
          Return name of counter
 int getType()
          Return code of counter
 double getValueAsDouble()
          Return value of counter as double
 int getValueAsInt()
          Return value of counter as integer
 long getValueAsLong()
          Return value of counter as long
 void inc()
          Increment counter
 void inc(long value)
          Increment counter
 void reset()
          Reset counter and all child counters
 void setDoubleValue(double value)
          Set value of statistic
 void setLongValue(long value)
          Set value of statistic
 

Method Detail

inc

void inc()
Increment counter


inc

void inc(long value)
Increment counter


dec

void dec()
Decrement counter


setLongValue

void setLongValue(long value)
Set value of statistic

Parameters:
value - new value of record

setDoubleValue

void setDoubleValue(double value)
Set value of statistic

Parameters:
value - new value of record

enable

void enable(boolean e)
Enable/Disable counter

Parameters:
e - on/off parameter

getName

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

Returns:
name of counter

getDescription

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

Returns:
description of counter

getValueAsInt

int getValueAsInt()
Return value of counter as integer

Returns:
value of counter

getValueAsDouble

double getValueAsDouble()
Return value of counter as double

Returns:
value of counter

getValueAsLong

long getValueAsLong()
Return value of counter as long

Returns:
value of counter

getType

int getType()
Return code of counter

Returns:
code of counter

getChilds

IStatisticRecord[] getChilds()
Return childs counters

Returns:
array of childs countres

reset

void reset()
Reset counter and all child counters



Copyright © 2010. All Rights Reserved.