|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
EventAccess | Remote interface for the event access enterprise bean. |
EventAccessHome | Remote home interface for the event access enterprise bean. |
EventAccessLocal | Local interface for the event access enterprise bean. |
EventAccessLocalHome | Local home interface for the event access enterprise bean. |
Exception Summary | |
DataStoreNotEnabledException | This exception is thrown from event access when a method call requires an interaction with the data store and the data store is not enabled. |
This package enables event consumers to interact with the event access layer.
Applications can use the classes in this package to query and purge the contents of the event data store.
InitialContext context = new InitialContext(); Object eventAccessHomeObj = context.lookup("ejb/com/ibm/events/access/EventAccess");
EventAccessHome eventAccessHome = (EventAccessHome) PortableRemoteObject.narrow(eventAccessHomeObj, EventAccessHome.class); eventAccess = (EventAccess)eventAccessHome.create(); try { eventAccess.queryByEventGroup("critical_hosts", "CommonBaseEvent[@severity>30]", true, // ascending order 5000); // max number of events } catch(EventsException e) { ... }
|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |