public class SyslogServiceDescriptor extends ServiceDescriptor
| Modifier and Type | Class and Description |
|---|---|
static class |
SyslogServiceDescriptor.FormatType |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PORT |
| Constructor and Description |
|---|
SyslogServiceDescriptor()
This constructor is used by serialization sybsystem
and is not intended to use directly in client code.
|
SyslogServiceDescriptor(java.lang.String host,
int port,
int facilityCode,
java.lang.String processName,
SyslogServiceDescriptor.FormatType formatType)
Creates a new Syslog descriptor instance.
|
SyslogServiceDescriptor(SyslogServiceDescriptor that) |
| Modifier and Type | Method and Description |
|---|---|
Configuration |
copy() |
boolean |
equals(java.lang.Object o) |
int |
getFacilityCode()
Returns the Facility that generated the message.
|
SyslogServiceDescriptor.FormatType |
getFormatType() |
java.lang.String |
getHost()
Returns Syslog server host.
|
int |
getPort()
Returns Syslog server port.
|
java.lang.String |
getProcessName()
Returns the process on the device that generated the message.
|
int |
hashCode() |
void |
setFacilityCode(int value)
Sets the Facility that generated the message.
|
void |
setFormatType(SyslogServiceDescriptor.FormatType value) |
void |
setHost(java.lang.String value)
Sets Syslog server host.
|
void |
setPort(int value)
Sets Syslog server port.
|
void |
setProcessName(java.lang.String value)
Sets the process on the device that generated the message.
|
java.lang.String |
toString() |
getVersion, setVersionpublic static final int DEFAULT_PORT
public SyslogServiceDescriptor(java.lang.String host,
int port,
int facilityCode,
java.lang.String processName,
SyslogServiceDescriptor.FormatType formatType)
host - the syslog server hostport - the syslog server portfacilityCode - the facility of the messageprocessName - the process namepublic SyslogServiceDescriptor(SyslogServiceDescriptor that)
public SyslogServiceDescriptor()
public java.lang.String getHost()
public void setHost(java.lang.String value)
value - the hostpublic int getPort()
public void setPort(int value)
value - the portpublic int getFacilityCode()
public void setFacilityCode(int value)
value - the facility code. Allowed codes [0-23].public java.lang.String getProcessName()
public void setProcessName(java.lang.String value)
value - the process name. Must not exceed 32 characters.public SyslogServiceDescriptor.FormatType getFormatType()
public void setFormatType(SyslogServiceDescriptor.FormatType value)
public Configuration copy()
copy in class Configurationpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2009-2023. Redwood Software Inc. All rights reserved.