public class StatisticsStatistics
extends java.lang.Object
StatisticsStatistics is responsible for writing calculated statistical information to an external text file.| Modifier and Type | Field and Description |
|---|---|
double |
first_quartile_of_inbound_payload_size_in_the_probe
First quartile of inbound payload size in the probe.
|
double |
first_quartile_of_outbound_payload_size_in_the_probe
First quartile of outbound payload size in the probe.
|
double |
first_quartile_of_payload_size_in_the_probe
First quartile of payload size in the probe.
|
long |
flow_id
Identifier of the flow.
|
java.lang.String |
local_port
Local transport layer port defined as either
fixed or dynamic. |
int |
maximum_of_inbound_payload_size_in_the_probe
Maximum of inbound payload size in the probe.
|
int |
maximum_of_outbound_payload_size_in_the_probe
Maximum of outbound payload size in the probe.
|
int |
maximum_of_payload_size_in_the_probe
Maximum of payload size in the probe.
|
double |
mean_of_inbound_payload_size_in_the_probe
Mean of inbound payload size in the probe.
|
double |
mean_of_outbound_payload_size_in_the_probe
Mean of outbound payload size in the probe.
|
double |
mean_of_payload_size_in_the_probe
Mean of payload size in the probe.
|
double |
median_of_inbound_payload_size_in_the_probe
Median of inbound payload size in the probe.
|
double |
median_of_outbound_payload_size_in_the_probe
Median of outbound payload size in the probe.
|
double |
median_of_payload_size_in_the_probe
Median of payload size in the probe.
|
int |
minimum_of_inbound_payload_size_in_the_probe
Minimum of inbound payload size in the probe.
|
int |
minimum_of_outbound_payload_size_in_the_probe
Minimum of outbound payload size in the probe.
|
int |
minimum_of_payload_size_in_the_probe
Minimum of payload size in the probe.
|
long |
number_of_ACK_flags_for_the_inbound_direction
Number of ACK flags for the inbound direction.
|
long |
number_of_ACK_flags_for_the_outbound_direction
Number of ACK flags for the outbound direction.
|
long |
number_of_inbound_payload_bytes_in_the_sample
Number of inbound payload bytes in the sample.
|
long |
number_of_outbound_payload_bytes_in_the_sample
Number of outbound payload bytes in the sample.
|
long |
number_of_PSH_flags_for_the_inbound_direction
Number of PSH flags for the inbound direction.
|
long |
number_of_PSH_flags_for_the_outbound_direction
Number of PSH flags for the outbound direction.
|
double |
proportion_of_inbound_packets_without_payload_to_inbound_packets
Proportion of inbound packets without payload to inbound packets.
|
double |
proportion_of_inbound_to_outbound_data_packets
Proportion of inbound to outbound data packets.
|
double |
proportion_of_inbound_to_outbound_payload_bytes_of_the_sample
Proportion of inbound to outbound payload bytes of the sample.
|
double |
proportion_of_outbound_packets_without_payload_to_outbound_packets
Proportion of outbound packets without payload to outbound packets.
|
double |
proportion_of_packets_without_payload_to_all_the_packets
Proportion of packets without payload to all the packets.
|
double |
ratio_of_all_big_data_packets_containing_1300B_payload_or_more_to_all_data_packets
Ratio of all big data packets containing 1300B payload or more to all data packets.
|
double |
ratio_of_all_small_data_packets_containing_50B_payload_or_less_to_all_data_packets
Ratio of all small data packets containing 50B payload or less to all data packets.
|
double |
ratio_of_big_inbound_data_packets_containing_1300B_payload_or_more_to_all_inbound_data_packets
Ratio of big inbound data packets containing 1300B payload or more to all inbound data packets.
|
double |
ratio_of_big_outbound_data_packets_containing_1300B_payload_or_more_to_all_outbound_data_packets
Ratio of big outbound data packets containing 1300B payload or more to all outbound data packets.
|
double |
ratio_of_small_inbound_data_packets_containing_50B_payload_or_less_to_all_inbound_data_packets
Ratio of small inbound data packets containing 50B payload or less to all inbound_data packets.
|
double |
ratio_of_small_outbound_data_packets_containing_50B_payload_or_less_to_all_outbound_data_packets
Ratio of small outbound data packets containing 50B payload or less to all outbound_data packets.
|
java.lang.String |
remote_port
Remote transport layer port defined as either
fixed or dynamic. |
double |
standard_deviation_of_inbound_payload_size_in_the_probe
Standard deviation of inbound payload size in the probe.
|
double |
standard_deviation_of_outbound_payload_size_in_the_probe
Standard deviation of outbound payload size in the probe.
|
double |
standard_deviation_of_payload_size_in_the_probe
Standard deviation of payload size in the probe.
|
double |
third_quartile_of_inbound_payload_size_in_the_probe
Third quartile of inbound payload size in the probe.
|
double |
third_quartile_of_outbound_payload_size_in_the_probe
Third quartile of outbound payload size in the probe.
|
double |
third_quartile_of_payload_size_in_the_probe
Third quartile of payload size in the probe.
|
long |
total_number_of_payload_bytes_in_the_sample
Total number of payload bytes in the sample.
|
java.lang.String |
traffic_class
Type of the traffic, like for example web, multimedia, audio, video, ssh, etc.
|
java.lang.String |
transport_protocol
Transport layer protocol.
|
private java.io.PrintWriter |
writer
Object used to write string values to an external file.
|
| Constructor and Description |
|---|
StatisticsStatistics(java.io.PrintWriter writer)
Constructs the object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Saves all the statistics to an external text file.
|
private double |
roundPrecision(double doubleValue,
int precision)
Rounds provided double value to the given precision.
|
public long total_number_of_payload_bytes_in_the_sample
public long number_of_inbound_payload_bytes_in_the_sample
public long number_of_outbound_payload_bytes_in_the_sample
public double proportion_of_inbound_to_outbound_data_packets
public double proportion_of_inbound_to_outbound_payload_bytes_of_the_sample
public double mean_of_payload_size_in_the_probe
public int minimum_of_payload_size_in_the_probe
public int maximum_of_payload_size_in_the_probe
public double first_quartile_of_payload_size_in_the_probe
public double median_of_payload_size_in_the_probe
public double third_quartile_of_payload_size_in_the_probe
public double standard_deviation_of_payload_size_in_the_probe
public double mean_of_inbound_payload_size_in_the_probe
public int minimum_of_inbound_payload_size_in_the_probe
public int maximum_of_inbound_payload_size_in_the_probe
public double first_quartile_of_inbound_payload_size_in_the_probe
public double median_of_inbound_payload_size_in_the_probe
public double third_quartile_of_inbound_payload_size_in_the_probe
public double standard_deviation_of_inbound_payload_size_in_the_probe
public double mean_of_outbound_payload_size_in_the_probe
public int minimum_of_outbound_payload_size_in_the_probe
public int maximum_of_outbound_payload_size_in_the_probe
public double first_quartile_of_outbound_payload_size_in_the_probe
public double median_of_outbound_payload_size_in_the_probe
public double third_quartile_of_outbound_payload_size_in_the_probe
public double standard_deviation_of_outbound_payload_size_in_the_probe
public double ratio_of_small_inbound_data_packets_containing_50B_payload_or_less_to_all_inbound_data_packets
public double ratio_of_small_outbound_data_packets_containing_50B_payload_or_less_to_all_outbound_data_packets
public double ratio_of_all_small_data_packets_containing_50B_payload_or_less_to_all_data_packets
public double ratio_of_big_inbound_data_packets_containing_1300B_payload_or_more_to_all_inbound_data_packets
public double ratio_of_big_outbound_data_packets_containing_1300B_payload_or_more_to_all_outbound_data_packets
public double ratio_of_all_big_data_packets_containing_1300B_payload_or_more_to_all_data_packets
public java.lang.String transport_protocol
public java.lang.String local_port
fixed or dynamic.public java.lang.String remote_port
fixed or dynamic.public long number_of_ACK_flags_for_the_inbound_direction
public long number_of_PSH_flags_for_the_inbound_direction
public long number_of_ACK_flags_for_the_outbound_direction
public long number_of_PSH_flags_for_the_outbound_direction
public double proportion_of_inbound_packets_without_payload_to_inbound_packets
public double proportion_of_outbound_packets_without_payload_to_outbound_packets
public double proportion_of_packets_without_payload_to_all_the_packets
public java.lang.String traffic_class
public long flow_id
private java.io.PrintWriter writer
public StatisticsStatistics(java.io.PrintWriter writer)
writer - object used to write string values to an external filepublic void commit()
private double roundPrecision(double doubleValue,
int precision)
doubleValue - value which will be roundedprecision - precision to which the value will be rounded