Class Record
- java.lang.Object
-
- org.opennms.netmgt.telemetry.protocols.bmp.adapter.openbmp.proto.Record
-
- Direct Known Subclasses:
BaseAttribute
,Collector
,Peer
,Router
,Stat
,UnicastPrefix
public abstract class Record extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static String
boolAsInt(Boolean truthyFalsy)
protected abstract String[]
fields()
static String
formatTimestamp(java.time.Instant timestamp)
Type
getType()
static String
hash(String... values)
static String
hash(Transport.IpAddress address, long distinguisher, String routerHashId)
static String
nullSafeStr(Integer val)
static String
nullSafeStr(Long val)
static String
nullSafeStr(InetAddress addr)
void
serialize(StringBuffer buffer)
-
-
-
Constructor Detail
-
Record
protected Record(Type type)
-
-
Method Detail
-
formatTimestamp
public static String formatTimestamp(java.time.Instant timestamp)
-
hash
public static String hash(Transport.IpAddress address, long distinguisher, String routerHashId)
-
fields
protected abstract String[] fields()
-
getType
public final Type getType()
-
serialize
public final void serialize(StringBuffer buffer)
-
nullSafeStr
public static String nullSafeStr(InetAddress addr)
-
-