Class SyslogServiceDescriptor
- java.lang.Object
-
- com.jscape.inet.mft.management.descriptors.Configuration
-
- com.jscape.inet.mft.management.descriptors.ServiceDescriptor
-
- com.jscape.inet.mft.subsystems.audit.syslog.SyslogServiceDescriptor
-
- All Implemented Interfaces:
com.jscape.util.db.IntVersioned,java.io.Serializable
public class SyslogServiceDescriptor extends ServiceDescriptor
Syslog service descriptor. The service described by this descriptor takes responsibility for logging system events to Syslog server.- Author:
- Roman Sheshunov
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSyslogServiceDescriptor.FormatType
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_PORT
-
Constructor Summary
Constructors Constructor Description SyslogServiceDescriptor()This constructor is used by serialization sybsystem and is not intended to use directly in client code.SyslogServiceDescriptor(SyslogServiceDescriptor that)SyslogServiceDescriptor(java.lang.String host, int port, int facilityCode, java.lang.String processName, SyslogServiceDescriptor.FormatType formatType)Creates a new Syslog descriptor instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Configurationcopy()booleanequals(java.lang.Object o)intgetFacilityCode()Returns the Facility that generated the message.SyslogServiceDescriptor.FormatTypegetFormatType()java.lang.StringgetHost()Returns Syslog server host.intgetPort()Returns Syslog server port.java.lang.StringgetProcessName()Returns the process on the device that generated the message.inthashCode()voidsetFacilityCode(int value)Sets the Facility that generated the message.voidsetFormatType(SyslogServiceDescriptor.FormatType value)voidsetHost(java.lang.String value)Sets Syslog server host.voidsetPort(int value)Sets Syslog server port.voidsetProcessName(java.lang.String value)Sets the process on the device that generated the message.java.lang.StringtoString()-
Methods inherited from class com.jscape.inet.mft.management.descriptors.Configuration
getVersion, setVersion
-
-
-
-
Field Detail
-
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SyslogServiceDescriptor
public SyslogServiceDescriptor(java.lang.String host, int port, int facilityCode, java.lang.String processName, SyslogServiceDescriptor.FormatType formatType)Creates a new Syslog descriptor instance.- Parameters:
host- the syslog server hostport- the syslog server portfacilityCode- the facility of the messageprocessName- the process name
-
SyslogServiceDescriptor
public SyslogServiceDescriptor(SyslogServiceDescriptor that)
-
SyslogServiceDescriptor
public SyslogServiceDescriptor()
This constructor is used by serialization sybsystem and is not intended to use directly in client code.
-
-
Method Detail
-
getHost
public java.lang.String getHost()
Returns Syslog server host.- Returns:
- the host
-
setHost
public void setHost(java.lang.String value)
Sets Syslog server host.- Parameters:
value- the host
-
getPort
public int getPort()
Returns Syslog server port.- Returns:
- the port
-
setPort
public void setPort(int value)
Sets Syslog server port.- Parameters:
value- the port
-
getFacilityCode
public int getFacilityCode()
Returns the Facility that generated the message.- Returns:
- the facility code
-
setFacilityCode
public void setFacilityCode(int value)
Sets the Facility that generated the message.- Parameters:
value- the facility code. Allowed codes [0-23].
-
getProcessName
public java.lang.String getProcessName()
Returns the process on the device that generated the message.- Returns:
- the process name
-
setProcessName
public void setProcessName(java.lang.String value)
Sets the process on the device that generated the message.- Parameters:
value- the process name. Must not exceed 32 characters.
-
getFormatType
public SyslogServiceDescriptor.FormatType getFormatType()
-
setFormatType
public void setFormatType(SyslogServiceDescriptor.FormatType value)
-
copy
public Configuration copy()
- Specified by:
copyin classConfiguration
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-