Search in sources :

Example 1 with NodeHeartbeat

use of org.apache.nifi.cluster.coordination.heartbeat.NodeHeartbeat in project nifi by apache.

the class StandardNiFiServiceFacade method getNode.

private NodeDTO getNode(final NodeIdentifier nodeId) {
    final NodeConnectionStatus nodeStatus = clusterCoordinator.getConnectionStatus(nodeId);
    final List<NodeEvent> events = clusterCoordinator.getNodeEvents(nodeId);
    final Set<String> roles = getRoles(nodeId);
    final NodeHeartbeat heartbeat = heartbeatMonitor.getLatestHeartbeat(nodeId);
    return dtoFactory.createNodeDTO(nodeId, nodeStatus, heartbeat, events, roles);
}
Also used : NodeEvent(org.apache.nifi.cluster.event.NodeEvent) NodeHeartbeat(org.apache.nifi.cluster.coordination.heartbeat.NodeHeartbeat) NodeConnectionStatus(org.apache.nifi.cluster.coordination.node.NodeConnectionStatus)

Aggregations

NodeHeartbeat (org.apache.nifi.cluster.coordination.heartbeat.NodeHeartbeat)1 NodeConnectionStatus (org.apache.nifi.cluster.coordination.node.NodeConnectionStatus)1 NodeEvent (org.apache.nifi.cluster.event.NodeEvent)1