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();
}
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());
}
Aggregations