

Public Member Functions | |
| ContainerMonitorTest (String name) throws Exception | |
| void | testStress () throws Exception |
Protected Member Functions | |
| void | setUp () throws Exception |
| void | tearDown () throws Exception |
Private Attributes | |
| DummyComponent | comp = null |
| RemoteThreadsClient | rtc = null |
| RemoteThreadsMBean | mbean = null |
| int | max_threads = 0 |
| int | min_threads = 0 |
| final String | DUMMYCOMP_TYPENAME = "IDL:alma/jconttest/DummyComponent:1.0" |
| final String | MAX_PROP = "jacorb.poa.thread_pool_max" |
| final String | MIN_PROP = "jacorb.poa.thread_pool_min" |
| int | MAX_ITERATIONS = 100 |
| volatile int[][] | acsThreads = null |
| volatile int[][] | jacorbThreads = null |
| volatile int | acs = 0 |
| volatile int | jacorb = 0 |
JUnit test class for testing the alma.acs.monitoring.RemoteThreadsMBean work over an ACS Container
| alma::acs::container::corba::ContainerMonitorTest::ContainerMonitorTest | ( | String | name | ) | throws Exception [inline] |
| void alma::acs::container::corba::ContainerMonitorTest::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.
References alma::acs::component::client::ComponentClientTestCase::acsCorba, acsThreads, comp, alma::acs::monitoring::RemoteThreadsClient::connect(), DUMMYCOMP_TYPENAME, alma::acs::component::client::ComponentClientTestCase::getContainerServices(), alma::acs::container::ContainerServices::getDefaultComponent(), alma::acs::monitoring::RemoteThreadsClient::getMBean(), alma::acs::container::corba::AcsCorba::getORB(), jacorbThreads, alma::acs::component::client::ComponentClientTestCase::m_logger, MAX_ITERATIONS, MAX_PROP, max_threads, mbean, MIN_PROP, min_threads, and rtc.
| void alma::acs::container::corba::ContainerMonitorTest::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 acsThreads, jacorbThreads, alma::acs::component::client::ComponentClientTestCase::m_logger, MAX_ITERATIONS, and max_threads.
| void alma::acs::container::corba::ContainerMonitorTest::testStress | ( | ) | throws Exception [inline] |
References acs, acsThreads, comp, alma::acs::monitoring::RemoteThreadsMBean::getAcsContainerThreadsCount(), alma::acs::monitoring::RemoteThreadsMBean::getJacORBThreadsCount(), alma::acs::monitoring::RemoteThreadsMBean::getThreadsCount(), alma::acs::monitoring::RemoteThreadsMBean::getThreadsInfo(), jacorb, jacorbThreads, alma::acs::component::client::ComponentClientTestCase::m_logger, MAX_ITERATIONS, max_threads, mbean, and min_threads.
volatile int alma::acs::container::corba::ContainerMonitorTest::acs = 0 [private] |
Referenced by testStress().
volatile int [][] alma::acs::container::corba::ContainerMonitorTest::acsThreads = null [private] |
Referenced by setUp(), tearDown(), and testStress().
DummyComponent alma::acs::container::corba::ContainerMonitorTest::comp = null [private] |
Referenced by setUp(), and testStress().
final String alma::acs::container::corba::ContainerMonitorTest::DUMMYCOMP_TYPENAME = "IDL:alma/jconttest/DummyComponent:1.0" [private] |
Referenced by setUp().
volatile int alma::acs::container::corba::ContainerMonitorTest::jacorb = 0 [private] |
Referenced by testStress().
volatile int [][] alma::acs::container::corba::ContainerMonitorTest::jacorbThreads = null [private] |
Referenced by setUp(), tearDown(), and testStress().
int alma::acs::container::corba::ContainerMonitorTest::MAX_ITERATIONS = 100 [private] |
Referenced by setUp(), tearDown(), and testStress().
final String alma::acs::container::corba::ContainerMonitorTest::MAX_PROP = "jacorb.poa.thread_pool_max" [private] |
Referenced by setUp().
int alma::acs::container::corba::ContainerMonitorTest::max_threads = 0 [private] |
Referenced by setUp(), tearDown(), and testStress().
Referenced by setUp(), and testStress().
final String alma::acs::container::corba::ContainerMonitorTest::MIN_PROP = "jacorb.poa.thread_pool_min" [private] |
Referenced by setUp().
int alma::acs::container::corba::ContainerMonitorTest::min_threads = 0 [private] |
Referenced by setUp(), and testStress().
Referenced by setUp().
1.6.2