use of com.sequenceiq.node.health.client.CdpNodeStatusMonitorClient in project cloudbreak by hortonworks.
the class NodeStatusService method getSaltReport.
public RPCResponse<NodeStatusProto.SaltHealthReport> getSaltReport(Long stackId) {
Stack stack = stackService.getByIdWithListsInTransaction(stackId);
MDCBuilder.buildMdcContext(stack);
LOGGER.debug("Retrieving salt report from the hosts of stack: {}", stack.getResourceCrn());
try (CdpNodeStatusMonitorClient client = factory.getClient(stack, stack.getPrimaryGatewayInstance())) {
return client.saltReport();
} catch (CdpNodeStatusMonitorClientException e) {
throw new CloudbreakServiceException("Could not get salt report from stack.");
}
}
use of com.sequenceiq.node.health.client.CdpNodeStatusMonitorClient in project cloudbreak by hortonworks.
the class NodeStatusService method getServicesReport.
public RPCResponse<NodeStatusProto.NodeStatusReport> getServicesReport(Stack stack) {
MDCBuilder.buildMdcContext(stack);
LOGGER.debug("Retrieving services report from the hosts of stack: {}", stack.getResourceCrn());
try (CdpNodeStatusMonitorClient client = factory.getClient(stack, stack.getPrimaryGatewayInstance())) {
return client.nodeServicesReport();
} catch (CdpNodeStatusMonitorClientException e) {
throw new CloudbreakServiceException("Could not get services report from stack.");
}
}
Aggregations