Search in sources :

Example 1 with CategoryClient

use of alma.acs.lasercore.test.stress.CategoryClient in project ACS by ACS-Community.

the class StressTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    contSvcs = getContainerServices();
    assertNotNull(contSvcs);
    alarmSource = ACSAlarmSystemInterfaceFactory.createSource();
    assertNotNull("Error instantiating the source", alarmSource);
    // Connect the categories
    categoryClient = new CategoryClient(contSvcs);
    assertNotNull(categoryClient);
    categoryClient.addAlarmListener(this);
    categoryClient.connect();
    // generate the alarms
    statesToPublish = new MiniFaultState[NUM_ALARMS_TO_SEND];
    for (int t = 0; t < statesToPublish.length; t++) {
        MiniFaultState mfs = new MiniFaultState();
        assertNotNull(mfs);
        statesToPublish[t] = mfs;
    }
}
Also used : CategoryClient(alma.acs.lasercore.test.stress.CategoryClient)

Example 2 with CategoryClient

use of alma.acs.lasercore.test.stress.CategoryClient in project ACS by ACS-Community.

the class IDLSendAlarmTest method setUp.

/**
	 * @see alma.acs.component.client.ComponentClientTestCase#setUp()
	 */
@Override
protected void setUp() throws Exception {
    super.setUp();
    contSvcs = getContainerServices();
    assertNotNull(contSvcs);
    logger = contSvcs.getLogger();
    assertNotNull(logger);
    // Get the alarm service
    CernAlarmServiceUtils utils = new CernAlarmServiceUtils(contSvcs);
    assertNotNull(utils);
    alarmService = CERNAlarmServiceHelper.narrow(utils.getAlarmService());
    assertNotNull(alarmService);
    assertFalse(alarmService.isACSAlarmService());
    alarms.clear();
    // Connect the categories
    categoryClient = new CategoryClient(contSvcs);
    assertNotNull(categoryClient);
    categoryClient.addAlarmListener(this);
    categoryClient.connect();
}
Also used : CategoryClient(alma.acs.lasercore.test.stress.CategoryClient) CernAlarmServiceUtils(alma.alarmsystem.corbaservice.CernAlarmServiceUtils)

Example 3 with CategoryClient

use of alma.acs.lasercore.test.stress.CategoryClient in project ACS by ACS-Community.

the class RRWithRegExp method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    categoryClient = new CategoryClient(this.getContainerServices());
    assertNotNull(categoryClient);
    categoryClient.connect();
    categoryClient.addAlarmListener(this);
    alarmSource = ACSAlarmSystemInterfaceFactory.createSource();
    assertNotNull(alarmSource);
    System.out.println("setUp done");
}
Also used : CategoryClient(alma.acs.lasercore.test.stress.CategoryClient)

Example 4 with CategoryClient

use of alma.acs.lasercore.test.stress.CategoryClient in project ACS by ACS-Community.

the class RRWithDefaultFM method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    categoryClient = new CategoryClient(this.getContainerServices());
    assertNotNull(categoryClient);
    categoryClient.connect();
    categoryClient.addAlarmListener(this);
    alarmSource = ACSAlarmSystemInterfaceFactory.createSource();
    assertNotNull(alarmSource);
    System.out.println("setUp done");
}
Also used : CategoryClient(alma.acs.lasercore.test.stress.CategoryClient)

Aggregations

CategoryClient (alma.acs.lasercore.test.stress.CategoryClient)4 CernAlarmServiceUtils (alma.alarmsystem.corbaservice.CernAlarmServiceUtils)1