Examples of ConsumerAdmin


Examples of org.omg.CosEventChannelAdmin.ConsumerAdmin

    public void connect(org.omg.CosNotifyChannelAdmin.EventChannel channel, boolean useOrSemantic)
            throws AlreadyConnected
    {

        EventChannel _channel = EventChannelHelper.narrow(channel);
        ConsumerAdmin _admin = _channel.for_consumers();
        mySupplier_ = _admin.obtain_pull_supplier();
        mySupplier_.connect_pull_consumer(_this(orb_));
        connected_ = true;
    }
View Full Code Here

Examples of org.omg.CosEventChannelAdmin.ConsumerAdmin

    {

        EventChannel _channel = EventChannelHelper.narrow(channel);
        Assert.assertNotNull(_channel);

        ConsumerAdmin _admin = _channel.for_consumers();
        Assert.assertNotNull(_admin);

        mySupplier_ = _admin.obtain_push_supplier();
        Assert.assertNotNull(mySupplier_);

        mySupplier_.connect_push_consumer(_this(orb_));
        connected_ = true;
    }
View Full Code Here

Examples of org.omg.CosEventChannelAdmin.ConsumerAdmin

    public void connect(org.omg.CosNotifyChannelAdmin.EventChannel channel, boolean useOrSemantic)
            throws AlreadyConnected
    {

        EventChannel _channel = EventChannelHelper.narrow(channel);
        ConsumerAdmin _admin = _channel.for_consumers();
        mySupplier_ = _admin.obtain_pull_supplier();
        mySupplier_.connect_pull_consumer(_this(orb_));
        connected_ = true;
    }
View Full Code Here

Examples of org.omg.CosEventChannelAdmin.ConsumerAdmin

    {

        EventChannel _channel = EventChannelHelper.narrow(channel);
        Assert.assertNotNull(_channel);

        ConsumerAdmin _admin = _channel.for_consumers();
        Assert.assertNotNull(_admin);

        mySupplier_ = _admin.obtain_push_supplier();
        Assert.assertNotNull(mySupplier_);

        mySupplier_.connect_push_consumer(_this(orb_));
        connected_ = true;
    }
View Full Code Here

Examples of org.omg.CosEventChannelAdmin.ConsumerAdmin

    public void connect(org.omg.CosNotifyChannelAdmin.EventChannel channel, boolean useOrSemantic)
            throws AlreadyConnected
    {

        EventChannel _channel = EventChannelHelper.narrow(channel);
        ConsumerAdmin _admin = _channel.for_consumers();
        mySupplier_ = _admin.obtain_pull_supplier();
        mySupplier_.connect_pull_consumer(_this(orb_));
        connected_ = true;
    }
View Full Code Here

Examples of org.omg.CosNotifyChannelAdmin.ConsumerAdmin

        priorityFilter_ = MappingFilterHelper.unchecked_narrow(getORB().string_to_object(
                getORB().object_to_string(null)));

        addProxyEventListener(this);

        ConsumerAdmin _thisRef = ConsumerAdminHelper.narrow(activate());

        container_.registerComponent(new CachingComponentAdapter(new CORBAObjectComponentAdapter(
                ConsumerAdmin.class, _thisRef)));

        registerDisposable(new Disposable()
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

        priorityFilter_ = MappingFilterHelper.unchecked_narrow(getORB().string_to_object(
                getORB().object_to_string(null)));

        addProxyEventListener(this);

        ConsumerAdmin _thisRef = ConsumerAdminHelper.narrow(activate());

        container_.registerComponent(new CachingComponentAdapter(new CORBAObjectComponentAdapter(
                ConsumerAdmin.class, _thisRef)));

        registerDisposable(new Disposable()
View Full Code Here

Examples of org.omg.CosNotifyChannelAdmin.ConsumerAdmin

    public void connect(EventChannel channel, boolean useOrSemantic) throws AdminLimitExceeded,
            AlreadyConnected, TypeError
    {
        StructuredPushConsumerPOATie receiverTie = new StructuredPushConsumerPOATie(this);

        ConsumerAdmin _consumerAdmin = channel.default_consumer_admin();

        IntHolder _proxyIdHolder = new IntHolder();
        pushSupplier_ = StructuredProxyPushSupplierHelper.narrow(_consumerAdmin
                .obtain_notification_push_supplier(ClientType.STRUCTURED_EVENT, _proxyIdHolder));

        Assert.assertNotNull(pushSupplier_);
        Assert.assertNotNull(pushSupplier_.MyType());
        Assert.assertEquals(pushSupplier_.MyType(), ProxyType.PUSH_STRUCTURED);
View Full Code Here

Examples of org.omg.CosNotifyChannelAdmin.ConsumerAdmin

    }

    public void testCreateConsumerAdmin() throws Exception
    {
        IntHolder id = new IntHolder();
        ConsumerAdmin admin = channel_.new_for_consumers(InterFilterGroupOperator.AND_OP, id);

        assertEquals(InterFilterGroupOperator.AND_OP, admin.MyOperator());

        assertEquals(id.value, admin.MyID());

        assertTrue(containsValue(channel_.get_all_consumeradmins(), admin.MyID()));

        assertEquals(admin, channel_.get_consumeradmin(id.value));
    }
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.