|
Vordel SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vordel.circuit.FilterContainer com.vordel.circuit.MessageProcessor
public abstract class MessageProcessor
A FilterContainer that is used to implement the underlying processing functionality of a Filter.
Field Summary | |
---|---|
protected int |
logMask
|
Constructor Summary | |
---|---|
MessageProcessor()
|
Method Summary | |
---|---|
void |
filterAttached(FilterConfigureContext ctx,
Entity entity)
Called on a filter's container when the filter is configured. |
void |
filterDetached()
|
java.lang.String |
getCategory()
Get the category of this processor |
abstract boolean |
invoke(CircuitInvocation c,
Message m)
invoked by circuit to act on a message |
void |
logFailure(Message m)
Default action for failure logging event |
void |
logFatal(Message m)
Default action for fatal logging event |
void |
logMessagePayload(Message m,
com.vordel.log.LogFormatter formatter)
Default action for a payload logging event |
void |
logSuccess(Message m)
Default action for a successful logging event |
protected void |
report(java.lang.String msg)
|
protected void |
report(java.lang.String msg,
java.lang.Throwable t)
|
java.lang.String |
toString()
|
Methods inherited from class com.vordel.circuit.FilterContainer |
---|
configureFilter, createFilterContainer, getFilter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int logMask
Constructor Detail |
---|
public MessageProcessor()
Method Detail |
---|
public void filterAttached(FilterConfigureContext ctx, Entity entity) throws EntityStoreException
FilterContainer
filterAttached
in class FilterContainer
ctx
- configuration context for the filter attached to this
container.
EntityStoreException
public void filterDetached()
filterDetached
in class FilterContainer
public abstract boolean invoke(CircuitInvocation c, Message m) throws CircuitAbortException
c
- The CircuitInvocation context, including the filter's owner
circuit.m
- The message
CircuitAbortException
public java.lang.String getCategory()
public void logFatal(Message m) throws CircuitAbortException
CircuitAbortException
public void logFailure(Message m) throws CircuitAbortException
CircuitAbortException
public void logSuccess(Message m) throws CircuitAbortException
CircuitAbortException
public void logMessagePayload(Message m, com.vordel.log.LogFormatter formatter) throws java.io.IOException, com.vordel.log.LoggingException
java.io.IOException
com.vordel.log.LoggingException
public java.lang.String toString()
toString
in class java.lang.Object
protected final void report(java.lang.String msg, java.lang.Throwable t)
protected final void report(java.lang.String msg)
|
Vordel SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |