Package org.opennms.netmgt.icmp.proxy
Class PingRequestBuilderImpl
- java.lang.Object
-
- org.opennms.netmgt.icmp.proxy.PingRequestBuilderImpl
-
- All Implemented Interfaces:
PingRequestBuilder
public class PingRequestBuilderImpl extends Object implements PingRequestBuilder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opennms.netmgt.icmp.proxy.PingRequestBuilder
PingRequestBuilder.Callback
-
-
Constructor Summary
Constructors Constructor Description PingRequestBuilderImpl(RpcClient<PingRequestDTO,PingResponseDTO> client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<PingSummary>
execute()
PingRequestBuilder
withInetAddress(InetAddress inetAddress)
PingRequestBuilder
withLocation(String location)
PingRequestBuilder
withNumberOfRequests(int numberOfRequests)
PingRequestBuilder
withPacketSize(int packetSize)
PingRequestBuilder
withProgressCallback(PingRequestBuilder.Callback callback)
PingRequestBuilder
withRetries(int retries)
PingRequestBuilder
withSystemId(String systemId)
PingRequestBuilder
withTimeout(long timeout, TimeUnit unit)
-
-
-
Constructor Detail
-
PingRequestBuilderImpl
public PingRequestBuilderImpl(RpcClient<PingRequestDTO,PingResponseDTO> client)
-
-
Method Detail
-
withTimeout
public PingRequestBuilder withTimeout(long timeout, TimeUnit unit)
- Specified by:
withTimeout
in interfacePingRequestBuilder
-
withPacketSize
public PingRequestBuilder withPacketSize(int packetSize)
- Specified by:
withPacketSize
in interfacePingRequestBuilder
-
withRetries
public PingRequestBuilder withRetries(int retries)
- Specified by:
withRetries
in interfacePingRequestBuilder
-
withInetAddress
public PingRequestBuilder withInetAddress(InetAddress inetAddress)
- Specified by:
withInetAddress
in interfacePingRequestBuilder
-
withLocation
public PingRequestBuilder withLocation(String location)
- Specified by:
withLocation
in interfacePingRequestBuilder
-
withSystemId
public PingRequestBuilder withSystemId(String systemId)
- Specified by:
withSystemId
in interfacePingRequestBuilder
-
withNumberOfRequests
public PingRequestBuilder withNumberOfRequests(int numberOfRequests)
- Specified by:
withNumberOfRequests
in interfacePingRequestBuilder
-
withProgressCallback
public PingRequestBuilder withProgressCallback(PingRequestBuilder.Callback callback)
- Specified by:
withProgressCallback
in interfacePingRequestBuilder
-
execute
public CompletableFuture<PingSummary> execute()
- Specified by:
execute
in interfacePingRequestBuilder
-
-