net.windward.tools
Class ListServers

java.lang.Object
  |
  +--net.windward.tools.ListServers
All Implemented Interfaces:
java.lang.Runnable

public class ListServers
extends java.lang.Object
implements java.lang.Runnable

This lists out all Windward Reports servers running.

Version:
1.0 Oct 17, 2004

Inner Class Summary
 class ListServers.ServerInfo
          Info returned about each server.
 
Constructor Summary
ListServers()
           
 
Method Summary
static ListServers.ServerInfo[] getServers(int wait)
          Return all servers on the network.
static void main(java.lang.String[] args)
          List out all Windward Reports servers running.
 void run()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListServers

public ListServers()
Method Detail

getServers

public static ListServers.ServerInfo[] getServers(int wait)
                                           throws java.io.IOException,
                                                  java.lang.InterruptedException
Return all servers on the network. This is done with a query over the network so it may not return all servers as both firewalls, subnet routers, and time delays can stop all from replying.
Parameters:
wait - The amount of time to wait for a response - passed to Thread.sleep. Suggest at least a value of 2000 (2 seconds).
Returns:
The servers found.

run

public void run()
Specified by:
run in interface java.lang.Runnable

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
List out all Windward Reports servers running. Will continue to list out until Ctrl-C is pressed.
Parameters:
args - -pport_num (optional - default is -p1707). Pass /? or -? for help.


Copyright © 2002 - 2008 Windward Reports - All Rights Reserved. java reporting software