use of alma.perftest.SimpleBACIComponent in project ACS by ACS-Community.
the class BCTClient method getCOB.
/**
* TEST_2_6 & TEST_3_6
* @param loop
*/
public void getCOB(long loop) {
SimpleBACIComponent[] SBC = new SimpleBACIComponent[(int) loop];
ComponentClient cc = ComponentClientSingleton.getInstance();
m_startTime = System.currentTimeMillis();
try {
for (int i = 0; i < loop; i++) SBC[i] = alma.perftest.SimpleBACIComponentHelper.narrow(cc.getContainerServices().getComponent(m_deviceName));
} catch (Exception e) {
}
m_endTime = System.currentTimeMillis();
}
use of alma.perftest.SimpleBACIComponent in project ACS by ACS-Community.
the class BCTClient method activateSBC.
/**
* TEST_1_3_1 & TEST_1_3_3
* @param loop
*/
public boolean activateSBC(long count) {
if (count > 16)
return false;
SimpleBACIComponent[] SBC = new SimpleBACIComponent[(int) count];
ComponentClient cc = ComponentClientSingleton.getInstance();
m_startTime = System.currentTimeMillis();
try {
for (int i = 0; i < count; i++) SBC[i] = alma.perftest.SimpleBACIComponentHelper.narrow(cc.getContainerServices().getComponent(SBCs[i]));
} catch (Exception e) {
return false;
}
m_midTime = System.currentTimeMillis();
for (int i = 0; i < count; i++) {
SBC[i] = null;
cc.getContainerServices().releaseComponent(SBCs[i]);
}
m_endTime = System.currentTimeMillis();
return true;
}
Aggregations