Search in sources :

Example 1 with ContainerUtil

use of acs.benchmark.util.ContainerUtil in project ACS by ACS-Community.

the class StressStartComponents method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    contSvcs = super.getContainerServices();
    assertNotNull(contSvcs);
    logger = contSvcs.getLogger();
    assertNotNull(logger);
    adminOperations = new ComponentsLoadingAdminOperations(logger);
    contSvcs.getAdvancedContainerServices().connectManagerAdmin(adminOperations, true);
    componentAccessUtil = new ConcurrentComponentAccessUtil(getContainerServices());
    assertNotNull(componentAccessUtil);
    containerUtil = new ContainerUtil(contSvcs);
    assertNotNull(containerUtil);
    containerUtil.loginToManager();
    componentAccessUtil.start();
}
Also used : ConcurrentComponentAccessUtil(acs.benchmark.util.ConcurrentComponentAccessUtil) ContainerUtil(acs.benchmark.util.ContainerUtil)

Example 2 with ContainerUtil

use of acs.benchmark.util.ContainerUtil in project ACS by ACS-Community.

the class LocalPubSubTest method setUp.

@Before
public void setUp() throws Exception {
    String testMethodName = testName.getMethodName();
    m_logger.info("----------------- " + testMethodName + " ----------------- ");
    // run a local container. Logs are stored under $ACS_TMP/logs/
    containerUtil = new ContainerUtil(getContainerServices());
    containerUtil.loginToManager();
    containerUtil.startContainer(localhostName, ContainerImplLangType.JAVA, supplierContainerName, null, true);
    m_logger.info("Container '" + supplierContainerName + "' is ready.");
    // configure container log levels
    ContainerLogLevelSpec contLogLevelSpec = new ContainerLogLevelSpec(AcsLogLevelDefinition.WARNING, AcsLogLevelDefinition.DEBUG);
    contLogLevelSpec.addNamedLoggerSpec("jacorb@" + supplierContainerName, AcsLogLevelDefinition.WARNING, AcsLogLevelDefinition.WARNING);
    containerUtil.setContainerLogLevels(supplierContainerName, contLogLevelSpec);
    assertThat(containerUtil.isContainerLoggedIn(supplierContainerName), is(true));
    componentAccessUtil = new PubSubComponentAccessUtil(getContainerServices());
    singThrExec = Executors.newSingleThreadExecutor(getContainerServices().getThreadFactory());
}
Also used : ContainerUtil(acs.benchmark.util.ContainerUtil) ContainerLogLevelSpec(acs.benchmark.util.ContainerUtil.ContainerLogLevelSpec) Before(org.junit.Before)

Aggregations

ContainerUtil (acs.benchmark.util.ContainerUtil)2 ConcurrentComponentAccessUtil (acs.benchmark.util.ConcurrentComponentAccessUtil)1 ContainerLogLevelSpec (acs.benchmark.util.ContainerUtil.ContainerLogLevelSpec)1 Before (org.junit.Before)1