Class TopAttachmentsSent
- java.lang.Object
-
- com.jscape.inet.mft.audit.reporting.metricses.TopAttachmentsSent
-
- All Implemented Interfaces:
Metrics<TopAttachmentsSent.Visitor>,com.jscape.util.Copyable<Metrics>,com.jscape.util.Visitable<TopAttachmentsSent.Visitor>
public class TopAttachmentsSent extends java.lang.Object implements Metrics<TopAttachmentsSent.Visitor>
- Author:
- Alex Usun
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTopAttachmentsSent.Visitor
-
Constructor Summary
Constructors Constructor Description TopAttachmentsSent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectaccept(TopAttachmentsSent.Visitor visitor)Backwards dispatching entry point.TopAttachmentsSentcopy()booleanequals(java.lang.Object o)NamedEntry[]getEntries()longgetFileCount(java.lang.String filename)Returns download count for the specified file.java.lang.String[]getFilenames()Returns filenames.voidreset()Resets metrics data.voidsetEntries(NamedEntry[] value)java.lang.StringtoString()voidupdate(Report report, com.jscape.inet.mft.LogRecord record)Updates metrics with log record.
-
-
-
Method Detail
-
update
public void update(Report report, com.jscape.inet.mft.LogRecord record)
Description copied from interface:MetricsUpdates metrics with log record.- Specified by:
updatein interfaceMetrics<TopAttachmentsSent.Visitor>- Parameters:
report- report instancerecord- log record
-
reset
public void reset()
Description copied from interface:MetricsResets metrics data.- Specified by:
resetin interfaceMetrics<TopAttachmentsSent.Visitor>
-
copy
public TopAttachmentsSent copy()
- Specified by:
copyin interfacecom.jscape.util.Copyable<Metrics>
-
accept
public java.lang.Object accept(TopAttachmentsSent.Visitor visitor) throws com.jscape.util.Visitable.VisitorException
Description copied from interface:com.jscape.util.VisitableBackwards dispatching entry point.- Specified by:
acceptin interfacecom.jscape.util.Visitable<TopAttachmentsSent.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:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-