edu.uiuc.cs.net.DPRPManager
Class CLI_DPRPClient

java.lang.Object
  |
  +--edu.uiuc.cs.net.DPRPManager.CLI_DPRPClient
All Implemented Interfaces:
DPRPClientConstants, DPRPLeaseListenerConstants, java.util.EventListener

public class CLI_DPRPClient
extends java.lang.Object
implements DPRPClientConstants, DPRPLeaseListenerConstants

This class represents the command-line front-end to the DPRP Client. It parses a bunch of command-line parameters, and then kicks off a new DPRPClientSession thread based upon those parameters. Once a lease has been obtained, it spits out the parameters in a semi-human-readable format. Further, it will continue to run, renewing the lease as necessary.

Version:
1.5 - October 16th, 2001
Author:
Andy Reitz (areitz@cs.uiuc.edu)

Fields inherited from interface edu.uiuc.cs.net.DPRPManager.DPRPClientConstants
CLI_COMMAND, CLI_FORCE_LEASE_TERMINATE, CLI_FORCE_LEASE_UPDATE, CLI_TERMINATE_THREAD, cliIPFieldString, HALT, HALT_ACQUIRE_LEASE, HALT_INTERRUPTED, HALT_INVALID_SLEEP_TIMER, HALT_NO_RESPONSE, HALT_SERVER_NACK, HALT_T2_EXPIRED, NUM_RETRIES, okButtonString, reqDurationFieldString, reqPortFieldString, reqProtocolFieldString, resetButtonString, srvIPFieldString, srvPortFieldString, terminateButtonString, updateButtonString
 
Fields inherited from interface edu.uiuc.cs.net.DPRPManager.DPRPLeaseListenerConstants
NEW_LEASE_EVENT, REMOVE_LEASE_EVENT, UPDATE_LEASE_EVENT
 
Constructor Summary
CLI_DPRPClient()
           
 
Method Summary
static void main(java.lang.String[] args)
          Starts the command-line client.
private static void printCommandUsage()
          Prints the command usage to stderr, so that users can know how it's done.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

CLI_DPRPClient

public CLI_DPRPClient()
Method Detail

main

public static void main(java.lang.String[] args)
Starts the command-line client.
Parameters:
args - an array of command-line arguments

printCommandUsage

private static void printCommandUsage()
Prints the command usage to stderr, so that users can know how it's done.