Examples of ConsumerAdmin


Examples of org.omg.CosNotifyChannelAdmin.ConsumerAdmin

        } catch (AdminNotFound e)
        {
            // expected
        }

        ConsumerAdmin c3 = channel_.get_consumeradmin(ih.value);

        assertEquals(ih.value, c3.MyID());
    }
View Full Code Here

Examples of org.omg.CosNotifyChannelAdmin.ConsumerAdmin

        assertEquals(ih.value, c3.MyID());
    }

    public void testDestroyAdmins() throws Exception
    {
        ConsumerAdmin _consumerAdmin = channel_.new_for_consumers(InterFilterGroupOperator.AND_OP,
                new IntHolder());
        SupplierAdmin _supplierAdmin = channel_.new_for_suppliers(InterFilterGroupOperator.AND_OP,
                new IntHolder());

        _consumerAdmin.destroy();
        _supplierAdmin.destroy();

        try
        {
            _consumerAdmin.get_qos();
            fail();
        } catch (OBJECT_NOT_EXIST e)
        {
            // expected
        }

        try
        {
            _consumerAdmin.get_qos();
            fail();
        } catch (OBJECT_NOT_EXIST e)
        {
            // expected
        }
View Full Code Here

Examples of org.omg.CosNotifyChannelAdmin.ConsumerAdmin

    public void connect(EventChannel channel, boolean useOrSemantic) throws AdminLimitExceeded,
            AlreadyConnected
    {

        StructuredPullConsumerPOATie _receiverTie = new StructuredPullConsumerPOATie(this);
        ConsumerAdmin _consumerAdmin = channel.default_consumer_admin();
        IntHolder _proxyId = new IntHolder();

        pullSupplier_ = StructuredProxyPullSupplierHelper.narrow(_consumerAdmin
                .obtain_notification_pull_supplier(ClientType.STRUCTURED_EVENT, _proxyId));

        Assert.assertEquals(pullSupplier_.MyType(), ProxyType.PULL_STRUCTURED);

        pullSupplier_.connect_structured_pull_consumer(StructuredPullConsumerHelper
View Full Code Here

Examples of org.omg.CosNotifyChannelAdmin.ConsumerAdmin

        controlAdmin.setReturnValue("");
       
        controlAdmin.replay();

        MockControl controlConsumerAdmin = MockControl.createControl(ConsumerAdmin.class);
        ConsumerAdmin mockConsumerAdmin = (ConsumerAdmin) controlConsumerAdmin.getMock();

        controlConsumerAdmin.replay();

        controlTaskProcessor_ = MockControl.createControl(TaskProcessor.class);
        mockTaskProcessor_ = (TaskProcessor) controlTaskProcessor_.getMock();
View Full Code Here

Examples of org.omg.CosNotifyChannelAdmin.ConsumerAdmin

    public void connect(EventChannel channel, boolean useOrSemantic) throws AdminLimitExceeded,
            AlreadyConnected
    {
        SequencePullConsumerPOATie _receiverTie = new SequencePullConsumerPOATie(this);
        ConsumerAdmin _consumerAdmin = channel.default_consumer_admin();
        IntHolder _proxyId = new IntHolder();

        pullSupplier_ = SequenceProxyPullSupplierHelper.narrow(_consumerAdmin
                .obtain_notification_pull_supplier(ClientType.SEQUENCE_EVENT, _proxyId));

        Assert.assertEquals(ProxyType._PULL_SEQUENCE, pullSupplier_.MyType().value());

        pullSupplier_.connect_sequence_pull_consumer(SequencePullConsumerHelper.narrow(_receiverTie
View Full Code Here

Examples of org.omg.CosNotifyChannelAdmin.ConsumerAdmin

        controlIAdmin.setReturnValue("admin");

        controlIAdmin.replay();

        MockControl controlConsumerAdmin = MockControl.createControl(ConsumerAdmin.class);
        ConsumerAdmin mockConsumerAdmin = (ConsumerAdmin) controlConsumerAdmin.getMock();

        controlPOA_ = MockControl.createNiceControl(POA.class);
        mockPOA_ = (POA) controlPOA_.getMock();
        objectUnderTest_ = new AbstractProxySupplier(mockIAdmin, getORB(), mockPOA_,
                getConfiguration(), getTaskProcessor(), new OfferManager(),
View Full Code Here

Examples of org.omg.CosNotifyChannelAdmin.ConsumerAdmin

    }

    public void testDestroy() throws Exception
    {
        EventChannel channel_ = ((EventChannelFactoryImpl)factory_).create_channel(new Property[0], new Property[0], new IntHolder());
        ConsumerAdmin _consumerAdmin = channel_.new_for_consumers(InterFilterGroupOperator.AND_OP,
                new IntHolder());
        SupplierAdmin _supplierAdmin = channel_.new_for_suppliers(InterFilterGroupOperator.AND_OP,
                new IntHolder());

        assertEquals(channel_, _consumerAdmin.MyChannel());
        assertEquals(channel_, _supplierAdmin.MyChannel());

        channel_.destroy();

        try
View Full Code Here

Examples of org.omg.CosNotifyChannelAdmin.ConsumerAdmin

    public void connect(EventChannel channel, boolean useOrSemantic) throws AdminLimitExceeded,
            AlreadyConnected, TypeError
    {
        SequencePushConsumerPOATie receiverTie = new SequencePushConsumerPOATie(this);
        ConsumerAdmin _consumerAdmin = channel.default_consumer_admin();
        IntHolder _proxyIdHolder = new IntHolder();

        pushSupplier_ = SequenceProxyPushSupplierHelper.narrow(_consumerAdmin
                .obtain_notification_push_supplier(ClientType.SEQUENCE_EVENT, _proxyIdHolder));

        Assert.assertEquals(ProxyType._PUSH_SEQUENCE, pushSupplier_.MyType().value());

        pushSupplier_.connect_sequence_push_consumer(SequencePushConsumerHelper.narrow(receiverTie
View Full Code Here

Examples of org.omg.CosNotifyChannelAdmin.ConsumerAdmin

      _filter.add_constraints(_constraints);

      SupplierAdmin _supplierAdmin =
    channel_.new_for_suppliers(InterFilterGroupOperator.AND_OP, _supplierAdminId);

      ConsumerAdmin _consumerAdmin =
    channel_.new_for_consumers(InterFilterGroupOperator.AND_OP, _consumerAdminId);
      _consumerAdmin.add_filter(_filter);

      _registrationInfo.supplier_admin = _supplierAdmin;
      _registrationInfo.consumer_admin = _consumerAdmin;
      _registrationInfo.filter_factory = filterFactory_;
View Full Code Here

Examples of org.omg.CosNotifyChannelAdmin.ConsumerAdmin

      _filter.add_constraints(_constraints);

      SupplierAdmin _supplierAdmin =
    channel_.new_for_suppliers(InterFilterGroupOperator.AND_OP, _supplierAdminId);

      ConsumerAdmin _consumerAdmin =
    channel_.new_for_consumers(InterFilterGroupOperator.AND_OP, _consumerAdminId);
      _consumerAdmin.add_filter(_filter);

      _registrationInfo.supplier_admin = _supplierAdmin;
      _registrationInfo.consumer_admin = _consumerAdmin;
      _registrationInfo.filter_factory = filterFactory_;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.