

Public Member Functions | |
| AcsCorbaTestWithContainer () throws Exception | |
| void | testParallelCalls () throws Exception |
| void | testComponentPOALifecycleAsync () 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 | |
| DummyComponent | dummyComponent |
| volatile Throwable | exceptionInThread |
Static Private Attributes | |
| static final String | DUMMYCOMP_TYPENAME = "IDL:alma/jconttest/DummyComponent:1.0" |
Tests alma.acs.container.corba.AcsCorba and related usage of ORB and POAs. Requires ACS runtime with a remote container.
| alma::acs::container::corba::AcsCorbaTestWithContainer::AcsCorbaTestWithContainer | ( | ) | throws Exception [inline] |
| void alma::acs::container::corba::AcsCorbaTestWithContainer::_testComponentPOALifecycle | ( | boolean | destroyWhileBusy, | |
| int | iterations | |||
| ) | throws Exception [inline, private] |
| destroyWhileBusy | ||
| iterations |
| Exception |
References DUMMYCOMP_TYPENAME, dummyComponent, exceptionInThread, alma::acs::component::client::ComponentClientTestCase::getContainerServices(), alma::acs::container::ContainerServices::getDynamicComponent(), alma::acs::logging::AcsLogger::log(), alma::acs::component::client::ComponentClientTestCase::m_logger, and alma::acs::container::ContainerServices::releaseComponent().
Referenced by testComponentPOALifecycleAsync().
| void alma::acs::container::corba::AcsCorbaTestWithContainer::setUp | ( | ) | throws Exception [inline, protected] |
Starts CORBA in the client process and connects to the manager and logger.
Subclasses that override this method must call super.setUp(), likely before any other code in that method.
Reimplemented from alma::acs::component::client::ComponentClientTestCase.
| void alma::acs::container::corba::AcsCorbaTestWithContainer::tearDown | ( | ) | throws Exception [inline, protected] |
Releases all previously obtained components (using manager), logs out from the manager, and terminates the CORBA ORB.
Subclasses that override this method must call super.tearDown(), likely after any other code in that method.
Reimplemented from alma::acs::component::client::ComponentClientTestCase.
References alma::acs::component::client::ComponentClientTestCase::m_logger.
| void alma::acs::container::corba::AcsCorbaTestWithContainer::testComponentPOALifecycleAsync | ( | ) | throws Exception [inline] |
Activates / deactivates a component 10 times, each time calling a method that still runs while its POA is getting deactivated. The purpose is to check the container's ability to wait for currently processing requests to terminate, before cleanUp is called on the component.
TODO: extend this scenario so that another collocated component issues the long lasting call. This may not work due to a JacORB bug, which we should find out about. Confer the currently disabled test alma.acs.container.corba.AcsCorbaTest#__testComponentPOALifecycleAsync().
| Exception |
References _testComponentPOALifecycle().
| void alma::acs::container::corba::AcsCorbaTestWithContainer::testParallelCalls | ( | ) | throws Exception [inline] |
References DUMMYCOMP_TYPENAME, dummyComponent, exceptionInThread, alma::acs::component::client::ComponentClientTestCase::getContainerServices(), alma::acs::container::ContainerServices::getDynamicComponent(), alma::acs::logging::AcsLogger::log(), and alma::acs::component::client::ComponentClientTestCase::m_logger.
final String alma::acs::container::corba::AcsCorbaTestWithContainer::DUMMYCOMP_TYPENAME = "IDL:alma/jconttest/DummyComponent:1.0" [static, private] |
Referenced by _testComponentPOALifecycle(), and testParallelCalls().
DummyComponent alma::acs::container::corba::AcsCorbaTestWithContainer::dummyComponent [private] |
Referenced by _testComponentPOALifecycle(), and testParallelCalls().
volatile Throwable alma::acs::container::corba::AcsCorbaTestWithContainer::exceptionInThread [private] |
Referenced by _testComponentPOALifecycle(), and testParallelCalls().
1.6.2