@Tags(value={"disk","storage","warning","monitoring","repo"}) @CapabilityDescription(value="Checks the amount of storage space available for the Content Repository and FlowFile Repository and warns (via a log message and a System-Level Bulletin) if the partition on which either repository exceeds some configurable threshold of storage space") public class MonitorDiskUsage extends AbstractReportingTask
| Modifier and Type | Field and Description |
|---|---|
static PropertyDescriptor |
CONTENT_REPO_THRESHOLD |
static PropertyDescriptor |
FLOWFILE_REPO_THRESHOLD |
private static org.slf4j.Logger |
logger |
private static Pattern |
PERCENT_PATTERN |
| Constructor and Description |
|---|
MonitorDiskUsage() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static void |
checkThreshold(String pathName,
Path path,
int threshold,
ReportingContext context) |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
void |
onTrigger(ReportingContext context) |
getControllerServiceLookup, getIdentifier, getName, getSchedulingPeriod, init, initializecustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateprivate static final org.slf4j.Logger logger
private static final Pattern PERCENT_PATTERN
public static final PropertyDescriptor CONTENT_REPO_THRESHOLD
public static final PropertyDescriptor FLOWFILE_REPO_THRESHOLD
protected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponentpublic void onTrigger(ReportingContext context)
static void checkThreshold(String pathName, Path path, int threshold, ReportingContext context)
Copyright © 2015 Apache NiFi(incubating) Project. All rights reserved.