Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::acs::nc::LoggingConsumer Class Reference

Inheritance diagram for alma::acs::nc::LoggingConsumer:

Inheritance graph
[legend]
Collaboration diagram for alma::acs::nc::LoggingConsumer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LoggingConsumer (ContainerServicesBase services, Object receiver) throws AcsJException
void push_structured_event (StructuredEvent structuredEvent)

Protected Member Functions

String getChannelKind ()
String getNotificationFactoryName ()
void configSubscriptions ()

Private Attributes

Method receiveMethod_m = null
Object receiver_m = null

Detailed Description

LoggingConsumer is a a Consumer-derived class designed solely for the purpose of processing notification channel structured events sent automatically by the logging system. Basically all one has to do to use this class is create a LoggingConsumer object providing an object which implements "receive(String xml)" and then invoke the consumerReady() method. Since logging events do not contain complex IDL structs, filtering using the extended trader constraint language should work as well.

Author:
dfugate


Constructor & Destructor Documentation

alma::acs::nc::LoggingConsumer::LoggingConsumer ContainerServicesBase  services,
Object  receiver
throws AcsJException [inline]
 

Creates a new instance of LoggingConsumer

Parameters:
services This is used to access ACS logging system.
receiver An object which implements a method called "receive". The "receive" method must accept one parameter, a string, which is an XML representing the log.
Exceptions:
AcsJException Thrown on any really bad error conditions encountered.


Member Function Documentation

void alma::acs::nc::LoggingConsumer::configSubscriptions  )  [inline, protected]
 

Overridden

Reimplemented from alma::acs::nc::Consumer.

String alma::acs::nc::LoggingConsumer::getChannelKind  )  [inline, protected]
 

Overridden

Returns:
string

Reimplemented from alma::acs::nc::Consumer.

String alma::acs::nc::LoggingConsumer::getNotificationFactoryName  )  [inline, protected]
 

Overridden.

Returns:
string

Reimplemented from alma::acs::nc::Consumer.

void alma::acs::nc::LoggingConsumer::push_structured_event StructuredEvent  structuredEvent  )  [inline]
 

Overridden.

Reimplemented from alma::acs::nc::Consumer.


Member Data Documentation

Method alma::acs::nc::LoggingConsumer::receiveMethod_m = null [private]
 

There is exactly one receive method that will be invoked per LoggingConsumer object.

Object alma::acs::nc::LoggingConsumer::receiver_m = null [private]
 

There is exactly one receiver that will be used by each LoggingConsumer object.


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:54:29 2009 for ACS Java API by doxygen 1.3.8