public class SyslogServiceDescriptor extends ServiceDescriptor
| 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 facility,
java.lang.String processName)
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.
|
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 |
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()
public SyslogServiceDescriptor(java.lang.String host,
int port,
int facility,
java.lang.String processName)
host - the syslog server hostport - the syslog server portfacility - the facility of the messageprocessName - the process namepublic SyslogServiceDescriptor(SyslogServiceDescriptor that)
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 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 © JSCAPE LLC. 1999-2018. All Rights Reserved