JSCAPE MFT Server

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

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

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

Author:
Alex Usun

Nested Class Summary
static interface TopAttachmentsReceived.Visitor
           
 
Nested classes/interfaces inherited from interface com.jscape.util.Visitable
com.jscape.util.Visitable.VisitorBase, com.jscape.util.Visitable.VisitorException
 
Constructor Summary
TopAttachmentsReceived()
           
 
Method Summary
 java.lang.Object accept(TopAttachmentsReceived.Visitor visitor)
          Backwards dispatching entry point.
 TopAttachmentsReceived copy()
           
 boolean equals(java.lang.Object o)
           
 NamedEntry[] getEntries()
           
 long getFileCount(java.lang.String filename)
          Returns download count for the specified file.
 java.lang.String[] getFilenames()
          Returns filenames.
 void reset()
          Resets metrics data.
 void setEntries(NamedEntry[] 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
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TopAttachmentsReceived

public TopAttachmentsReceived()
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<TopAttachmentsReceived.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<TopAttachmentsReceived.Visitor>

copy

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

accept

public java.lang.Object accept(TopAttachmentsReceived.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<TopAttachmentsReceived.Visitor>
Parameters:
visitor - a visitor instance
Returns:
a visit result if any
Throws:
com.jscape.util.Visitable.VisitorException - if an error occurs

getEntries

public NamedEntry[] getEntries()

setEntries

public void setEntries(NamedEntry[] value)

getFilenames

public java.lang.String[] getFilenames()
Returns filenames.

Returns:
filenames

getFileCount

public long getFileCount(java.lang.String filename)
Returns download count for the specified file.

Parameters:
filename - target filename
Returns:
file download count

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

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

JSCAPE MFT Server

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