JSCAPE MFT Server

com.jscape.inet.mft.audit.reporting.metricses
Class MonthlyStatistics

java.lang.Object
  extended by com.jscape.inet.mft.audit.reporting.metricses.MonthlyStatistics
All Implemented Interfaces:
Metrics<MonthlyStatistics.Visitor>, com.jscape.util.Copyable<Metrics>, com.jscape.util.Visitable<MonthlyStatistics.Visitor>

public class MonthlyStatistics
extends java.lang.Object
implements Metrics<MonthlyStatistics.Visitor>

Average upload/download bytes for year months.

Author:
Roman Sheshunov

Nested Class Summary
static interface MonthlyStatistics.Visitor
           
 
Nested classes/interfaces inherited from interface com.jscape.util.Visitable
com.jscape.util.Visitable.VisitorBase, com.jscape.util.Visitable.VisitorException
 
Constructor Summary
MonthlyStatistics()
           
 
Method Summary
 java.lang.Object accept(MonthlyStatistics.Visitor visitor)
          Backwards dispatching entry point.
 MonthlyStatistics copy()
           
 double[] getAverageDownloads()
           
 double[] getAverageUploads()
           
 int getCounter()
           
 double[] getDownloads()
           
 int getInnerPeriods()
           
 double[] getUploads()
           
 void reset()
          Resets metrics data.
 void setCounter(int value)
           
 void setDownloads(double[] value)
           
 void setUploads(double[] value)
           
 java.lang.String toString()
           
 void update(Report report, com.jscape.inet.mft.LogRecord record)
          Updates metrics with log record.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MonthlyStatistics

public MonthlyStatistics()
Method Detail

update

public void update(Report report,
                   com.jscape.inet.mft.LogRecord record)
Description copied from interface: Metrics
Updates metrics with log record.

Specified by:
update in interface Metrics<MonthlyStatistics.Visitor>
Parameters:
report - report instance
record - log record

reset

public void reset()
Description copied from interface: Metrics
Resets metrics data.

Specified by:
reset in interface Metrics<MonthlyStatistics.Visitor>

copy

public MonthlyStatistics copy()
Specified by:
copy in interface com.jscape.util.Copyable<Metrics>

accept

public java.lang.Object accept(MonthlyStatistics.Visitor visitor)
                        throws com.jscape.util.Visitable.VisitorException
Description copied from interface: com.jscape.util.Visitable
Backwards dispatching entry point.

Specified by:
accept in interface com.jscape.util.Visitable<MonthlyStatistics.Visitor>
Parameters:
visitor - a visitor instance
Returns:
a visit result if any
Throws:
com.jscape.util.Visitable.VisitorException - if an error occurs

getInnerPeriods

public int getInnerPeriods()

getUploads

public double[] getUploads()

setUploads

public void setUploads(double[] value)

getDownloads

public double[] getDownloads()

setDownloads

public void setDownloads(double[] value)

getAverageUploads

public double[] getAverageUploads()

getAverageDownloads

public double[] getAverageDownloads()

getCounter

public int getCounter()

setCounter

public void setCounter(int value)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

JSCAPE MFT Server

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved