| Package | Description |
|---|---|
| org.apache.nifi.controller.repository | |
| org.apache.nifi.controller.repository.claim |
| Modifier and Type | Method and Description |
|---|---|
default Set<ResourceClaim> |
FlowFileRepository.findOrphanedResourceClaims()
Returns the set of Resource Claims that are referenced by FlowFiles that have been "orphaned" because they belong to FlowFile Queues/Connections
that did not exist in the flow when NiFi started
|
default Map<ResourceClaim,Set<ResourceClaimReference>> |
FlowFileRepository.findResourceClaimReferences(Set<ResourceClaim> resourceClaims,
FlowFileSwapManager swapManager)
Scans the FlowFile Repository to locate any FlowFiles that reference the given Resource Claims.
|
default Set<ResourceClaim> |
ContentRepository.getActiveResourceClaims(String containerName)
Optional operation that returns a List of all Resource Claims that exist in the given Container that are considered "active" (i.e., not archived)
|
List<ResourceClaim> |
SwapSummary.getResourceClaims()
Returns a List of all ResourceClaims that are referenced by the FlowFiles in the swap file.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
ContentRepository.read(ResourceClaim claim)
Provides access ot the input stream for the entire Resource Claim
|
long |
ContentRepository.size(ResourceClaim claim) |
| Modifier and Type | Method and Description |
|---|---|
default Map<ResourceClaim,Set<ResourceClaimReference>> |
FlowFileRepository.findResourceClaimReferences(Set<ResourceClaim> resourceClaims,
FlowFileSwapManager swapManager)
Scans the FlowFile Repository to locate any FlowFiles that reference the given Resource Claims.
|
| Modifier and Type | Method and Description |
|---|---|
ResourceClaim |
ContentClaim.getResourceClaim() |
ResourceClaim |
ResourceClaimManager.getResourceClaim(String container,
String section,
String id)
Returns the Resource Claim with the given id, container, and section, if one exists,
null otherwise |
ResourceClaim |
ResourceClaimManager.newResourceClaim(String container,
String section,
String id,
boolean lossTolerant,
boolean writable)
Creates a new Resource Claim with the given id, container, section, and
loss tolerance.
|
| Modifier and Type | Method and Description |
|---|---|
default int |
ResourceClaim.compareTo(ResourceClaim other)
Provides the natural ordering for ResourceClaim objects.
|
int |
ResourceClaimManager.decrementClaimantCount(ResourceClaim claim)
Decreases by 1 the count of how many FlowFiles hold a claim to a
particular piece of FlowFile content and returns the new count
|
void |
ResourceClaimManager.freeze(ResourceClaim claim)
Freezes the Resource Claim so that it can no longer be written to
|
int |
ResourceClaimManager.getClaimantCount(ResourceClaim claim) |
int |
ResourceClaimManager.incrementClaimantCount(ResourceClaim claim)
Increases by 1 the count of how many FlowFiles hold a claim to a
particular piece of FlowFile content and returns the new count
|
int |
ResourceClaimManager.incrementClaimantCount(ResourceClaim claim,
boolean newClaim)
Increases by 1 the count of how many FlowFiles hold a claim to a
particular piece of FlowFile content and returns the new count.
|
boolean |
ResourceClaimManager.isDestructable(ResourceClaim claim)
Indicates whether or not the given Resource Claim is awaiting destruction
|
void |
ResourceClaimManager.markDestructable(ResourceClaim claim)
Indicates that the given ResourceClaim can now be destroyed by the
appropriate Content Repository.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ResourceClaimManager.drainDestructableClaims(Collection<ResourceClaim> destination,
int maxElements)
Drains up to
maxElements Content Claims from the internal queue
of destructable content claims to the given destination so that
they can be destroyed. |
void |
ResourceClaimManager.drainDestructableClaims(Collection<ResourceClaim> destination,
int maxElements,
long timeout,
TimeUnit unit)
Drains up to
maxElements Content Claims from the internal queue
of destructable content claims to the given destination so that
they can be destroyed. |
Copyright © 2023 Apache NiFi Project. All rights reserved.