dea.test
Class ChkNet

java.lang.Object
  extended bydea.test.ChkNet
All Implemented Interfaces:
IDebugLevels

public class ChkNet
extends java.lang.Object
implements IDebugLevels

Title: Check Site
Description: Class for checking my sites are all working correctly.
Copyright: Copyright (c) 2005
Company: RMRR

@author David Abigt
@version 1.0


Field Summary
protected static Display display
          ************************************************************************** Get connection to display / log utils
static int WEBPORT
           
 
Fields inherited from interface dea.common.IDebugLevels
BASIC, DEBUG_ALL, ERROR, METH_DETAIL, METH_ENTER, METH_EXIT, METH_EXT, METH_GET, METH_SET, METH_VARS, SHOW_PASS
 
Constructor Summary
ChkNet()
           
 
Method Summary
static boolean doChk()
           
static void main(java.lang.String[] args)
           
static int ping(java.lang.String host)
           
static int testPort(java.lang.String host, int iPort)
          Attempts a port connection to the host to see if it really is a mail server
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

display

protected static Display display
************************************************************************** Get connection to display / log utils


WEBPORT

public static final int WEBPORT
See Also:
Constant Field Values
Constructor Detail

ChkNet

public ChkNet()
Method Detail

doChk

public static boolean doChk()

testPort

public static int testPort(java.lang.String host,
                           int iPort)
                    throws java.net.UnknownHostException,
                           java.io.IOException
Attempts a port connection to the host to see if it really is a mail server

Parameters:
host -
Returns:
millisecs it took to respond
Throws:
java.net.UnknownHostException
java.io.IOException

ping

public static int ping(java.lang.String host)

main

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


Copyright © 2001-2005 Round Mountain Rescue Ranch. All Rights Reserved.