Class SnmpFlowRecord
java.lang.Object
ru.bitel.bgbilling.kernel.network.flow.Data
ru.bitel.bgbilling.kernel.network.flow.SnmpFlowRecord
- Direct Known Subclasses:
SnmpFlowRecord.SnmpFlowInput
,SnmpFlowRecord.SnmpFlowOutput
Формат flow для сохранения SNMP счётчиков по интерфейсам.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected ByteBuffer
static boolean
Некоторые железки периодически присылают неверный счетчик.protected final Map<Integer,
SnmpFlowRecord> static final int
protected int
protected long
protected int
protected int
protected long
protected long
protected long
Время в сотых (!)Fields inherited from class ru.bitel.bgbilling.kernel.network.flow.Data
diffServ, dstAddress, dstPort, first, inputInterface, ipv4DstAddress, ipv4SrcAddress, ipv6DstAddress, ipv6SrcAddress, last, milliseconds, nextHop, octets, outputInterface, packets, protocol, srcAddress, srcPort
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fillData
(ByteBuffer byteBuffer) getData()
long
int
toString()
Methods inherited from class ru.bitel.bgbilling.kernel.network.flow.Data
copy, getDiffServ, getDstAddress, getDstIpAddress, getDstPort, getFirst, getInputInterface, getLast, getNextHop, getOctets, getOutputInterface, getPackets, getProtocol, getSrcAddress, getSrcIpAddress, getSrcPort
-
Field Details
-
RECORD_SIZE
public static final int RECORD_SIZE- See Also:
-
lastSnmp
-
data
-
FIX_OVERFLOW
public static volatile boolean FIX_OVERFLOWНекоторые железки периодически присылают неверный счетчик. -
snmpInterface
protected int snmpInterface -
snmpInputOctets
protected long snmpInputOctets -
snmpOutputOctets
protected long snmpOutputOctets -
snmpSysUptime
protected long snmpSysUptimeВремя в сотых (!) долях секунды с последнего рестарта железки -
snmpAdminStatus
protected int snmpAdminStatus -
snmpOperStatus
protected int snmpOperStatus -
snmpStatusLastChange
protected long snmpStatusLastChange
-
-
Constructor Details
-
SnmpFlowRecord
-
-
Method Details
-
getMilliseconds
public long getMilliseconds()- Overrides:
getMilliseconds
in classData
-
snmpGetInteface
public int snmpGetInteface() -
fillData
-
getData
-
toString
-