public interface HttpClusterManager extends ClusterManager
Modifier and Type | Method and Description |
---|---|
NodeResponse |
applyRequest(String method,
URI uri,
Map<String,List<String>> parameters,
Map<String,String> headers)
Federates the HTTP request to all connected nodes in the cluster.
|
NodeResponse |
applyRequest(String method,
URI uri,
Map<String,List<String>> parameters,
Map<String,String> headers,
Set<NodeIdentifier> nodeIdentifiers)
Federates the HTTP request to the nodes specified.
|
NodeResponse |
applyRequest(String method,
URI uri,
Object entity,
Map<String,String> headers)
Federates the HTTP request to all connected nodes in the cluster.
|
NodeResponse |
applyRequest(String method,
URI uri,
Object entity,
Map<String,String> headers,
Set<NodeIdentifier> nodeIdentifiers)
Federates the HTTP request to the nodes specified.
|
deleteNode, getBulletinRepository, getHeartbeatMonitoringIntervalSeconds, getMaxHeartbeatGapSeconds, getNode, getNodeEvents, getNodeIds, getNodes, getPrimaryNode, getProcessGroupStatus, getSystemDiagnostics, handleHeartbeat, requestConnection, requestDisconnection, requestReconnection, setPrimaryNode
getNodeInformation
NodeResponse applyRequest(String method, URI uri, Map<String,List<String>> parameters, Map<String,String> headers) throws NoConnectedNodesException, NoResponseFromNodesException, UriConstructionException, ConnectingNodeMutableRequestException, DisconnectedNodeMutableRequestException, SafeModeMutableRequestException
method
- the HTTP method (e.g., GET, POST, PUT, DELETE, HEAD)uri
- the base request URI (up to, but not including, the query string)parameters
- the request parametersheaders
- the request headersNoConnectedNodesException
- if no nodes are connected as results of the requestNoResponseFromNodesException
- if no response could be obtainedUriConstructionException
- if there was an issue constructing the URIs tailored for each individual nodeConnectingNodeMutableRequestException
- if the request was a PUT, POST, DELETE and a node is connecting to the clusterDisconnectedNodeMutableRequestException
- if the request was a PUT, POST, DELETE and a node is disconnected from the clusterSafeModeMutableRequestException
- if the request was a PUT, POST, DELETE and a the cluster is in safe modeNodeResponse applyRequest(String method, URI uri, Map<String,List<String>> parameters, Map<String,String> headers, Set<NodeIdentifier> nodeIdentifiers) throws NoConnectedNodesException, NoResponseFromNodesException, UriConstructionException, ConnectingNodeMutableRequestException, DisconnectedNodeMutableRequestException, SafeModeMutableRequestException
method
- the HTTP method (e.g., GET, POST, PUT, DELETE, HEAD)uri
- the base request URI (up to, but not including, the query string)parameters
- the request parametersheaders
- the request headersnodeIdentifiers
- the NodeIdentifier for each node that the request should be replaced toNoConnectedNodesException
- if no nodes are connected as results of the requestNoResponseFromNodesException
- if no response could be obtainedUriConstructionException
- if there was an issue constructing the URIs tailored for each individual nodeConnectingNodeMutableRequestException
- if the request was a PUT, POST, DELETE and a node is connecting to the clusterDisconnectedNodeMutableRequestException
- if the request was a PUT, POST, DELETE and a node is disconnected from the clusterSafeModeMutableRequestException
- if the request was a PUT, POST, DELETE and a the cluster is in safe modeNodeResponse applyRequest(String method, URI uri, Object entity, Map<String,String> headers) throws NoConnectedNodesException, NoResponseFromNodesException, UriConstructionException, ConnectingNodeMutableRequestException, DisconnectedNodeMutableRequestException, SafeModeMutableRequestException
method
- the HTTP method (e.g., GET, POST, PUT, DELETE, HEAD)uri
- the base request URI (up to, but not including, the query string)entity
- the HTTP request entityheaders
- the request headersNoConnectedNodesException
- if no nodes are connected as results of the requestNoResponseFromNodesException
- if no response could be obtainedUriConstructionException
- if there was an issue constructing the URIs tailored for each individual nodeConnectingNodeMutableRequestException
- if the request was a PUT, POST, DELETE and a node is connecting to the clusterDisconnectedNodeMutableRequestException
- if the request was a PUT, POST, DELETE and a node is disconnected from the clusterSafeModeMutableRequestException
- if the request was a PUT, POST, DELETE and a the cluster is in safe modeNodeResponse applyRequest(String method, URI uri, Object entity, Map<String,String> headers, Set<NodeIdentifier> nodeIdentifiers) throws NoConnectedNodesException, NoResponseFromNodesException, UriConstructionException, ConnectingNodeMutableRequestException, DisconnectedNodeMutableRequestException, SafeModeMutableRequestException
method
- the HTTP method (e.g., GET, POST, PUT, DELETE, HEAD)uri
- the base request URI (up to, but not including, the query string)entity
- the HTTP request entityheaders
- the request headersnodeIdentifiers
- the NodeIdentifier for each node that the request should be replaced toNoConnectedNodesException
- if no nodes are connected as results of the requestNoResponseFromNodesException
- if no response could be obtainedUriConstructionException
- if there was an issue constructing the URIs tailored for each individual nodeConnectingNodeMutableRequestException
- if the request was a PUT, POST, DELETE and a node is connecting to the clusterDisconnectedNodeMutableRequestException
- if the request was a PUT, POST, DELETE and a node is disconnected from the clusterSafeModeMutableRequestException
- if the request was a PUT, POST, DELETE and a the cluster is in safe modeCopyright © 2016 Apache NiFi Project. All rights reserved.