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 java.lang.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 java.util.concurrent.CompletableFuture<PingSummary>
execute()
PingRequestBuilder
withInetAddress(java.net.InetAddress inetAddress)
PingRequestBuilder
withLocation(java.lang.String location)
PingRequestBuilder
withNumberOfRequests(int numberOfRequests)
PingRequestBuilder
withPacketSize(int packetSize)
PingRequestBuilder
withProgressCallback(PingRequestBuilder.Callback callback)
PingRequestBuilder
withRetries(int retries)
PingRequestBuilder
withSystemId(java.lang.String systemId)
PingRequestBuilder
withTimeout(long timeout, java.util.concurrent.TimeUnit unit)
-
-
-
Constructor Detail
-
PingRequestBuilderImpl
public PingRequestBuilderImpl(RpcClient<PingRequestDTO,PingResponseDTO> client)
-
-
Method Detail
-
withTimeout
public PingRequestBuilder withTimeout(long timeout, java.util.concurrent.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(java.net.InetAddress inetAddress)
- Specified by:
withInetAddress
in interfacePingRequestBuilder
-
withLocation
public PingRequestBuilder withLocation(java.lang.String location)
- Specified by:
withLocation
in interfacePingRequestBuilder
-
withSystemId
public PingRequestBuilder withSystemId(java.lang.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 java.util.concurrent.CompletableFuture<PingSummary> execute()
- Specified by:
execute
in interfacePingRequestBuilder
-
-