@Tags(value={"disk","storage","warning","monitoring","repo"}) @CapabilityDescription(value="Checks the amount of storage space available for the specified directory and warns (via a log message and a System-Level Bulletin) if the partition on which it lives exceeds some configurable threshold of storage space") public class MonitorDiskUsage extends AbstractReportingTask
| Modifier and Type | Field and Description |
|---|---|
static PropertyDescriptor |
DIR_DISPLAY_NAME |
static PropertyDescriptor |
DIR_LOCATION |
static PropertyDescriptor |
DIR_THRESHOLD |
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,
ComponentLog logger) |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
void |
onTrigger(ReportingContext context) |
getControllerServiceLookup, getIdentifier, getLogger, getName, getNodeTypeProvider, getSchedulingPeriod, init, initialize, setComponentInfocustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitisStatefulgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateprivate static final Pattern PERCENT_PATTERN
public static final PropertyDescriptor DIR_THRESHOLD
public static final PropertyDescriptor DIR_LOCATION
public static final PropertyDescriptor DIR_DISPLAY_NAME
protected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponentpublic void onTrigger(ReportingContext context)
static void checkThreshold(String pathName, Path path, int threshold, ComponentLog logger)
Copyright © 2022 Apache NiFi Project. All rights reserved.