|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nitido.nim.NiMKernelService
com.nitido.nim.EventMonitorService
public abstract class EventMonitorService
EventMonitorService is the NiMKernel module responsible for logging application level event messages.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
EventMonitorService(NiMKernelServiceVisa visa)
This class constructor is used by NiMKernel to instantiate a new EventMonitorService |
|
| Method Summary | |
|---|---|
protected abstract void |
init(NiMKernel kernel,
ConfigurationService confService)
This method is used to initialize the kernel service. |
abstract void |
logEvent(java.lang.String eventName,
java.lang.String msg,
Credential credential)
This method is used to log the given message for the given event name. |
abstract boolean |
needToLogEvent(java.lang.String eventName,
Credential credential)
This method indicates whether the given event needs to be logged. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventMonitorService(NiMKernelServiceVisa visa)
visa - Reference to the NiMKernelServiceVisa object required to
instantiate the service. This parameter is required to
ensure that only the NiMkernel can instantiate a reference
to this service.| Method Detail |
|---|
protected abstract void init(NiMKernel kernel,
ConfigurationService confService)
throws InitializationFailedException,
NiMException
NiMKernelService
init in class NiMKernelServicekernel - Reference to the NiMKernel object that instantiated the
service.confService - A reference to the configuration service. All the service
implementations (except ConfigurationService)
should retrieve the setting information from it.
InitializationFailedException - If unable to initialize the kernel service.
NiMException - If service initialization can not be done due to failure in
establish a connection to the back-end service. Not all
service implementation will throw this exception.
public abstract void logEvent(java.lang.String eventName,
java.lang.String msg,
Credential credential)
eventName - The name of the event to be logged.msg - The message associated with the event being loggedcredential - The credential of the user logging the event.
public abstract boolean needToLogEvent(java.lang.String eventName,
Credential credential)
The creation of the log message can consume a significant amount of time, a developer can first call this method to determine whether the corresponding log message is to be logged.
eventName - The name that uniquely identifies the event to be logged.credential - The credential of the user logging the event
|
Nitido NiM 2.5 Java API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.