Package org.opennms.netmgt.icmp.proxy
Class PingSweepRpcModule
- java.lang.Object
-
- org.opennms.core.rpc.xml.AbstractXmlRpcModule<PingSweepRequestDTO,PingSweepResponseDTO>
-
- org.opennms.netmgt.icmp.proxy.PingSweepRpcModule
-
- All Implemented Interfaces:
RpcClient<PingSweepRequestDTO,PingSweepResponseDTO>,RpcModule<PingSweepRequestDTO,PingSweepResponseDTO>
@Component public class PingSweepRpcModule extends AbstractXmlRpcModule<PingSweepRequestDTO,PingSweepResponseDTO>
-
-
Field Summary
Fields Modifier and Type Field Description static StringRPC_MODULE_ID-
Fields inherited from interface org.opennms.core.rpc.api.RpcModule
MINION_HEADERS_MODULE
-
-
Constructor Summary
Constructors Constructor Description PingSweepRpcModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PingSweepResponseDTOcreateResponseWithException(Throwable ex)Called when theRpcModulethrows an exception while executing a request.CompletableFuture<PingSweepResponseDTO>execute(PingSweepRequestDTO request)Iterable<IPPollAddress>getAddresses(List<IPPollRange> ranges)StringgetId()Used to route the request/responses to the appropriate module.voidsetPingerFactory(PingerFactory pingerFactory)-
Methods inherited from class org.opennms.core.rpc.xml.AbstractXmlRpcModule
marshalRequest, marshalResponse, unmarshalRequest, unmarshalResponse
-
-
-
-
Field Detail
-
RPC_MODULE_ID
public static final String RPC_MODULE_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
public CompletableFuture<PingSweepResponseDTO> execute(PingSweepRequestDTO request)
-
createResponseWithException
public PingSweepResponseDTO createResponseWithException(Throwable ex)
Description copied from interface:RpcModuleCalled when theRpcModulethrows an exception while executing a request. This function should return a newRpcResponsethat stores a string-based representation of the exception that occurred and make this available viaRpcResponse.getErrorMessage()once un-marshaled.- Parameters:
ex- the exception that occurred- Returns:
- a
RpcResponsethat stores the exception
-
getId
public String getId()
Description copied from interface:RpcModuleUsed to route the request/responses to the appropriate module. This ID should be unique for every RpcModule implementation.
-
setPingerFactory
public void setPingerFactory(PingerFactory pingerFactory)
-
getAddresses
public Iterable<IPPollAddress> getAddresses(List<IPPollRange> ranges)
-
-