mysql
Class ObserveSql.Extract

java.lang.Object
  extended by util.CommandLineParser
      extended by util.PropertyParser
          extended by mysql.ObserveSql.Extract
Enclosing class:
ObserveSql

public static final class ObserveSql.Extract
extends PropertyParser

A class to retrive columns from a database and output it into an ascii-file for e.g. plotting. This class can additionally calculate external parameters via its parameter set.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.CommandLineParser
CommandLineParser.Test
 
Field Summary
private static String FOOT
          A footer message.
private static Map<String,String> MAP
          Convert command-line switches to keys use of switches.
private  ParameterClustering set
          The parameter cluster used to calculate missing columns.
private static String SWITCHES
          The switches for adding properties.
private static Map<String,String> USE
          Detailed use of switches.
private static String ZERO
          The switches for adding properties.
 
Constructor Summary
ObserveSql.Extract()
          Constructs the parser to the sensor tester.
 
Method Summary
static void main(String[] arg)
          Parses the command line and prints output to standard out.
private  boolean process(String[] arg)
          Process the switches.
 
Methods inherited from class util.PropertyParser
parseMap, parseMap, parseProperties, parseProperties, parseProperties
 
Methods inherited from class util.CommandLineParser
getArguments, getCommandLine, getCommands, getRegisteredSwitches, hasAnySwitch, hasSwitch, hasSwitch, haveAllSwitches, parse, printCommandLine, registerLine, registerSwitches, setCommands, staticUsage, usage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SWITCHES

private static final String SWITCHES
The switches for adding properties.

See Also:
Constant Field Values

ZERO

private static final String ZERO
The switches for adding properties.

See Also:
Constant Field Values

USE

private static final Map<String,String> USE
Detailed use of switches.


MAP

private static final Map<String,String> MAP
Convert command-line switches to keys use of switches.


FOOT

private static final String FOOT
A footer message.

See Also:
Constant Field Values

set

private ParameterClustering set
The parameter cluster used to calculate missing columns.

Constructor Detail

ObserveSql.Extract

public ObserveSql.Extract()
Constructs the parser to the sensor tester. All known switches are registered.

Method Detail

process

private boolean process(String[] arg)
                 throws ParseException,
                        SQLException,
                        IOException
Process the switches.

Returns:
True, if processing was successful.
Throws:
ParseException
SQLException
IOException

main

public static void main(String[] arg)
                 throws ParseException,
                        SQLException,
                        IOException
Parses the command line and prints output to standard out.

Throws:
ParseException
SQLException
IOException