/** * Obtains all the instances of {@link NodeMonitor}s that are alive. * @since 1.187 */ public static List<NodeMonitor> getAll() { return ComputerSet.getMonitors().toList(); }
/** * Is this monitor currently ignored? */ public boolean isIgnored() { NodeMonitor m = ComputerSet.getMonitors().get(this); return m==null || m.isIgnored(); }
@Override public void run() { for (NodeMonitor nm : Jenkins.getInstance().getComputer().getMonitors()) { nm.triggerUpdate(); } } };
/** * Obtains all the instances of {@link NodeMonitor}s that are alive. * @since 1.187 */ public static List<NodeMonitor> getAll() { return ComputerSet.getMonitors().toList(); }
/** * Obtains all the instances of {@link NodeMonitor}s that are alive. * * @since 1.187 */ public static List<NodeMonitor> getAll() { return ComputerSet.getMonitors().toList(); }
/** * Obtains all the instances of {@link NodeMonitor}s that are alive. * @since 1.187 */ public static List<NodeMonitor> getAll() { return ComputerSet.getMonitors().toList(); }
/** * Obtains all the instances of {@link NodeMonitor}s that are alive. * @since 1.187 */ public static List<NodeMonitor> getAll() { return ComputerSet.getMonitors().toList(); }
/** * Obtains all the instances of {@link NodeMonitor}s that are alive. * @since 1.187 */ public static List<NodeMonitor> getAll() { return ComputerSet.getMonitors().toList(); }
/** * Is this monitor currently ignored? */ public boolean isIgnored() { NodeMonitor m = ComputerSet.getMonitors().get(this); return m == null || m.isIgnored(); }
/** * Is this monitor currently ignored? */ public boolean isIgnored() { NodeMonitor m = ComputerSet.getMonitors().get(this); return m==null || m.isIgnored(); }
/** * Is this monitor currently ignored? */ public boolean isIgnored() { NodeMonitor m = ComputerSet.getMonitors().get(this); return m==null || m.isIgnored(); }
/** * Is this monitor currently ignored? */ public boolean isIgnored() { NodeMonitor m = ComputerSet.getMonitors().get(this); return m==null || m.isIgnored(); }
/** * Is this monitor currently ignored? */ public boolean isIgnored() { NodeMonitor m = ComputerSet.getMonitors().get(this); return m==null || m.isIgnored(); }
@Override public void run() { for (NodeMonitor nm : Jenkins.getInstance().getComputer().getMonitors()) { nm.triggerUpdate(); } } };
}, ComputerSet.getMonitors().get(DiskSpaceMonitor.class) != null), check("temporary-space", new HealthCheck() { @Override }, ComputerSet.getMonitors().get(DiskSpaceMonitor.class) != null) );
@Override protected Result check() throws Exception { DiskSpaceMonitor m = ComputerSet.getMonitors().get(DiskSpaceMonitor.class); Jenkins jenkins = Jenkins.getInstance(); if (m == null || jenkins == null) { return Result.healthy(); } for (Computer c : jenkins.getComputers()) { DiskSpaceMonitorDescriptor.DiskSpace freeSpace = m.getFreeSpace(c); if (freeSpace != null && m.getThresholdBytes() > freeSpace.size) { return Result.unhealthy("Only %s Gb free on %s", freeSpace.getGbLeft(), c.getNode() instanceof Jenkins ? "(master)" : c.getName()); } } return Result.healthy(); } }, ComputerSet.getMonitors().get(DiskSpaceMonitor.class) != null),
@Override protected Result check() throws Exception { TemporarySpaceMonitor m = ComputerSet.getMonitors().get(TemporarySpaceMonitor.class); Jenkins jenkins = Jenkins.getInstance(); if (m == null || jenkins == null) { return Result.healthy(); } for (Computer c : jenkins.getComputers()) { DiskSpaceMonitorDescriptor.DiskSpace freeSpace = m.getFreeSpace(c); if (freeSpace != null && m.getThresholdBytes() > freeSpace.size) { return Result.unhealthy("Only %s Gb free on %s", freeSpace.getGbLeft(), c.getNode() instanceof Jenkins ? "(master)" : c.getName()); } } return Result.healthy(); } }, ComputerSet.getMonitors().get(DiskSpaceMonitor.class) != null)