public static ZeroBasedCounter64 getDefaultInstance(String defaultValue) { return new ZeroBasedCounter64(new BigInteger(defaultValue)); }
private ArrayNode getStatisticByTimestampObjectNode(List<StatisticByTimestamp> serviceStatistics) { if (serviceStatistics == null) { return null; } ArrayNode statisticsByTimeArray = mapper.createArrayNode(); for (StatisticByTimestamp statByTimestamp : serviceStatistics){ ObjectNode statisticByTimeNode = mapper.createObjectNode(); ObjectNode serviceStatisticNode = mapper.createObjectNode(); serviceStatisticNode.put(_BYTES_IN, statByTimestamp.getServiceStatistic().getBytesIn() .getValue().longValue()); serviceStatisticNode.put(_BYTES_OUT, statByTimestamp.getServiceStatistic().getBytesOut() .getValue().longValue()); serviceStatisticNode.put(_PACKETS_IN, statByTimestamp.getServiceStatistic().getPacketsIn() .getValue().longValue()); serviceStatisticNode.put(_PACKETS_OUT, statByTimestamp.getServiceStatistic().getPacketsOut() .getValue().longValue()); statisticByTimeNode.put(_TIMESTAMP, statByTimestamp.getTimestamp().longValue()); statisticByTimeNode.put(_SERVICE_STATISTICS, serviceStatisticNode); statisticsByTimeArray.add(statisticByTimeNode); } return statisticsByTimeArray; }
portBandwidthUtilizationNode.put(_PORT_ID, portBandwidthUtilization.getPortId()); portBandwidthUtilizationNode.put(_RX_PACKET, portBandwidthUtilization.getRxPacket().getValue().intValue()); portBandwidthUtilizationNode.put(_TX_PACKET, portBandwidthUtilization.getTxPacket().getValue().intValue()); portBandwidthUtilizationNode.put(_RX_BYTES, portBandwidthUtilization.getRxBytes().getValue().intValue()); portBandwidthUtilizationNode.put(_TX_BYTES, portBandwidthUtilization.getTxBytes().getValue().intValue()); portBandwidthUtilizationNode.put(_RX_BYTES_RATE, portBandwidthUtilization.getRxBytesRate()); portBandwidthUtilizationNode.put(_TX_BYTES_RATE, portBandwidthUtilization.getTxBytesRate());
public static ZeroBasedCounter64 getDefaultInstance(String defaultValue) { return new ZeroBasedCounter64(new BigInteger(defaultValue)); }
public static ZeroBasedCounter64 getDefaultInstance(String defaultValue) { return new ZeroBasedCounter64(new BigInteger(defaultValue)); }
public static ZeroBasedCounter64 getDefaultInstance(String defaultValue) { return new ZeroBasedCounter64(new BigInteger(defaultValue)); }