org.jwall.log
Class LogMessageProcessorPipeline

java.lang.Object
  extended by org.jwall.log.LogMessageProcessorPipeline
All Implemented Interfaces:
EventProcessorPipeline<LogMessage>

public class LogMessageProcessorPipeline
extends Object
implements EventProcessorPipeline<LogMessage>


Constructor Summary
LogMessageProcessorPipeline()
           
 
Method Summary
 Double getPriority(EventProcessor<LogMessage> proc)
           
 void process(LogMessage event)
           
 void register(Double priority, EventProcessor<LogMessage> proc)
          Register a new event processor in this pipeline.
 void unregister(EventProcessor<LogMessage> proc)
          Unregister the given processor from this pipeline.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogMessageProcessorPipeline

public LogMessageProcessorPipeline()
Method Detail

process

public void process(LogMessage event)
             throws EventProcessorException
Specified by:
process in interface EventProcessorPipeline<LogMessage>
Throws:
EventProcessorException
See Also:
EventProcessorPipeline.process(org.jwall.audit.Event)

register

public void register(Double priority,
                     EventProcessor<LogMessage> proc)
Description copied from interface: EventProcessorPipeline
Register a new event processor in this pipeline. The processor may specify a priority, signaling at which position it wants to be inserted. Processing is done from low numbers to high numbers. Priorities smaller than 1 and larger than 10 are reserved to internal processors. Registering a non-internal processor with invalid priority will register that processor with the nearest valid priority value.

Specified by:
register in interface EventProcessorPipeline<LogMessage>
Parameters:
priority - The priority with which this processor is inserted into the pipeline.
proc - The new processor to be added to the pipeline.
See Also:
EventProcessorPipeline.register(java.lang.Double, org.jwall.audit.EventProcessor)

unregister

public void unregister(EventProcessor<LogMessage> proc)
Description copied from interface: EventProcessorPipeline
Unregister the given processor from this pipeline.

Specified by:
unregister in interface EventProcessorPipeline<LogMessage>
Parameters:
proc - The processor to remove from the pipeline.
See Also:
EventProcessorPipeline.unregister(org.jwall.audit.EventProcessor)

getPriority

public Double getPriority(EventProcessor<LogMessage> proc)
Specified by:
getPriority in interface EventProcessorPipeline<LogMessage>


Copyright © 2012 jwall.org. All Rights Reserved.