org.jwall.audit.processor
Class JavaScript

java.lang.Object
  extended by stream.AbstractProcessor
      extended by stream.script.Script
          extended by stream.script.JavaScript
              extended by org.jwall.audit.processor.JavaScript
All Implemented Interfaces:
EventProcessor<AuditEvent>, stream.Processor, stream.StatefulProcessor

public class JavaScript
extends stream.script.JavaScript
implements EventProcessor<AuditEvent>

Author:
Christian Bockermann <chris@jwall.org>

Field Summary
 
Fields inherited from interface org.jwall.audit.EventProcessor
DELETE_FLAG
 
Constructor Summary
JavaScript()
           
 
Method Summary
 AuditEvent processEvent(AuditEvent event, Map<String,Object> context)
          This method is called upon event reception.
 
Methods inherited from class stream.script.JavaScript
init, process
 
Methods inherited from class stream.script.Script
getFile, getScript, setFile, setScript
 
Methods inherited from class stream.AbstractProcessor
finish, resetState
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaScript

public JavaScript()
Method Detail

processEvent

public AuditEvent processEvent(AuditEvent event,
                               Map<String,Object> context)
                        throws Exception
Description copied from interface: EventProcessor
This method is called upon event reception. The given map provides a context to communicate data between several event-processors. The implementor of this interface needs to take care that calls to this class my come from different threads, i.e. no state should be stored in the class to diminish the risk of concurrency problems.

Specified by:
processEvent in interface EventProcessor<AuditEvent>
Returns:
Throws:
Exception


Copyright © 2012 jwall.org. All Rights Reserved.