use of alma.perftest.ComplexBACIComponent in project ACS by ACS-Community.
the class BCTClient method activateCBC.
/**
* TEST_1_3_2 & TEST_1_3_4
* @param loop
*/
public boolean activateCBC(long count) {
if (count > 16)
return false;
ComplexBACIComponent[] CBC = new ComplexBACIComponent[(int) count];
ComponentClient cc = ComponentClientSingleton.getInstance();
m_startTime = System.currentTimeMillis();
try {
for (int i = 0; i < count; i++) CBC[i] = alma.perftest.ComplexBACIComponentHelper.narrow(cc.getContainerServices().getComponent(CBCs[i]));
} catch (Exception e) {
return false;
}
m_midTime = System.currentTimeMillis();
for (int i = 0; i < count; i++) {
CBC[i] = null;
cc.getContainerServices().releaseComponent(CBCs[i]);
}
m_endTime = System.currentTimeMillis();
return true;
}
Aggregations