Jacson

de.spieleck.app.jacson
Class Jacson

java.lang.Object
  extended byde.spieleck.app.jacson.JacsonBlock
      extended byde.spieleck.app.jacson.Jacson
All Implemented Interfaces:
ConfigVerify.Acceptor, JacsonChunkDrain, JacsonEvaluator, JacsonNames, JacsonRegistrable, JacsonReporting, JacsonStately
Direct Known Subclasses:
JacsonGeneric, JacsonTail

public class Jacson
extends JacsonBlock

The master Object to be used when Jacson is embedded into other programs and also a main() driver to enable Jacson on the commandline.

Author:
fsn

Field Summary
protected  JacsonState params
           
 
Fields inherited from class de.spieleck.app.jacson.JacsonBlock
chunkDispatch, evaluators, filters, label, myState
 
Fields inherited from interface de.spieleck.app.jacson.JacsonNames
BLOCKREPORT, JS_DEBUG_FLAG, JS_MAIN_CFG, JS_OBJ_EVAL, JS_OBJ_FILTER, JS_OBJ_LABEL, JS_OBJ_REPORT, JS_OBJ_SELECT, JS_OBJ_SOURCE, JS_PCK_EVAL, JS_PCK_FILTER, JS_PCK_REPORT, JS_PCK_SELECT, JS_PCK_SOURCE, JS_REP_BLOCK, JS_REP_CHUNK, JS_REP_EVAL, JS_REP_FILTER, JS_REP_LABEL, JS_REP_LIST, JS_REP_LOG, JS_REP_NAME, JS_REP_NUMBER, JS_REP_PROC, JS_REP_RESULT, JS_REP_SUMMARY, JS_REP_TIME, JS_REP_TSTAMP, JS_REPORT_CFG, JS_STATE_ID
 
Constructor Summary
protected Jacson()
           
  Jacson(ConfigNode config, JacsonState params)
           
  Jacson(JacsonState params)
           
 
Method Summary
protected static void exit(java.lang.Class clazz, java.lang.Throwable e)
           
static void main(java.lang.String[] args)
           
static ConfigNode obtainConfig(java.lang.String name, JacsonState rootState)
           
static int paramArgs(java.lang.String[] args, JacsonState rootState)
          Obtain Jacson parameters identified by "=".
 void run(JacsonChunkSource chunker)
           
 void setParams(JacsonState params)
           
 void summary()
           
 
Methods inherited from class de.spieleck.app.jacson.JacsonBlock
accept, addEvaluator, addFilter, addReport, clearReports, createReport, dispatchChunk, getLabel, getMyDrain, getReport, init, obtainEvaluators, obtainFilters, obtainReports, putChunk, registerReport, registerReport, registerState, registerState, setChunkDispatch, summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

params

protected JacsonState params
Constructor Detail

Jacson

protected Jacson()

Jacson

public Jacson(JacsonState params)

Jacson

public Jacson(ConfigNode config,
              JacsonState params)
       throws JacsonConfigException
Method Detail

setParams

public void setParams(JacsonState params)

run

public void run(JacsonChunkSource chunker)
         throws java.io.IOException,
                JacsonException
Throws:
java.io.IOException
JacsonException

summary

public void summary()
Specified by:
summary in interface JacsonReporting
Overrides:
summary in class JacsonBlock

exit

protected static void exit(java.lang.Class clazz,
                           java.lang.Throwable e)

paramArgs

public static int paramArgs(java.lang.String[] args,
                            JacsonState rootState)
Obtain Jacson parameters identified by "=".


obtainConfig

public static ConfigNode obtainConfig(java.lang.String name,
                                      JacsonState rootState)
                               throws JacsonConfigException
Throws:
JacsonConfigException

main

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

Spieleck

Copyleft 2002 spieleck.de.