Package hudson.node_monitors
Class ResponseTimeMonitor.Data
- java.lang.Object
-
- hudson.slaves.OfflineCause
-
- hudson.node_monitors.MonitorOfflineCause
-
- hudson.node_monitors.ResponseTimeMonitor.Data
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ResponseTimeMonitor
@ExportedBean public static final class ResponseTimeMonitor.Data extends MonitorOfflineCause implements Serializable
Immutable representation of the monitoring data.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.slaves.OfflineCause
OfflineCause.ByCLI, OfflineCause.ChannelTermination, OfflineCause.IdleOfflineCause, OfflineCause.LaunchFailed, OfflineCause.SimpleOfflineCause, OfflineCause.UserCause
-
-
Field Summary
-
Fields inherited from class hudson.slaves.OfflineCause
timestamp
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getAverage()
Computes the average response time, by taking the time out into account.Class<? extends NodeMonitor>
getTrigger()
Identify monitor implementation that put computer offline.boolean
hasTooManyTimeouts()
String
toString()
String rendering of the data-
Methods inherited from class hudson.slaves.OfflineCause
create, getTime, getTimestamp
-
-
-
-
Method Detail
-
getAverage
@Exported public long getAverage()
Computes the average response time, by taking the time out into account.
-
hasTooManyTimeouts
public boolean hasTooManyTimeouts()
-
getTrigger
public Class<? extends NodeMonitor> getTrigger()
Description copied from class:MonitorOfflineCause
Identify monitor implementation that put computer offline.- Specified by:
getTrigger
in classMonitorOfflineCause
-
-