| Modifier and Type | Field and Description |
|---|---|
protected TransferDirection |
AbstractTransaction.direction |
| Modifier and Type | Method and Description |
|---|---|
static TransferDirection |
TransferDirection.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransferDirection[] |
TransferDirection.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Constructor and Description |
|---|
AbstractTransaction(Peer peer,
TransferDirection direction,
boolean useCompression,
FlowFileCodec codec,
EventReporter eventReporter,
int protocolVersion,
int penaltyMillis,
String destinationId) |
| Modifier and Type | Method and Description |
|---|---|
(package private) LinkedHashMap<PeerStatus,Double> |
PeerSelector.buildWeightedPeerMap(Set<PeerStatus> statuses,
TransferDirection direction)
Returns a map of peers prepared for flowfile transfer in the specified direction.
|
private static double |
PeerSelector.calculateNormalizedWeight(TransferDirection direction,
long totalFlowFileCount,
int flowFileCount,
int peerCount)
Returns the normalized weight for this ratio of peer flowfiles to total flowfiles and the given direction.
|
private @NotNull Map<PeerStatus,Double> |
PeerSelector.createDestinationMap(Set<PeerStatus> peerStatuses,
TransferDirection direction)
Returns a map indexed by a peer to the normalized weight (number of flowfiles currently being
processed by the peer as a percentage of the total).
|
Transaction |
SiteToSiteClient.createTransaction(TransferDirection direction)
Creates a new Transaction that can be used to either send data to a
remote NiFi instance or receive data from a remote NiFi instance,
depending on the value passed for the
direction argument. |
PeerStatus |
PeerSelector.getNextPeerStatus(TransferDirection direction)
Return status of a peer that will be used for the next communication.
|
String |
SiteInfoProvider.getPortIdentifier(String portName,
TransferDirection transferDirection) |
private static void |
PeerSelector.printDistributionStatistics(Map<PeerStatus,Double> sortedPeerWorkloads,
TransferDirection direction)
Prints the distribution of the peers to the logger.
|
| Modifier and Type | Method and Description |
|---|---|
Transaction |
HttpClient.createTransaction(TransferDirection direction) |
| Modifier and Type | Method and Description |
|---|---|
Transaction |
SocketClient.createTransaction(TransferDirection direction) |
EndpointConnection |
EndpointConnectionPool.getEndpointConnection(TransferDirection direction) |
EndpointConnection |
EndpointConnectionPool.getEndpointConnection(TransferDirection direction,
SiteToSiteClientConfig config) |
private String |
SocketClient.getPortIdentifier(TransferDirection direction) |
private String |
EndpointConnectionPool.getPortIdentifier(TransferDirection transferDirection) |
| Modifier and Type | Method and Description |
|---|---|
Transaction |
ClientProtocol.startTransaction(Peer peer,
FlowFileCodec codec,
TransferDirection direction) |
| Constructor and Description |
|---|
HttpClientTransaction(int protocolVersion,
Peer peer,
TransferDirection direction,
boolean useCompression,
String portId,
int penaltyMillis,
EventReporter eventReporter) |
| Modifier and Type | Method and Description |
|---|---|
Transaction |
SocketClientProtocol.startTransaction(Peer peer,
FlowFileCodec codec,
TransferDirection direction) |
| Constructor and Description |
|---|
SocketClientTransaction(int protocolVersion,
String destinationId,
Peer peer,
FlowFileCodec codec,
TransferDirection direction,
boolean useCompression,
int penaltyMillis,
EventReporter eventReporter) |
| Modifier and Type | Method and Description |
|---|---|
String |
SiteToSiteRestApiClient.initiateTransaction(TransferDirection direction,
String portId) |
Copyright © 2023 Apache NiFi Project. All rights reserved.