public class SyslogFilter extends Object
Constructor and Description |
---|
SyslogFilter()
Instantiates a new Syslog filter.
|
SyslogFilter(String name,
String rule,
String messageFormat)
Instantiates a new Syslog filter.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessageFormat()
Gets the message format.
|
String |
getName()
Gets the filter name.
|
String |
getRule()
Gets the filter rule.
|
Boolean |
isEnabled()
Checks if the rule is enabled.
|
boolean |
passFilter(NorthboundAlarm alarm)
Pass filter.
|
void |
setEnabled(Boolean enabled)
Sets the enabled flag.
|
void |
setMessageFormat(String messageFormat)
Sets the message format.
|
void |
setName(String name)
Sets the filter name.
|
void |
setRule(String rule)
Sets the filter rule.
|
public Boolean isEnabled()
public String getName()
public String getRule()
public String getMessageFormat()
public void setEnabled(Boolean enabled)
enabled
- the new enabledpublic void setName(String name)
name
- the new namepublic void setRule(String rule)
rule
- the rulepublic void setMessageFormat(String messageFormat)
messageFormat
- the new message formatpublic boolean passFilter(NorthboundAlarm alarm)
alarm
- the alarmCopyright © 2017. All rights reserved.