alma::contLogTest::TestLogLevelsCompImpl::TestLogLevelsCompImpl Class Reference

Inheritance diagram for alma::contLogTest::TestLogLevelsCompImpl::TestLogLevelsCompImpl:
Inheritance graph
[legend]
Collaboration diagram for alma::contLogTest::TestLogLevelsCompImpl::TestLogLevelsCompImpl:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void initialize (ContainerServices containerServices)
void execute ()
void cleanUp ()
void aboutToAbort ()
ComponentStates componentState ()
String name ()
int[] getLevels () throws CouldntPerformActionEx
void logDummyMessages (int[] coreLevels) throws IllegalArgumentEx

Static Public Attributes

static final String PROP_ASSERTION_MESSAGE = "TestLogLevelsCompAssert"

Private Attributes

ContainerServices m_containerServices
Logger m_logger
int levels []

Detailed Description

A very simple component that does not make use of alma.acs.component.ComponentImplBase.

Javadoc comments have been removed to keep the listing for the tutorial shorter.

Author:
eallaert

Member Function Documentation

void alma::contLogTest::TestLogLevelsCompImpl::TestLogLevelsCompImpl::aboutToAbort (  )  [inline]

Called when due to some error condition the component is about to be forcefully removed some unknown amount of time later (usually not very much...).

The component should make an effort to die as neatly as possible.

Because of its urgency, this method will be called asynchronously to the execution of any other method of the component.

Implements alma::acs::component::ComponentLifecycle.

References cleanUp().

void alma::contLogTest::TestLogLevelsCompImpl::TestLogLevelsCompImpl::cleanUp (  )  [inline]

Called after the last functional call to the component has finished. The component should then orderly release resources etc.

Implements alma::acs::component::ComponentLifecycle.

Referenced by aboutToAbort().

ComponentStates alma::contLogTest::TestLogLevelsCompImpl::TestLogLevelsCompImpl::componentState (  )  [inline]
void alma::contLogTest::TestLogLevelsCompImpl::TestLogLevelsCompImpl::execute (  )  [inline]

Called after ComponentLifecycle#initialize(ContainerServices) to tell the component that it has to be ready to accept incoming functional calls any time.

Examples:

  • last-minute initializations for which initialize seemed too early
  • component could start actions which aren't triggered by any functional call, e.g. the Scheduler could start to rank SBs in a separate thread.

Must be implemented as a synchronous (blocking) call (can spawn threads though).

Implements alma::acs::component::ComponentLifecycle.

int [] alma::contLogTest::TestLogLevelsCompImpl::TestLogLevelsCompImpl::getLevels (  )  throws CouldntPerformActionEx [inline]
void alma::contLogTest::TestLogLevelsCompImpl::TestLogLevelsCompImpl::initialize ( ContainerServices  containerServices  )  [inline]

Called to give the component time to initialize itself. For instance, the component could retrieve connections, read in configuration files/parameters, build up in-memory tables, ...

Called before execute(). In fact, this method might be called quite some time before functional requests can be sent to the component.

Must be implemented as a synchronous (blocking) call.

Parameters:
containerServices callback object for services provided by the container

Implements alma::acs::component::ComponentLifecycle.

References alma::acs::container::ContainerServicesBase::getLogger(), m_containerServices, and m_logger.

void alma::contLogTest::TestLogLevelsCompImpl::TestLogLevelsCompImpl::logDummyMessages ( int[]  coreLevels  )  throws IllegalArgumentEx [inline]
Exceptions:
IllegalArgumentEx 
See also:
alma.contLogTest.LogLevelsOperations::logDummyMessagesForAllLevels()

Implements alma::contLogTest::TestLogLevelsCompOperations.

References alma::acs::logging::AcsLogLevel::fromAcsCoreLevel(), m_logger, name(), and alma::ACSErrTypeCommon::wrappers::AcsJIllegalArgumentEx::toIllegalArgumentEx().

String alma::contLogTest::TestLogLevelsCompImpl::TestLogLevelsCompImpl::name (  )  [inline]

Member Data Documentation

Referenced by getLevels().

Referenced by componentState(), initialize(), and name().

Referenced by getLevels().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2