public class CollectorClientRpcModule extends AbstractXmlRpcModule<CollectorRequestDTO,CollectorResponseDTO>
ServiceCollectors.| Modifier and Type | Field and Description | 
|---|---|
static String | 
RPC_MODULE_ID  | 
MINION_HEADERS_MODULE| Constructor and Description | 
|---|
CollectorClientRpcModule()  | 
| Modifier and Type | Method and Description | 
|---|---|
CollectorResponseDTO | 
createResponseWithException(Throwable ex)
Called when the  
RpcModule throws an exception while executing a request. | 
CompletableFuture<CollectorResponseDTO> | 
execute(CollectorRequestDTO request)  | 
String | 
getId()
Used to route the request/responses to the appropriate module. 
 | 
ServiceCollectorRegistry | 
getServiceCollectorRegistry()  | 
void | 
setExecutor(Executor executor)  | 
void | 
setServiceCollectorRegistry(ServiceCollectorRegistry serviceCollectorRegistry)  | 
marshalRequest, marshalResponse, unmarshalRequest, unmarshalResponsepublic static final String RPC_MODULE_ID
public String getId()
RpcModulepublic CompletableFuture<CollectorResponseDTO> execute(CollectorRequestDTO request)
public void setServiceCollectorRegistry(ServiceCollectorRegistry serviceCollectorRegistry)
public ServiceCollectorRegistry getServiceCollectorRegistry()
public void setExecutor(Executor executor)
public CollectorResponseDTO createResponseWithException(Throwable ex)
RpcModuleRpcModule throws an exception while executing a request.
 This function should return a new RpcResponse that stores a string-based representation
 of the exception that occurred and make this available via RpcResponse.getErrorMessage()
 once un-marshaled.ex - the exception that occurredRpcResponse that stores the exceptionCopyright © 2021. All rights reserved.