mirror of https://github.com/apache/nifi.git
Merge branch 'NIFI164' into develop
This commit is contained in:
commit
67354bd31c
|
@ -1050,6 +1050,10 @@ public class FlowController implements EventAccess, ControllerServiceProvider, H
|
||||||
processScheduler.shutdown();
|
processScheduler.shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( contentRepository != null ) {
|
||||||
|
contentRepository.shutdown();
|
||||||
|
}
|
||||||
|
|
||||||
if ( provenanceEventRepository != null ) {
|
if ( provenanceEventRepository != null ) {
|
||||||
try {
|
try {
|
||||||
provenanceEventRepository.close();
|
provenanceEventRepository.close();
|
||||||
|
|
|
@ -223,6 +223,12 @@ public class FileSystemRepository implements ContentRepository {
|
||||||
this.contentClaimManager = claimManager;
|
this.contentClaimManager = claimManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void shutdown() {
|
||||||
|
executor.shutdown();
|
||||||
|
containerCleanupExecutor.shutdown();
|
||||||
|
}
|
||||||
|
|
||||||
private static double getRatio(final String value) {
|
private static double getRatio(final String value) {
|
||||||
final String trimmed = value.trim();
|
final String trimmed = value.trim();
|
||||||
final String percentage = trimmed.substring(0, trimmed.length() - 1);
|
final String percentage = trimmed.substring(0, trimmed.length() - 1);
|
||||||
|
|
|
@ -138,6 +138,11 @@ public class VolatileContentRepository implements ContentRepository {
|
||||||
this.claimManager = claimManager;
|
this.claimManager = claimManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void shutdown() {
|
||||||
|
executor.shutdown();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specifies a Backup Repository where data should be written if this
|
* Specifies a Backup Repository where data should be written if this
|
||||||
* Repository fills up
|
* Repository fills up
|
||||||
|
|
|
@ -977,6 +977,10 @@ public class TestStandardProcessSession {
|
||||||
|
|
||||||
private ConcurrentMap<ContentClaim, AtomicInteger> claimantCounts = new ConcurrentHashMap<>();
|
private ConcurrentMap<ContentClaim, AtomicInteger> claimantCounts = new ConcurrentHashMap<>();
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void shutdown() {
|
||||||
|
}
|
||||||
|
|
||||||
public Set<ContentClaim> getExistingClaims() {
|
public Set<ContentClaim> getExistingClaims() {
|
||||||
final Set<ContentClaim> claims = new HashSet<>();
|
final Set<ContentClaim> claims = new HashSet<>();
|
||||||
|
|
||||||
|
|
|
@ -169,6 +169,8 @@ public class VolatileProvenanceRepository implements ProvenanceEventRepository {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void close() throws IOException {
|
public void close() throws IOException {
|
||||||
|
queryExecService.shutdownNow();
|
||||||
|
scheduledExecService.shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -45,6 +45,12 @@ public interface ContentRepository {
|
||||||
*/
|
*/
|
||||||
void initialize(ContentClaimManager claimManager) throws IOException;
|
void initialize(ContentClaimManager claimManager) throws IOException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Shuts down the Content Repository, freeing any resources that may be held.
|
||||||
|
* This is called when an administrator shuts down NiFi.
|
||||||
|
*/
|
||||||
|
void shutdown();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the names of all Containers that exist for this Content
|
* Returns the names of all Containers that exist for this Content
|
||||||
* Repository
|
* Repository
|
||||||
|
|
Loading…
Reference in New Issue