T
- represents the the result of the monitoring.public abstract class AbstractAsyncNodeMonitorDescriptor<T> extends AbstractNodeMonitorDescriptor<T>
AbstractNodeMonitorDescriptor
that
performs monitoring on all slaves concurrently and asynchronously.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.
|
get, getMonitoringTimeOut, getTimestamp, getTimestampString, isIgnored, markOffline, markOffline, markOnline
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, 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>
InterruptedException
Copyright © 2015. All rights reserved.