Package hudson.node_monitors
Class DiskSpaceMonitorDescriptor
java.lang.Object
hudson.model.Descriptor<NodeMonitor>
hudson.node_monitors.AbstractNodeMonitorDescriptor<T>
hudson.node_monitors.AbstractAsyncNodeMonitorDescriptor<DiskSpaceMonitorDescriptor.DiskSpace>
hudson.node_monitors.DiskSpaceMonitorDescriptor
- Direct Known Subclasses:
DiskSpaceMonitor.DescriptorImpl
,TemporarySpaceMonitor.DescriptorImpl
public abstract class DiskSpaceMonitorDescriptor
extends AbstractAsyncNodeMonitorDescriptor<DiskSpaceMonitorDescriptor.DiskSpace>
AbstractNodeMonitorDescriptor
for NodeMonitor
that checks a free disk space of some directory.- Since:
- 1.520
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Value object that represents the disk space.protected static final class
Nested classes/interfaces inherited from class hudson.node_monitors.AbstractAsyncNodeMonitorDescriptor
AbstractAsyncNodeMonitorDescriptor.Result<T>
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
markNodeOfflineOrOnline
(Computer c, DiskSpaceMonitorDescriptor.DiskSpace size, AbstractDiskSpaceMonitor monitor) protected Map<Computer,
DiskSpaceMonitorDescriptor.DiskSpace> monitor()
Performs all monitoring concurrently.Methods inherited from class hudson.node_monitors.AbstractAsyncNodeMonitorDescriptor
createCallable, monitor, monitorDetailed
Methods inherited from class hudson.node_monitors.AbstractNodeMonitorDescriptor
canTakeOffline, get, getConfigPage, getMonitoringTimeOut, getTimestamp, getTimestampString, isIgnored, markOffline, markOffline, markOnline
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DiskSpaceMonitorDescriptor
public DiskSpaceMonitorDescriptor()
-
-
Method Details
-
monitor
Description copied from class:AbstractAsyncNodeMonitorDescriptor
Performs all monitoring concurrently.- Overrides:
monitor
in classAbstractAsyncNodeMonitorDescriptor<DiskSpaceMonitorDescriptor.DiskSpace>
- Returns:
- Mapping from computer to monitored value. The map values can be null for several reasons, see
AbstractAsyncNodeMonitorDescriptor.Result
for more details. - Throws:
InterruptedException
-
markNodeOfflineOrOnline
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public void markNodeOfflineOrOnline(Computer c, DiskSpaceMonitorDescriptor.DiskSpace size, AbstractDiskSpaceMonitor monitor)
-