Public Member Functions | Protected Member Functions

alma.acs.nc.ExecutiveConsumer Class Reference

Inheritance diagram for alma.acs.nc.ExecutiveConsumer:
alma.acs.nc.Consumer alma.acs.nc.ReconnectableSubscriber

List of all members.

Public Member Functions

 ExecutiveConsumer (String channelName, ContainerServicesBase services) throws AcsJException
void push_structured_event (org.omg.CosNotification.StructuredEvent structuredEvent)

Protected Member Functions

void processEvent (java.lang.Object corbaObject, alma.acsnc.EventDescription eventDescrip)

Detailed Description

This is a prototype consumer designed to consume all types of events on a given event channel and print a minimal amount of data to standard out. Whether it is used or not in the GUI is still up for debate.

Author:
dfugate

Constructor & Destructor Documentation

alma.acs.nc.ExecutiveConsumer.ExecutiveConsumer ( String  channelName,
ContainerServicesBase  services 
) throws AcsJException

Creates a new instance of ExecutiveConsumer

Parameters:
channelName Name of the channel to consume events from.
services ContainerServices which provide access to the ACS logger among other things.
Exceptions:
AcsJException Thrown from superclass.

References alma.acs.nc.Consumer.addSubscription().


Member Function Documentation

void alma.acs.nc.ExecutiveConsumer.processEvent ( java.lang.Object  corbaObject,
alma.acsnc.EventDescription  eventDescrip 
) [protected]

Invoked each time an event is received. To be overriden.

Parameters:
corbaObject The ICD event extracted from a CORBA Any.
eventDescrip Description of the ICD event as defined in acsnc.idl

References alma.acs.nc.Consumer.m_channelName, and alma.acs.nc.Consumer.m_logger.

Referenced by alma.acs.nc.ExecutiveConsumer.push_structured_event().

void alma.acs.nc.ExecutiveConsumer.push_structured_event ( org.omg.CosNotification.StructuredEvent  structuredEvent  ) 

CORBA method invoked each time an event is received.

Parameters:
structuredEvent CORBA structured event sent by a supplier.

References alma.acs.nc.Consumer.m_channelName, alma.acs.nc.Consumer.m_logger, and alma.acs.nc.ExecutiveConsumer.processEvent().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties