public interface HttpRequestReplicator
Modifier and Type | Method and Description |
---|---|
boolean |
isRunning() |
Set<NodeResponse> |
replicate(Set<NodeIdentifier> nodeIds,
String method,
URI uri,
Map<String,List<String>> parameters,
Map<String,String> headers)
Requests are sent to each node in the cluster.
|
Set<NodeResponse> |
replicate(Set<NodeIdentifier> nodeIds,
String method,
URI uri,
Object entity,
Map<String,String> headers)
Requests are sent to each node in the cluster.
|
void |
start()
Starts the instance for replicating requests.
|
void |
stop()
Stops the instance from replicating requests.
|
void start()
void stop()
boolean isRunning()
Set<NodeResponse> replicate(Set<NodeIdentifier> nodeIds, String method, URI uri, Map<String,List<String>> parameters, Map<String,String> headers) throws UriConstructionException
nodeIds
- the node identifiersmethod
- the HTTP method (e.g., GET, POST, PUT, DELETE, HEAD, OPTIONS)uri
- the base request URI (up to, but not including, the query string)parameters
- any request parametersheaders
- any HTTP headersUriConstructionException
- if a request for a node failed to be constructed from the given prototype URI. If thrown, it is guaranteed that no request was sent.Set<NodeResponse> replicate(Set<NodeIdentifier> nodeIds, String method, URI uri, Object entity, Map<String,String> headers) throws UriConstructionException
nodeIds
- the node identifiersmethod
- the HTTP method (e.g., POST, PUT)uri
- the base request URI (up to, but not including, the query string)entity
- an entityheaders
- any HTTP headersUriConstructionException
- if a request for a node failed to be constructed from the given prototype URI. If thrown, it is guaranteed that no request was sent.Copyright © 2016 Apache NiFi Project. All rights reserved.