|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.jnrpe.events.EventsUtil
public final class EventsUtil
This is an utility class than can be used to send simply events to all the registered listeners.
| Method Summary | |
|---|---|
static void |
sendEvent(Set<IJNRPEEventListener> vListeners,
Object sender,
LogEvent evt,
String sMessage)
This method sends log events to the registered listeners. |
static void |
sendEvent(Set<IJNRPEEventListener> vListeners,
Object sender,
LogEvent evt,
String sMessage,
Throwable exception)
This method sends log events to the registered listeners. |
static void |
sendEvent(Set<IJNRPEEventListener> vListeners,
Object sender,
String sCustomEvtType,
EventParam... vParams)
This method is used to send custom events to the registered listeners. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void sendEvent(Set<IJNRPEEventListener> vListeners,
Object sender,
LogEvent evt,
String sMessage)
vListeners - The list of all the listeners that will receive the eventsender - The sender of the event (usually this)evt - The event typesMessage - The log message
public static void sendEvent(Set<IJNRPEEventListener> vListeners,
Object sender,
LogEvent evt,
String sMessage,
Throwable exception)
vListeners - The list of all the listeners that will receive the eventsender - The sender of the event (usually this)evt - The event typesMessage - The log messageexception - The exception to be, eventually, logged (can be null).
public static void sendEvent(Set<IJNRPEEventListener> vListeners,
Object sender,
String sCustomEvtType,
EventParam... vParams)
vListeners - The list of all the listeners that will receive the eventsender - The sender of the event (usually this)sCustomEvtType - The custom event typevParams - The event parameters
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||