public class PeerDescriptionModifier extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PeerDescriptionModifier.RequestType |
private static class |
PeerDescriptionModifier.Route |
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
logger |
private static String |
PROPERTY_PREFIX |
private static Pattern |
PROPERTY_REGEX |
private Map<SiteToSiteTransportProtocol,List<PeerDescriptionModifier.Route>> |
routes |
| Constructor and Description |
|---|
PeerDescriptionModifier(NiFiProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
private void |
addVariables(Map<String,String> map,
String prefix,
PeerDescription peer) |
boolean |
isModificationNeeded(SiteToSiteTransportProtocol protocol) |
PeerDescription |
modify(PeerDescription source,
PeerDescription target,
SiteToSiteTransportProtocol protocol,
PeerDescriptionModifier.RequestType requestType,
Map<String,String> variables)
Modifies target peer description so that subsequent request can go through the appropriate route
|
private static final org.slf4j.Logger logger
private Map<SiteToSiteTransportProtocol,List<PeerDescriptionModifier.Route>> routes
private static final String PROPERTY_PREFIX
private static final Pattern PROPERTY_REGEX
public PeerDescriptionModifier(NiFiProperties properties)
private void addVariables(Map<String,String> map, String prefix, PeerDescription peer)
public boolean isModificationNeeded(SiteToSiteTransportProtocol protocol)
public PeerDescription modify(PeerDescription source, PeerDescription target, SiteToSiteTransportProtocol protocol, PeerDescriptionModifier.RequestType requestType, Map<String,String> variables)
source - The source peer from which a request was sent, this can be any server host participated to relay the request,
but should be the one which can contribute to derive the correct target peer.target - The original target which should receive and process further incoming requests.protocol - The S2S protocol being used.requestType - The requested API type.variables - Containing context variables those can be referred from Expression Language.Copyright © 2022 Apache NiFi Project. All rights reserved.