|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.syslogd.SyslogHandler
public final class SyslogHandler
This class implements the User Datagram Protocol (UDP) event receiver. When the an agent sends an event via UDP/IP the receiver will process the event and then add the UUIDs to the internal list. If the event is successfully processed then an event-receipt is returned to the caller.
| Nested Class Summary | |
|---|---|
static interface |
SyslogHandler.EventHandler
|
| Field Summary | |
|---|---|
static int |
RUNNING
This state is used to define the normal runtime condition of a Fiber. |
static int |
START_PENDING
This is the initial Fiber state. |
static int |
STARTING
This state is used to define when a Fiber has begun the
initilization process. |
static String[] |
STATUS_NAMES
The string names that correspond to the states of the fiber. |
static int |
STOP_PENDING
This state is used to denote when the Fiber is
terminating processing. |
static int |
STOPPED
This state represents the final resting state of a Fiber. |
| Constructor Summary | |
|---|---|
SyslogHandler()
|
|
| Method Summary | |
|---|---|
void |
destroy()
|
String |
getName()
|
Integer |
getPort()
|
int |
getStatus()
|
void |
init()
|
void |
setLogPrefix(String prefix)
Removes an event handler from the list of handler called when an event is received. |
void |
setPort(Integer port)
|
static void |
setSyslogConfig(SyslogdConfig syslogdConfig)
|
void |
start()
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String[] STATUS_NAMES
public static final int START_PENDING
Fiber state. When the
Fiber begins it startup process it will transition to
the STARTING state. A Fiber in a start
pending state has not begun any of the initilization process.
public static final int STARTING
Fiber has begun the
initilization process. Once the initilization process is completed the
Fiber will transition to a RUNNING
status.
public static final int RUNNING
Fiber. When a Fiber is in this state
then it is processing normally.
public static final int STOP_PENDING
Fiber is
terminating processing. This state is always followed by the state
ST0PPED.
public static final int STOPPED
Fiber.
Depending on the implementation it may be possible to resurect the
Fiber from this state.
| Constructor Detail |
|---|
public SyslogHandler()
| Method Detail |
|---|
public static void setSyslogConfig(SyslogdConfig syslogdConfig)
public void start()
public void stop()
public String getName()
public int getStatus()
public void init()
public void destroy()
public void setPort(Integer port)
public Integer getPort()
public void setLogPrefix(String prefix)
equals() inherieted from the Object
class.
A reference to the event handler.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||