Class CollectorClientRpcModule
- java.lang.Object
- 
- org.opennms.core.rpc.xml.AbstractXmlRpcModule<CollectorRequestDTO,CollectorResponseDTO>
- 
- org.opennms.netmgt.collection.client.rpc.CollectorClientRpcModule
 
 
- 
- All Implemented Interfaces:
- RpcClient<CollectorRequestDTO,CollectorResponseDTO>,- RpcModule<CollectorRequestDTO,CollectorResponseDTO>
 
 public class CollectorClientRpcModule extends AbstractXmlRpcModule<CollectorRequestDTO,CollectorResponseDTO> Used to perform collections viaServiceCollectors.- Author:
- jwhite
 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringRPC_MODULE_ID- 
Fields inherited from interface org.opennms.core.rpc.api.RpcModuleMINION_HEADERS_MODULE
 
- 
 - 
Constructor SummaryConstructors Constructor Description CollectorClientRpcModule()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectorResponseDTOcreateResponseWithException(java.lang.Throwable ex)Called when theRpcModulethrows an exception while executing a request.java.util.concurrent.CompletableFuture<CollectorResponseDTO>execute(CollectorRequestDTO request)java.lang.StringgetId()Used to route the request/responses to the appropriate module.ServiceCollectorRegistrygetServiceCollectorRegistry()voidsetExecutor(java.util.concurrent.Executor executor)voidsetServiceCollectorRegistry(ServiceCollectorRegistry serviceCollectorRegistry)- 
Methods inherited from class org.opennms.core.rpc.xml.AbstractXmlRpcModulemarshalRequest, marshalResponse, unmarshalRequest, unmarshalResponse
 
- 
 
- 
- 
- 
Field Detail- 
RPC_MODULE_IDpublic static final java.lang.String RPC_MODULE_ID - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getIdpublic java.lang.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.
 - 
executepublic java.util.concurrent.CompletableFuture<CollectorResponseDTO> execute(CollectorRequestDTO request) 
 - 
setServiceCollectorRegistrypublic void setServiceCollectorRegistry(ServiceCollectorRegistry serviceCollectorRegistry) 
 - 
getServiceCollectorRegistrypublic ServiceCollectorRegistry getServiceCollectorRegistry() 
 - 
setExecutorpublic void setExecutor(java.util.concurrent.Executor executor) 
 - 
createResponseWithExceptionpublic CollectorResponseDTO createResponseWithException(java.lang.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
 
 
- 
 
-