org.apache.synapse.aspects.statistics
Class StatisticsRecord

java.lang.Object
  extended by org.apache.synapse.aspects.statistics.StatisticsRecord

public class StatisticsRecord
extends Object

Holds a record for statistics for current message


Constructor Summary
StatisticsRecord(String id, String clientIP, String clientHost)
           
 
Method Summary
 void clearLogs()
           
 void collect(StatisticsLog log)
          Collecting statistics for a particular component
 Iterator<String> getAllLogIds(ComponentType componentType)
          Get all log ids related with a given component
 List<StatisticsLog> getAllStatisticsLogs()
          Gets all the StatisticsLogs
 String getClientHost()
           
 String getClientIP()
           
 String getId()
           
 ComponentType getOwner()
           
 boolean isEndReported()
           
 void setEndReported(boolean endReported)
           
 void setOwner(ComponentType owner)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatisticsRecord

public StatisticsRecord(String id,
                        String clientIP,
                        String clientHost)
Method Detail

getId

public String getId()

getClientIP

public String getClientIP()

getClientHost

public String getClientHost()

collect

public void collect(StatisticsLog log)
Collecting statistics for a particular component

Parameters:
log - StatisticsLog

getAllStatisticsLogs

public List<StatisticsLog> getAllStatisticsLogs()
Gets all the StatisticsLogs

Returns:
A Iterator for all StatisticsLogs

getAllLogIds

public Iterator<String> getAllLogIds(ComponentType componentType)
Get all log ids related with a given component

Parameters:
componentType - The component that belong statistics
Returns:
A List of Log ids

clearLogs

public void clearLogs()

getOwner

public ComponentType getOwner()

setOwner

public void setOwner(ComponentType owner)

isEndReported

public boolean isEndReported()

setEndReported

public void setEndReported(boolean endReported)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.