Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.opensst.client.ui.idc
Class CommandLineInitialDataCollector  view CommandLineInitialDataCollector download CommandLineInitialDataCollector.java

java.lang.Object
  extended byorg.opensst.client.ui.idc.CommandLineInitialDataCollector
All Implemented Interfaces:
InitialDataCollector

public class CommandLineInitialDataCollector
extends java.lang.Object
implements InitialDataCollector

This is an initial data collector. This simple class uses the command line to ask for the data. It can easily be replaced by anything else (Swing, HTML, ...) $Date: 2002/09/26 18:59:30 $

Version:
$Revision: 1.1 $

Field Summary
private  org.opensst.util.log.OpenSSTLogger logger
           
 
Constructor Summary
CommandLineInitialDataCollector()
          Constructor for CommandLineInitialDataCollector.
 
Method Summary
 InitialData collect()
          Let's start the data collection mecanisms.
 void done()
          Give a chance to properly clean up any used resources.
 void init()
          Give a chance to the UI to initialize itself.
private  java.lang.String readLine(java.lang.String prompt)
          Read a line of data on the default input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private org.opensst.util.log.OpenSSTLogger logger
Constructor Detail

CommandLineInitialDataCollector

public CommandLineInitialDataCollector()
Constructor for CommandLineInitialDataCollector.

Method Detail

init

public void init()
Description copied from interface: InitialDataCollector
Give a chance to the UI to initialize itself. This method should perform all the initialization steps and left the object in a ready-to-be displayed state

Specified by:
init in interface InitialDataCollector

collect

public InitialData collect()
Description copied from interface: InitialDataCollector
Let's start the data collection mecanisms. This method is synchronous and only return when all the data are collected

Specified by:
collect in interface InitialDataCollector

done

public void done()
Description copied from interface: InitialDataCollector
Give a chance to properly clean up any used resources.

Specified by:
done in interface InitialDataCollector

readLine

private java.lang.String readLine(java.lang.String prompt)
Read a line of data on the default input.