public class StatefulFilter extends java.lang.Object implements ISOFilter, Configurable
ISOFilter.VetoException
Constructor and Description |
---|
StatefulFilter()
Creates a new instance of StateFulFilter
|
Modifier and Type | Method and Description |
---|---|
ISOMsg |
filter(ISOChannel iSOChannel,
ISOMsg m,
LogEvent evt) |
int |
getIgnoredField(int index)
Indexed getter for property ignoredFields.
|
int[] |
getIgnoredFields()
Getter for property ignoredFields.
|
int[] |
getKey()
Getter for property key.
|
int |
getKey(int index)
Indexed getter for property key.
|
java.lang.String |
getKeyPrefix()
Getter for property keyPrefix.
|
int |
getMatchDirection()
Getter for property matchDirection.
|
int |
getSavedField(int index)
Indexed getter for property savedFields.
|
int[] |
getSavedFields()
Getter for property savedFields.
|
protected Space |
getSpace()
Getter for property space.
|
long |
getTimeout()
Getter for property timeout.
|
boolean |
isOverwriteOriginalFields()
Getter for property overwriteOriginalFields.
|
boolean |
isVetoUnmatched()
Getter for property vetoUnmatched.
|
void |
setConfiguration(Configuration cfg) |
void |
setIgnoredField(int index,
int ignoredFields)
Indexed setter for property ignoredFields.
|
void |
setIgnoredFields(int[] ignoredFields)
Setter for property ignoredFields.
|
void |
setKey(int[] key)
Setter for property key.
|
void |
setKey(int index,
int key)
Indexed setter for property key.
|
void |
setKeyPrefix(java.lang.String keyPrefix)
Setter for property keyPrefix.
|
void |
setMatchDirection(int matchDirection)
Setter for property matchDirection.
|
void |
setOverwriteOriginalFields(boolean overwriteOriginalFields)
Setter for property overwriteOriginalFields.
|
void |
setSavedField(int index,
int savedFields)
Indexed setter for property savedFields.
|
void |
setSavedFields(int[] savedFields)
Setter for property savedFields.
|
protected void |
setSpace(Space space)
Setter for property space.
|
void |
setSpace(java.lang.String uri) |
void |
setTimeout(long timeout)
Setter for property timeout.
|
void |
setVetoUnmatched(boolean vetoUnmatched)
Setter for property vetoUnmatched.
|
protected Space getSpace()
protected void setSpace(Space space)
space
- New value of property space.public java.lang.String getKeyPrefix()
public void setKeyPrefix(java.lang.String keyPrefix)
keyPrefix
- New value of property keyPrefix.public void setConfiguration(Configuration cfg) throws ConfigurationException
setConfiguration
in interface Configurable
cfg
- Configuration objectConfigurationException
public void setSpace(java.lang.String uri)
public ISOMsg filter(ISOChannel iSOChannel, ISOMsg m, LogEvent evt) throws ISOFilter.VetoException
filter
in interface ISOFilter
iSOChannel
- current ISOChannel instancem
- ISOMsg to filterevt
- LogEventISOFilter.VetoException
public boolean isVetoUnmatched()
public void setVetoUnmatched(boolean vetoUnmatched)
vetoUnmatched
- New value of property vetoUnmatched.public int getMatchDirection()
public void setMatchDirection(int matchDirection)
matchDirection
- New value of property matchDirection.public int getIgnoredField(int index)
index
- Index of the property.index
.public int[] getIgnoredFields()
public void setIgnoredField(int index, int ignoredFields)
index
- Index of the property.ignoredFields
- New value of the property at index
.public void setIgnoredFields(int[] ignoredFields)
ignoredFields
- New value of property ignoredFields.public int getSavedField(int index)
index
- Index of the property.index
.public int[] getSavedFields()
public void setSavedField(int index, int savedFields)
index
- Index of the property.savedFields
- New value of the property at index
.public void setSavedFields(int[] savedFields)
savedFields
- New value of property savedFields.public int getKey(int index)
index
- Index of the property.index
.public int[] getKey()
public void setKey(int index, int key)
index
- Index of the property.key
- New value of the property at index
.public void setKey(int[] key)
key
- New value of property key.public long getTimeout()
public void setTimeout(long timeout)
timeout
- New value of property timeout.public boolean isOverwriteOriginalFields()
public void setOverwriteOriginalFields(boolean overwriteOriginalFields)
overwriteOriginalFields
- New value of property overwriteOriginalFields.