Package org.onosproject.net.behaviour
Class MirroringStatistics
- java.lang.Object
-
- org.onosproject.net.behaviour.MirroringStatistics
-
public final class MirroringStatistics extends java.lang.Object
Represents statistics associated to a mirroring.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
bytes()
Returns the transmitted bytes.boolean
equals(java.lang.Object obj)
int
hashCode()
static MirroringStatistics
mirroringStatistics(java.lang.String name, java.util.Map<java.lang.String,java.lang.Integer> statistics)
Creates a MirroringStatistics using the supplied information.MirroringName
name()
Returns the mirroring name string.long
packets()
Returns the transmitted packtes.java.lang.String
toString()
-
-
-
Method Detail
-
mirroringStatistics
public static MirroringStatistics mirroringStatistics(java.lang.String name, java.util.Map<java.lang.String,java.lang.Integer> statistics)
Creates a MirroringStatistics using the supplied information.- Parameters:
name
- the name of the mirroringstatistics
- the associated statistics- Returns:
- the MirroringStatistics object
-
name
public MirroringName name()
Returns the mirroring name string.- Returns:
- name string
-
bytes
public long bytes()
Returns the transmitted bytes.- Returns:
- the bytes
-
packets
public long packets()
Returns the transmitted packtes.- Returns:
- the packets
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-