Package org.omg.CORBA

Examples of org.omg.CORBA.IntHolder


        assertFalse(factory._non_existent());
    }

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


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

        supplierAdmin_ = TypedSupplierAdminHelper.narrow(objectUnderTest_.activate());
    }

    public void testCreatePushConsumer() throws Exception
    {
        IntHolder id = new IntHolder();

        TypedProxyPushConsumer consumer = supplierAdmin_.obtain_typed_notification_push_consumer(
                CoffeeHelper.id(), id);

        assertEquals(consumer, supplierAdmin_.get_proxy_consumer(id.value));
View Full Code Here

        assertEquals(consumer, supplierAdmin_.get_proxy_consumer(id.value));
    }

    public void testCreatePullConsumer() throws Exception
    {
        IntHolder id = new IntHolder();

        TypedProxyPullConsumer consumer = supplierAdmin_.obtain_typed_notification_pull_consumer(
                PullCoffeeHelper.id(), id);

        assertEquals(consumer, supplierAdmin_.get_proxy_consumer(id.value));
View Full Code Here

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

        org.omg.CORBA.Object obj = servant_.activate();

        typedChannelFactory_ = TypedEventChannelFactoryHelper.narrow(obj);
       
        objectUnderTest_ = typedChannelFactory_.create_typed_channel(new Property[0],
                new Property[0], new IntHolder());
    }
View Full Code Here

        super(name);
    }

    public void testCreateTypedEventChannel() throws Exception
    {
        IntHolder id = new IntHolder();
        TypedEventChannel channel = typedChannelFactory_.create_typed_channel(new Property[0],
                new Property[0], id);

        assertEquals(typedChannelFactory_, channel.MyFactory());
    }
View Full Code Here

      boolean correct = true;

      OTS.current().begin();

      IntHolder valueHolder1 = new IntHolder();
      IntHolder valueHolder2 = new IntHolder();
      IntHolder valueHolder3 = new IntHolder();
      IntHolder valueHolder4 = new IntHolder();

      numberTable.get("Name_0", valueHolder1);
      numberTable.get("Name_1", valueHolder2);

      System.err.println("Phase 0, Name_0: " + valueHolder1.value);
View Full Code Here

  }

  DistributedHammerWorker2.get12('m', 0);
  DistributedHammerWorker2.get21('m', 0);

  IntHolder value1 = new IntHolder(0);
  IntHolder value2 = new IntHolder(0);
  boolean res = DistributedHammerWorker2.get1(value1) | DistributedHammerWorker2.get2(value2);

  if ( (res) && ( (value1.value + value2.value) == EXPECTED_RESULT ) )
    assertSuccess();
  else
View Full Code Here

    System.out.println("master sleeping again.");

    Thread.sleep(20000);
      }

      IntHolder value = new IntHolder(0);

      org.omg.CosTransactions.PropagationContext ctx = topLevelControl.get_coordinator().get_txcontext();

      if (!DistributedHammerWorker1.hammerObject_1.get(value, topLevelControl))
      {
View Full Code Here

TOP

Related Classes of org.omg.CORBA.IntHolder

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.