

Public Member Functions | |
| void | testComponentPOALifecycleSync () throws Exception |
| void | __dontrun__testComponentPOALifecycleAsync () throws Exception |
| void | testPOAConfig () throws Exception |
Protected Member Functions | |
| void | setUp () throws Exception |
| void | tearDown () throws Exception |
Private Member Functions | |
| void | _testComponentPOALifecycle (boolean destroyWhileBusy, int iterations) throws Exception |
Private Attributes | |
| Logger | m_logger |
| AcsCorba | acsCorba |
| volatile Throwable | exceptionInThread |
Tests alma.acs.container.corba.AcsCorba and related usage of ORB and POAs. Runs without any ACS background support.
| void alma::acs::container::corba::AcsCorbaTest::__dontrun__testComponentPOALifecycleAsync | ( | ) | throws Exception [inline] |
This test method is currently hidden from JUnit because it fails with JacORB 1.4. and 2.2.4. Problem: RequestController::waitForCompletion returns immediately when currently processing calls are local. This could be related to JacORB bug 132, see http://www.jacorb.org/cgi-bin/bugzilla/show_bug.cgi?id=132.
TODO: try again when the Java ORB gets updated or replaced in ACS.
Activates / deactivates a component 10 times, each time calling a method that still runs while its POA is getting deactivated. This is to check the container's ability to wait for currently processing requests to terminate, before cleanUp is called on the component.
The component is run outside a container, but with the same ORB/POA usage as inside the container.
| Exception |
References _testComponentPOALifecycle().
| void alma::acs::container::corba::AcsCorbaTest::_testComponentPOALifecycle | ( | boolean | destroyWhileBusy, | |
| int | iterations | |||
| ) | throws Exception [inline, private] |
This test method can also be used to experiment with
| destroyWhileBusy | ||
| iterations |
| Exception |
References acsCorba, alma::acs::container::corba::AcsCorba::activateComponent(), alma::acs::container::corba::AcsCorba::createPOAForComponent(), alma::acs::container::corba::AcsCorba::deactivateComponentPOAManager(), alma::acs::container::corba::AcsCorba::destroyComponentPOA(), exceptionInThread, m_logger, alma::acs::container::corba::SyncDummyComponentImpl::setMethodCallSync(), and alma::acs::container::corba::AcsCorba::setServantManagerOnComponentPOA().
Referenced by __dontrun__testComponentPOALifecycleAsync(), and testComponentPOALifecycleSync().
| void alma::acs::container::corba::AcsCorbaTest::setUp | ( | ) | throws Exception [inline, protected] |
References acsCorba, exceptionInThread, alma::acs::container::corba::AcsCorba::initCorba(), and m_logger.
| void alma::acs::container::corba::AcsCorbaTest::tearDown | ( | ) | throws Exception [inline, protected] |
References acsCorba, and alma::acs::container::corba::AcsCorba::shutdownORB().
| void alma::acs::container::corba::AcsCorbaTest::testComponentPOALifecycleSync | ( | ) | throws Exception [inline] |
Activates / deactivates a component 1000 times. The component is run outside a container, but with the same ORB/POA usage as inside the container.
For each iteration,
etherialize_objects==true and wait_for_completion==false. This method should be seen as a suggestion for the Java container to implement component deactivation.
| Exception |
References _testComponentPOALifecycle().
| void alma::acs::container::corba::AcsCorbaTest::testPOAConfig | ( | ) | throws Exception [inline] |
Referenced by _testComponentPOALifecycle(), setUp(), tearDown(), and testPOAConfig().
volatile Throwable alma::acs::container::corba::AcsCorbaTest::exceptionInThread [private] |
Referenced by _testComponentPOALifecycle(), and setUp().
Logger alma::acs::container::corba::AcsCorbaTest::m_logger [private] |
Referenced by _testComponentPOALifecycle(), and setUp().
1.6.2