T
- represents the result of the monitoring.public abstract class AbstractAsyncNodeMonitorDescriptor<T> extends AbstractNodeMonitorDescriptor<T>
AbstractNodeMonitorDescriptor
that
performs monitoring on all agents concurrently and asynchronously.Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractAsyncNodeMonitorDescriptor.Result<T>
Result object for
monitorDetailed() to facilitate extending information
returned in the future. |
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
clazz
Modifier | Constructor and Description |
---|---|
protected |
AbstractAsyncNodeMonitorDescriptor() |
protected |
AbstractAsyncNodeMonitorDescriptor(Class<? extends NodeMonitor> clazz) |
protected |
AbstractAsyncNodeMonitorDescriptor(Class<? extends NodeMonitor> clazz,
long interval) |
protected |
AbstractAsyncNodeMonitorDescriptor(long interval) |
Modifier and Type | Method and Description |
---|---|
protected abstract hudson.remoting.Callable<T,IOException> |
createCallable(Computer c)
Creates a
Callable that performs the monitoring when executed. |
protected Map<Computer,T> |
monitor()
Performs all monitoring concurrently.
|
protected T |
monitor(Computer c)
Performs monitoring of the given computer object.
|
protected AbstractAsyncNodeMonitorDescriptor.Result<T> |
monitorDetailed()
Perform monitoring with detailed reporting.
|
get, getMonitoringTimeOut, getTimestamp, getTimestampString, isIgnored, markOffline, markOffline, markOnline
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
protected AbstractAsyncNodeMonitorDescriptor()
protected AbstractAsyncNodeMonitorDescriptor(long interval)
protected AbstractAsyncNodeMonitorDescriptor(Class<? extends NodeMonitor> clazz)
protected AbstractAsyncNodeMonitorDescriptor(Class<? extends NodeMonitor> clazz, long interval)
@CheckForNull protected abstract hudson.remoting.Callable<T,IOException> createCallable(Computer c)
Callable
that performs the monitoring when executed.protected T monitor(Computer c) throws IOException, InterruptedException
AbstractNodeMonitorDescriptor
monitor
in class AbstractNodeMonitorDescriptor<T>
AbstractNodeMonitorDescriptor.get(Computer)
method.
If null is returned, it will be interpreted as "no observed value." This is
convenient way of abandoning the observation on a particular computer,
whereas IOException
is useful for indicating a hard error that needs to be
corrected.IOException
InterruptedException
protected Map<Computer,T> monitor() throws InterruptedException
monitor
in class AbstractNodeMonitorDescriptor<T>
AbstractAsyncNodeMonitorDescriptor.Result
for more details.InterruptedException
@NonNull protected final AbstractAsyncNodeMonitorDescriptor.Result<T> monitorDetailed() throws InterruptedException
InterruptedException
Copyright © 2004–2021. All rights reserved.