hudson.model
Class ComputerPinger

java.lang.Object
  extended by hudson.model.ComputerPinger
All Implemented Interfaces:
ExtensionPoint
Direct Known Subclasses:
ComputerPinger.BuiltInComputerPinger

public abstract class ComputerPinger
extends Object
implements ExtensionPoint

A way to see if a computer is reachable.

Since:
1.378

Nested Class Summary
static class ComputerPinger.BuiltInComputerPinger
          Default pinger - use Java built-in functionality.
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
ComputerPinger()
           
 
Method Summary
static ExtensionList<ComputerPinger> all()
          Get all registered instances.
static boolean checkIsReachable(InetAddress ia, int timeout)
          Is this computer reachable via the given address?
abstract  boolean isReachable(InetAddress ia, int timeout)
          Is the specified address reachable?
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComputerPinger

public ComputerPinger()
Method Detail

isReachable

public abstract boolean isReachable(InetAddress ia,
                                    int timeout)
                             throws IOException
Is the specified address reachable?

Parameters:
ia - The address to check.
timeout - Timeout in seconds.
Throws:
IOException

all

public static ExtensionList<ComputerPinger> all()
Get all registered instances.


checkIsReachable

public static boolean checkIsReachable(InetAddress ia,
                                       int timeout)
                                throws IOException
Is this computer reachable via the given address?

Parameters:
ia - The address to check.
timeout - Timeout in seconds.
Throws:
IOException


Copyright © 2004-2013 Hudson. All Rights Reserved.