public final class SyslogdConfigFactory extends Object implements SyslogdConfig
Constructor and Description |
---|
SyslogdConfigFactory()
Private constructor
|
SyslogdConfigFactory(InputStream stream)
Constructor for SyslogdConfigFactory.
|
Modifier and Type | Method and Description |
---|---|
String |
getDiscardUei()
getDiscardUei
|
String |
getForwardingRegexp()
getForwardingRegexp
|
HideMessage |
getHideMessages()
getHideMessages
|
String |
getListenAddress()
getListenAddress
|
int |
getMatchingGroupHost()
getMatchingGroupHost
|
int |
getMatchingGroupMessage()
getMatchingGroupMessage
|
boolean |
getNewSuspectOnMessage()
Return whether or not a newSuspect event should be sent when a trap is
received from an unknown IP address.
|
String |
getParser()
getParser
|
int |
getSyslogPort()
Return the port on which SNMP traps should be received.
|
UeiList |
getUeiList()
getUeiList
|
void |
reload()
Reload the config from the default config file
|
public SyslogdConfigFactory() throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
IOException
- Thrown if the specified config file cannot be readorg.exolab.castor.xml.MarshalException
- Thrown if the file does not conform to the schema.org.exolab.castor.xml.ValidationException
- Thrown if the contents do not match the required schema.public SyslogdConfigFactory(InputStream stream) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
Constructor for SyslogdConfigFactory.
stream
- a InputStream
object.org.exolab.castor.xml.MarshalException
- if any.org.exolab.castor.xml.ValidationException
- if any.IOException
public void reload() throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
IOException
- Thrown if the specified config file cannot be
read/loadedorg.exolab.castor.xml.MarshalException
- Thrown if the file does not conform to the schema.org.exolab.castor.xml.ValidationException
- Thrown if the contents do not match the required schema.public int getSyslogPort()
getSyslogPort
in interface SyslogdConfig
public String getListenAddress()
getListenAddress
getListenAddress
in interface SyslogdConfig
String
object.public boolean getNewSuspectOnMessage()
getNewSuspectOnMessage
in interface SyslogdConfig
public String getForwardingRegexp()
getForwardingRegexp
getForwardingRegexp
in interface SyslogdConfig
String
object.public int getMatchingGroupHost()
getMatchingGroupHost
getMatchingGroupHost
in interface SyslogdConfig
public int getMatchingGroupMessage()
getMatchingGroupMessage
getMatchingGroupMessage
in interface SyslogdConfig
public String getParser()
getParser
getParser
in interface SyslogdConfig
public UeiList getUeiList()
getUeiList
getUeiList
in interface SyslogdConfig
UeiList
object.public HideMessage getHideMessages()
getHideMessages
getHideMessages
in interface SyslogdConfig
HideMessage
object.public String getDiscardUei()
getDiscardUei
getDiscardUei
in interface SyslogdConfig
String
object.Copyright © 2017. All rights reserved.