Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.hyperic.util
Class InetPortPinger

    java.lang.Object
      org.hyperic.util.InetPortPinger

    public class InetPortPinger

extends java.lang.Object

Constructor Summary
`InetPortPinger(java.lang.String host, int port, int timeout)` Create a new InetPortPinger object.

Method Summary
`boolean` | `check()` Pings the remote host.
`static void` | `main(java.lang.String[] args)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### InetPortPinger

    public InetPortPinger(java.lang.String host,
                          int port,
                          int timeout)

  Create a new InetPortPinger object.

  Parameters:
    `host` - Hostname to ping
    `port` - Port # to ping
    `timeout` - Timeout (in ms) to wait for data, before aborting

Method Detail

### check

    public boolean check()

  Pings the remote host. A connection is made to the TCP port as specified in the constructor.

  Returns:
    true if connection was successful, false otherwise.

### main

    public static void main(java.lang.String[] args)
                     throws java.lang.Exception

  Throws:
    `java.lang.Exception`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Hyperic HQ Plugin API v. 4.4.0.2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.