public class ArchiveConsumer
extends java.lang.Object
These events are not IDL-defined structs! The type parameter IDLEntity is therefore cheating, to get by the checks in the base class. This is OK because we intercept the events at the 'push_structured_event_called' level, before any event type information gets applied in the processing. See ACS/Documents/Logging_and_Archiving.doc (currently a bit outdated) and archiveevents :: archiveeventsArchiveSupplier.cpp for detail of the sender code. Filtering using the extended trader constraint language should work.
Basically all one has to do to use this class is create an ArchiveConsumer object providing an ArchiveReceiver callback, and then invoke the startReceivingEvents() method.
Note that in Alma the archiving NC has been replaced by the TMCDB monitoring framework. The eventGUI is the only known Java client for the old archiving NC, thus we continue supporting this class at medium inspiration level.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ArchiveConsumer.ArchiveReceiver
The client must implement this callback
|
| Constructor and Description |
|---|
ArchiveConsumer(ArchiveConsumer.ArchiveReceiver receiver,
ContainerServicesBase services,
org.omg.CosNaming.NamingContext namingService)
Creates a new instance of ArchiveConsumer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect() |
void |
startReceivingEvents() |
public ArchiveConsumer(ArchiveConsumer.ArchiveReceiver receiver, ContainerServicesBase services, org.omg.CosNaming.NamingContext namingService) throws AcsJException
services - receiver - AcsJExceptionpublic final void startReceivingEvents()
throws AcsJIllegalStateEventEx,
AcsJCouldntPerformActionEx
AcsJIllegalStateEventExAcsJCouldntPerformActionExpublic final void disconnect()
throws AcsJIllegalStateEventEx,
AcsJCouldntPerformActionEx
AcsJIllegalStateEventExAcsJCouldntPerformActionEx