Search in sources :

Example 1 with NO_IMPLEMENT

use of org.omg.CORBA.NO_IMPLEMENT in project ACS by ACS-Community.

the class PropertyDoubleTest method testNewSubscriptionAlarm.

public void testNewSubscriptionAlarm() {
    try {
        CBDescIn descIn = new CBDescIn(50000, 50000, 1208);
        ROproperty.new_subscription_Alarm(null, descIn);
        fail("NO_IMPLEMENT exception expected");
    } catch (NO_IMPLEMENT ex) {
    // OK
    }
}
Also used : NO_IMPLEMENT(org.omg.CORBA.NO_IMPLEMENT) CBDescIn(alma.ACS.CBDescIn)

Example 2 with NO_IMPLEMENT

use of org.omg.CORBA.NO_IMPLEMENT in project ACS by ACS-Community.

the class PropertySeqTest method testCreatePostponedMonitor.

public void testCreatePostponedMonitor() {
    // TODO tmp
    if (true)
        return;
    try {
        CBDescIn descIn = new CBDescIn(50000, 50000, 1208);
        ROpropertyLongSeq.create_postponed_monitor(0, null, descIn);
        fail("NO_IMPLEMENT exception expected");
    } catch (NO_IMPLEMENT ex) {
    // OK
    }
}
Also used : NO_IMPLEMENT(org.omg.CORBA.NO_IMPLEMENT) CBDescIn(alma.ACS.CBDescIn)

Example 3 with NO_IMPLEMENT

use of org.omg.CORBA.NO_IMPLEMENT in project ACS by ACS-Community.

the class PropertySeqTest method testNewSubscriptionAlarm.

public void testNewSubscriptionAlarm() {
    try {
        CBDescIn descIn = new CBDescIn(50000, 50000, 1208);
        ROpropertyDoubleSeq.new_subscription_Alarm(null, descIn);
        fail("NO_IMPLEMENT exception expected");
    } catch (NO_IMPLEMENT ex) {
    // OK
    }
}
Also used : NO_IMPLEMENT(org.omg.CORBA.NO_IMPLEMENT) CBDescIn(alma.ACS.CBDescIn)

Example 4 with NO_IMPLEMENT

use of org.omg.CORBA.NO_IMPLEMENT in project ACS by ACS-Community.

the class EventSupplierImpl method sendEvents.

/** Sends some events to an event channel.
	 * @param param number of events to send
	 */
public void sendEvents(short param) {
    m_logger.info("Now sending events via NCPublisher...");
    try {
        //first send out some number of events.
        EventDescription t_block = new EventDescription("no name", 32L, 64L);
        for (short i = 0; i < param; i++) {
            m_supplier.publishEvent(t_block);
            Thread.sleep(1);
        }
        //fake a subscription change notification (should be disabled on the proxy consumer in the real system)
        try {
            m_supplier.subscription_change(new org.omg.CosNotification.EventType[] {}, new org.omg.CosNotification.EventType[] {});
            m_logger.warning("Call to 'subscription_change' did not produce the expected NO_IMPLEMENT exception.");
        } catch (NO_IMPLEMENT ex) {
        // expected
        }
    } catch (Exception e) {
        System.err.println(e);
    }
}
Also used : NO_IMPLEMENT(org.omg.CORBA.NO_IMPLEMENT) EventDescription(alma.acsnc.EventDescription) ComponentLifecycleException(alma.acs.component.ComponentLifecycleException)

Example 5 with NO_IMPLEMENT

use of org.omg.CORBA.NO_IMPLEMENT in project ACS by ACS-Community.

the class EventSupplierCDBChannel method sendEvents.

/**
	 * Sends some events to an event channel.
	 * 
	 * @param param
	 *            number of events to send
	 */
public void sendEvents(short param) {
    System.out.println("Now sending simplesupplier events...");
    try {
        // first send out some number of events.
        EventDescription t_block = new EventDescription("no name", 32L, 64L);
        for (short i = 0; i < param; i++) {
            m_supplier.publishEvent(t_block);
        }
        //fake a subscription change notification (should be disabled on the proxy consumer in the real system)
        try {
            m_supplier.subscription_change(new org.omg.CosNotification.EventType[] {}, new org.omg.CosNotification.EventType[] {});
            m_logger.warning("Call to 'subscription_change' did not produce the expected NO_IMPLEMENT exception.");
        } catch (NO_IMPLEMENT ex) {
        // expected
        }
    } catch (Exception e) {
        System.err.println(e);
    }
}
Also used : NO_IMPLEMENT(org.omg.CORBA.NO_IMPLEMENT) EventDescription(alma.acsnc.EventDescription) ComponentLifecycleException(alma.acs.component.ComponentLifecycleException)

Aggregations

NO_IMPLEMENT (org.omg.CORBA.NO_IMPLEMENT)17 CBDescIn (alma.ACS.CBDescIn)6 SystemException (org.omg.CORBA.SystemException)5 RecoveryCoordinator (org.omg.CosTransactions.RecoveryCoordinator)4 GenericRecoveryCoordinator (com.arjuna.ats.internal.jts.orbspecific.recovery.recoverycoordinators.GenericRecoveryCoordinator)3 ComponentLifecycleException (alma.acs.component.ComponentLifecycleException)2 EventDescription (alma.acsnc.EventDescription)2 ArrayList (java.util.ArrayList)2 BAD_OPERATION (org.omg.CORBA.BAD_OPERATION)2 BAD_PARAM (org.omg.CORBA.BAD_PARAM)2 Inactive (org.omg.CosTransactions.Inactive)2 NoSuchCharacteristic (alma.ACS.NoSuchCharacteristic)1 PropertySetImpl (alma.ACS.jbaci.PropertySetImpl)1 CDBFieldDoesNotExistEx (alma.cdbErrType.CDBFieldDoesNotExistEx)1 WrongCDBDataTypeEx (alma.cdbErrType.WrongCDBDataTypeEx)1 ArjunaFactory (com.arjuna.ArjunaOTS.ArjunaFactory)1 OTSAbstractRecord (com.arjuna.ArjunaOTS.OTSAbstractRecord)1 UidCoordinator (com.arjuna.ArjunaOTS.UidCoordinator)1 Uid (com.arjuna.ats.arjuna.common.Uid)1 AbstractRecord (com.arjuna.ats.arjuna.coordinator.AbstractRecord)1