Package org.omg.CORBA

Examples of org.omg.CORBA.IntHolder


        {
          pingPong.bad_hit(index0, index1, pingPong, pingPong, null);
        }
      }

      IntHolder pingPongValue = new IntHolder();
      pingPong.get(pingPongValue, null);

      if (pingPongValue.value == 0)
      {
        System.out.println("Passed");
View Full Code Here


      int expectedValue = Integer.parseInt(args[args.length - 2]);

      String counterIOR = ServerIORStore.loadIOR(args[args.length - 1]);
      Counter counter = CounterHelper.narrow(ORBInterface.orb().string_to_object(counterIOR));

      IntHolder value = new IntHolder();
      counter.get(value);

      if (value.value == expectedValue)
      {
        System.out.println("Passed");
View Full Code Here

      {
        workers[index].join();
        correct = correct && workers[index].isCorrect();
      }

      IntHolder value = new IntHolder();
      counter.get(value, null);
      correct = correct && (value.value == (numberOfWorkers * numberOfCalls));

      if (correct)
      {
View Full Code Here

      Counter counter1 = CounterHelper.narrow(ORBInterface.orb().string_to_object(counterIOR1));

      String counterIOR2 = ServerIORStore.loadIOR(args[args.length - 1]);
      Counter counter2 = CounterHelper.narrow(ORBInterface.orb().string_to_object(counterIOR2));

      IntHolder value1 = new IntHolder();
      counter1.get(value1);

      IntHolder value2 = new IntHolder();
      counter2.get(value2);

      if ((value1.value == expectedValue) && (value2.value == expectedValue))
      {
        System.out.println("Passed");
View Full Code Here

        {
          pinger.bad_hit(index0, index1, ponger, pinger, null);
        }
      }

      IntHolder pingerValue = new IntHolder();
      pinger.get(pingerValue, null);

      IntHolder pongerValue = new IntHolder();
      ponger.get(pongerValue, null);

      if ((pingerValue.value == 0) && (pongerValue.value == 0))
      {
        System.out.println("Passed");
View Full Code Here

      for (int index = 0; index < numberOfCalls; index++)
      {
        pingPong.hit(index, pingPong, pingPong, null);
      }

      IntHolder pingPongValue = new IntHolder();
      pingPong.get(pingPongValue, null);

      if (pingPongValue.value == numberOfCalls)
      {
        System.out.println("Passed");
View Full Code Here

      {
        workers[index].join();
        correct = correct && workers[index].isCorrect();
      }

      IntHolder value = new IntHolder();
      AtomicTransaction atomicTransaction = new AtomicTransaction();

      atomicTransaction.begin();
      counter.get(value, OTS.current().get_control());
      atomicTransaction.commit(true);
View Full Code Here

      AtomicTransaction atomicTransaction = new AtomicTransaction();

      atomicTransaction.begin();

      IntHolder value = new IntHolder();
      counter.get(value, OTS.current().get_control());

      try
      {
        atomicTransaction.commit(true);
View Full Code Here

      for (int index = 0; index < numberOfCalls; index++)
      {
        pinger.hit(index, ponger, pinger, null);
      }

      IntHolder pingerValue = new IntHolder();
      pinger.get(pingerValue, null);

      IntHolder pongerValue = new IntHolder();
      ponger.get(pongerValue, null);

      if ((pingerValue.value == (numberOfCalls / 2)) && (pongerValue.value == (numberOfCalls / 2)))
      {
        System.out.println("Passed");
View Full Code Here

      for (int index = 0; index < numberOfCalls; index++)
      {
        counter.increase(null);
      }

      IntHolder value = new IntHolder();
      counter.get(value, null);

      if (value.value == numberOfCalls)
      {
        System.out.println("Passed");
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.