alma::jconttest::util::JconttestUtil Class Reference

Collaboration diagram for alma::jconttest::util::JconttestUtil:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 JconttestUtil (ContainerServices containerServices)
int getSystemLevelOrbTimeoutMillis () throws AcsJCouldntPerformActionEx
double getContainerLevelOrbTimeout (String containerName) throws AcsJContainerServicesEx

Private Attributes

final ContainerServices containerServices
final AcsLogger logger

Static Private Attributes

static final String PROPERTYNAME_CLIENTORBTIMEOUT = "jacorb.connection.client.pending_reply_timeout"

Constructor & Destructor Documentation

alma::jconttest::util::JconttestUtil::JconttestUtil ( ContainerServices  containerServices  )  [inline]

Member Function Documentation

double alma::jconttest::util::JconttestUtil::getContainerLevelOrbTimeout ( String  containerName  )  throws AcsJContainerServicesEx [inline]

Reads the Container.Timeout field from the CDB. Note that the default (currently defined in Container.xsd) will be returned if the container config does not override that Timeout.

References containerServices, and alma::acs::container::ContainerServicesBase::getCDB().

Referenced by alma::acs::container::corba::ContainerClientPendingReplyTimeoutTest::testOrbLevelTimeout().

int alma::jconttest::util::JconttestUtil::getSystemLevelOrbTimeoutMillis (  )  throws AcsJCouldntPerformActionEx [inline]

We get the timeout property value from the ORB configuration. System-level timeout defaults are not standardized in Corba, thus we need jacorb-specific access.

Exceptions:
IllegalArgumentException if the ORB timeout is configured as a negative value
AcsJCouldntPerformActionEx if the ORB-level timeout could not be read, e.g. because the ORB is not jacorb.

References containerServices, alma::acs::container::ContainerServicesBase::getAdvancedContainerServices(), alma::acs::logging::AcsLogger::log(), logger, and PROPERTYNAME_CLIENTORBTIMEOUT.

Referenced by alma::jconttest::DummyComponentWrapperImpl::DummyComponentWrapperImpl::_callDummyComponentWithTime(), alma::acs::container::corba::ContainerClientPendingReplyTimeoutTest::setUp(), and alma::acs::container::corba::ClientPendingReplyTimeoutTest::testClientPendingReplyTimeout().


Member Data Documentation

final String alma::jconttest::util::JconttestUtil::PROPERTYNAME_CLIENTORBTIMEOUT = "jacorb.connection.client.pending_reply_timeout" [static, private]

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

Generated by  doxygen 1.6.2