Jacson

de.spieleck.app.jacson.eval
Class CountEvaluator

java.lang.Object
  extended byde.spieleck.app.jacson.PluginBase
      extended byde.spieleck.app.jacson.eval.EvaluatorBase
          extended byde.spieleck.app.jacson.eval.CountEvaluator
All Implemented Interfaces:
ConfigVerify.Acceptor, JacsonChunkDrain, JacsonEvaluator, JacsonRegistrable, JacsonReporting, JacsonStately

public class CountEvaluator
extends EvaluatorBase
implements ConfigVerify.Acceptor

A JacsonEvaluator simply counting everything, whatever it is. Merely an demonstration example.

Author:
fsn

Field Summary
protected  long count
          Count the chunks coming in
 
Constructor Summary
CountEvaluator()
           
 
Method Summary
 boolean accept(ConfigNode cn)
           
 void init(ConfigNode config, JacsonRegistry registry)
           
 void putChunk(java.lang.String chunk)
          Feed a single chunk into this filter
 void summary()
          Do nothing default implementation
 
Methods inherited from class de.spieleck.app.jacson.PluginBase
getRegReport, getRegState, registerReport, registerState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.spieleck.app.jacson.JacsonStately
registerState
 
Methods inherited from interface de.spieleck.app.jacson.JacsonReporting
registerReport
 

Field Detail

count

protected long count
Count the chunks coming in

Constructor Detail

CountEvaluator

public CountEvaluator()
Method Detail

init

public void init(ConfigNode config,
                 JacsonRegistry registry)
          throws JacsonConfigException
Specified by:
init in interface JacsonRegistrable
Throws:
JacsonConfigException

accept

public boolean accept(ConfigNode cn)
Specified by:
accept in interface ConfigVerify.Acceptor

putChunk

public void putChunk(java.lang.String chunk)
Description copied from interface: JacsonChunkDrain
Feed a single chunk into this filter

Specified by:
putChunk in interface JacsonChunkDrain

summary

public void summary()
Description copied from class: PluginBase
Do nothing default implementation

Specified by:
summary in interface JacsonReporting
Overrides:
summary in class PluginBase

Spieleck

Copyleft 2002 spieleck.de.