Package model
Class PingOptions
java.lang.Object
model.PingOptions
- All Implemented Interfaces:
MeasurementOption
Represents the Ping-specific options used when performing a Ping type of measurement. This class
implements the
MeasurementOption interface with parameters required for the Ping
queries.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class represents a builder for Dns Options. -
Constructor Summary
ConstructorsConstructorDescriptionPingOptions(PingOptions.PingOptionsBuilder pingOptionsBuilder) Constructor which allows creation ofPingOptionsusingPingOptions.PingOptionsBuilder. -
Method Summary
Modifier and TypeMethodDescriptiontoJson()Converts the measurement option to its JSON string representation.byte[]Converts the measurement option to a JSON byte array.
-
Constructor Details
-
PingOptions
Constructor which allows creation ofPingOptionsusingPingOptions.PingOptionsBuilder.- Parameters:
pingOptionsBuilder-PingOptions.PingOptionsBuilder
-
-
Method Details
-
toJson
Description copied from interface:MeasurementOptionConverts the measurement option to its JSON string representation.- Specified by:
toJsonin interfaceMeasurementOption- Returns:
- a JSON string representing the measurement option.
-
toJsonBytes
public byte[] toJsonBytes()Description copied from interface:MeasurementOptionConverts the measurement option to a JSON byte array.- Specified by:
toJsonBytesin interfaceMeasurementOption- Returns:
- a byte array containing the JSON representation of the measurement option.
-