Package org.omg.CosNotifyChannelAdmin

Examples of org.omg.CosNotifyChannelAdmin.SupplierAdmin


    @Test
    public void testDestroyAdmin() throws Exception
    {
        IntHolder id = new IntHolder();
        SupplierAdmin admin1 = channel_.new_for_suppliers(InterFilterGroupOperator.AND_OP, id);

        IntHolder id2 = new IntHolder();
        SupplierAdmin admin2 = channel_.new_for_suppliers(InterFilterGroupOperator.AND_OP, id2);

        assertEquals(admin1, channel_.get_supplieradmin(id.value));

        admin1.destroy();
View Full Code Here


        } catch (AdminNotFound e)
        {
            // expected
        }

        SupplierAdmin c3 = channel_.get_supplieradmin(ih.value);
        assertEquals(ih.value, c3.MyID());
    }
View Full Code Here

    @Test
    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();
View Full Code Here

        StructuredPushSupplierPOATie senderTie = new StructuredPushSupplierPOATie(this);

        StructuredPushSupplier sender = senderTie._this(orb_);

        SupplierAdmin supplierAdmin = channel.default_supplier_admin();

        Assert.assertNotNull(supplierAdmin);

        Assert.assertEquals(supplierAdmin, channel.get_supplieradmin(supplierAdmin.MyID()));

        IntHolder _proxyIdHolder = new IntHolder();

        pushConsumer_ = StructuredProxyPushConsumerHelper.narrow(supplierAdmin
                .obtain_notification_push_consumer(ClientType.STRUCTURED_EVENT, _proxyIdHolder));

        Assert.assertEquals(pushConsumer_.MyType(), ProxyType.PUSH_STRUCTURED);

        pushConsumer_.connect_structured_push_supplier(sender);
View Full Code Here

TOP

Related Classes of org.omg.CosNotifyChannelAdmin.SupplierAdmin

Copyright © 2018 www.massapicom. 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.