

Public Member Functions | |
| FridgeConsumer (alma.acs.container.ContainerServices services) throws Exception | |
| void | processEvent (Object corbaData) |
Static Public Member Functions | |
| static void | main (String[] args) |
Package Attributes | |
| int | eventCount = 0 |
| volatile boolean | readyForShutdown = false |
FridgeConsumer is a simple class that connects to the "fridge" notification channel, receives five events, and then disconnects from the channel.
| alma::nctest::clients::FridgeConsumer::FridgeConsumer | ( | alma.acs.container.ContainerServices | services | ) | throws Exception [inline] |
Creates a new instance of FridgeConsumer
Referenced by main().
| static void alma::nctest::clients::FridgeConsumer::main | ( | String[] | args | ) | [inline, static] |
Illustrates a simple example outside of the component/container model.
| args | Not used! |
References alma::acs::nc::Consumer::addSubscription(), alma::acs::nc::Consumer::consumerReady(), alma::acs::nc::Consumer::disconnect(), FridgeConsumer(), alma::acs::component::client::ComponentClient::getContainerServices(), readyForShutdown, and alma::acs::component::client::ComponentClient::tearDown().
| void alma::nctest::clients::FridgeConsumer::processEvent | ( | Object | corbaData | ) | [inline] |
processEvent must be overriden in Consumer subclasses to do something useful.
| corbaData | CORBA data extracted from the event. |
Reimplemented from alma::acs::nc::Consumer.
References eventCount, readyForShutdown, and alma::acs::nc::Consumer::suspend().
int alma::nctest::clients::FridgeConsumer::eventCount = 0 [package] |
Total number of events that have been consumed.
Referenced by processEvent().
volatile boolean alma::nctest::clients::FridgeConsumer::readyForShutdown = false [package] |
Referenced by main(), and processEvent().
1.6.2