Examples of SupplierAdmin


Examples of org.omg.CosNotifyChannelAdmin.SupplierAdmin

    public void connect(EventChannel channel, boolean useOrSemantic) throws AdminLimitExceeded,
            AlreadyConnected, TypeError, AdminNotFound
    {
        StructuredPullSupplierPOATie _senderTie = new StructuredPullSupplierPOATie(this);
        SupplierAdmin _supplierAdmin = channel.default_supplier_admin();
        IntHolder _proxyId = new IntHolder();
        pullConsumer_ = StructuredProxyPullConsumerHelper.narrow(_supplierAdmin
                .obtain_notification_pull_consumer(ClientType.STRUCTURED_EVENT, _proxyId));

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

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

        pullConsumer_.connect_structured_pull_supplier(StructuredPullSupplierHelper
                .narrow(_senderTie._this(orb_)));
View Full Code Here

Examples of org.omg.CosNotifyChannelAdmin.SupplierAdmin

    public void connect(EventChannel channel, boolean useOrSemantic) throws AdminLimitExceeded,
            AlreadyConnected, TypeError
    {
        SequencePullSupplierPOATie _senderTie = new SequencePullSupplierPOATie(this);
        SupplierAdmin _supplierAdmin = channel.default_supplier_admin();
        IntHolder _proxyId = new IntHolder();
        pullConsumer_ = SequenceProxyPullConsumerHelper.narrow(_supplierAdmin
                .obtain_notification_pull_consumer(ClientType.SEQUENCE_EVENT, _proxyId));

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

        pullConsumer_.connect_sequence_pull_supplier(SequencePullSupplierHelper.narrow(_senderTie
View Full Code Here

Examples of org.omg.CosNotifyChannelAdmin.SupplierAdmin

        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

Examples of org.omg.CosNotifyChannelAdmin.SupplierAdmin

    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.SupplierAdmin

    public void connect(EventChannel channel, boolean useOrSemantic) throws AdminLimitExceeded,
            AlreadyConnected
    {
        SequencePushSupplierPOATie senderTie = new SequencePushSupplierPOATie(this);
        SupplierAdmin supplierAdmin = channel.default_supplier_admin();
        IntHolder _proxyIdHolder = new IntHolder();

        pushConsumer_ = SequenceProxyPushConsumerHelper.narrow(supplierAdmin
                .obtain_notification_push_consumer(ClientType.SEQUENCE_EVENT, _proxyIdHolder));

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

        pushConsumer_.connect_sequence_push_supplier(SequencePushSupplierHelper.narrow(senderTie
View Full Code Here

Examples of org.omg.CosNotifyChannelAdmin.SupplierAdmin

      _constraints[0].event_types = new EventType[] {new EventType(EVENT_DOMAIN, "*")};
      _constraints[0].constraint_expr = "$.header.variable_header(" + WORKGROUP_ID + ") != " + _id.intValue();

      _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);
View Full Code Here

Examples of org.omg.CosNotifyChannelAdmin.SupplierAdmin

      _constraints[0].event_types = new EventType[] {new EventType(EVENT_DOMAIN, "*")};
      _constraints[0].constraint_expr = "$.header.variable_header(" + WORKGROUP_ID + ") != " + _id.intValue();

      _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);
View Full Code Here

Examples of org.omg.CosNotifyChannelAdmin.SupplierAdmin

    public void connect(EventChannel channel, boolean useOrSemantic) throws AdminLimitExceeded,
            AlreadyConnected, TypeError, AdminNotFound
    {
        StructuredPullSupplierPOATie _senderTie = new StructuredPullSupplierPOATie(this);
        SupplierAdmin _supplierAdmin = channel.default_supplier_admin();
        IntHolder _proxyId = new IntHolder();
        pullConsumer_ = StructuredProxyPullConsumerHelper.narrow(_supplierAdmin
                .obtain_notification_pull_consumer(ClientType.STRUCTURED_EVENT, _proxyId));

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

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

        pullConsumer_.connect_structured_pull_supplier(StructuredPullSupplierHelper
                .narrow(_senderTie._this(orb_)));
View Full Code Here

Examples of org.omg.CosNotifyChannelAdmin.SupplierAdmin

    public void connect(EventChannel channel, boolean useOrSemantic) throws AdminLimitExceeded,
            AlreadyConnected, TypeError
    {
        SequencePullSupplierPOATie _senderTie = new SequencePullSupplierPOATie(this);
        SupplierAdmin _supplierAdmin = channel.default_supplier_admin();
        IntHolder _proxyId = new IntHolder();
        pullConsumer_ = SequenceProxyPullConsumerHelper.narrow(_supplierAdmin
                .obtain_notification_pull_consumer(ClientType.SEQUENCE_EVENT, _proxyId));

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

        pullConsumer_.connect_sequence_pull_supplier(SequencePullSupplierHelper.narrow(_senderTie
View Full Code Here

Examples of org.omg.CosNotifyChannelAdmin.SupplierAdmin

      _constraints[0].event_types = new EventType[] {new EventType(EVENT_DOMAIN, "*")};
      _constraints[0].constraint_expr = "$.header.variable_header(" + WORKGROUP_ID + ") != " + _id.intValue();

      _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);
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.