Package org.opennms.nephron
Class Aggregate
- java.lang.Object
-
- org.opennms.nephron.Aggregate
-
@DefaultCoder(AggregateCoder.class) public class Aggregate extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAggregate.AggregateCoder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)longgetBytes()longgetBytesIn()longgetBytesOut()StringgetHostname()StringgetHostname2()inthashCode()booleanisCongestionEncountered()booleanisNonEcnCapableTransport()static Aggregatemerge(Aggregate a, Aggregate b)StringtoString()AggregatewithHostname(String hostname)Returns a copy of this aggregate withhostnameset to the given value andhostname2beingnull.
-
-
-
Method Detail
-
withHostname
public Aggregate withHostname(String hostname)
Returns a copy of this aggregate withhostnameset to the given value andhostname2beingnull.
-
getBytesIn
public long getBytesIn()
-
getBytesOut
public long getBytesOut()
-
getHostname
public String getHostname()
-
getHostname2
public String getHostname2()
-
getBytes
public long getBytes()
-
isCongestionEncountered
public boolean isCongestionEncountered()
-
isNonEcnCapableTransport
public boolean isNonEcnCapableTransport()
-
-