Package org.omg.CORBA

Examples of org.omg.CORBA.Any.insert_long()


        Any a1 = setup.getClientOrb().create_any();
        a1.insert_long(1);
        Any a2 = setup.getClientOrb().create_any();
        a2.insert_long(2);
        Any a3 = setup.getClientOrb().create_any();
        a3.insert_long(3);
        Any[] a = new Any[] { a1, a2, a3 };
        int result = server.reduce_any_sequence(a);
        assertEquals (3, result);
    }
View Full Code Here


    }

    public void test_bounce_any_sequence()
    {
        Any a1 = setup.getClientOrb().create_any();
        a1.insert_long(1);
        Any a2 = setup.getClientOrb().create_any();
        a2.insert_long(2);
        Any a3 = setup.getClientOrb().create_any();
        a3.insert_long(3);
        Any[] a = new Any[] { a1, a2, a3 };
View Full Code Here

    public void test_bounce_any_sequence()
    {
        Any a1 = setup.getClientOrb().create_any();
        a1.insert_long(1);
        Any a2 = setup.getClientOrb().create_any();
        a2.insert_long(2);
        Any a3 = setup.getClientOrb().create_any();
        a3.insert_long(3);
        Any[] a = new Any[] { a1, a2, a3 };
        any_sequenceHolder b = new any_sequenceHolder();
        server.bounce_any_sequence(a, b);
View Full Code Here

        Any a1 = setup.getClientOrb().create_any();
        a1.insert_long(1);
        Any a2 = setup.getClientOrb().create_any();
        a2.insert_long(2);
        Any a3 = setup.getClientOrb().create_any();
        a3.insert_long(3);
        Any[] a = new Any[] { a1, a2, a3 };
        any_sequenceHolder b = new any_sequenceHolder();
        server.bounce_any_sequence(a, b);
        assertEquals (3, b.value.length);
        for (int i=0; i<a.length; i++)
View Full Code Here

        while (_active)
        {
            for (int x = 0; x < batchSize; ++x)
            {
                Any any = getORB().create_any();
                any.insert_long(x);

                StructuredEvent event = new StructuredEvent();
                event.filterable_data = new Property[] { new Property("number", any) };
                event.header = new EventHeader();
                event.header.fixed_header = new FixedEventHeader();
View Full Code Here

    public Any toAny(int i)
    {
        Any _any = getORB().create_any();

        _any.insert_long(i);

        return _any;
    }

    public Any toAny(Property[] props) throws Exception
View Full Code Here

        int _maxBatchSize =
            conf.getAttributeAsInteger(Attributes.MAX_BATCH_SIZE,
                                       Default.DEFAULT_MAX_BATCH_SIZE);

        Any _maxBatchSizeDefault = sORB.create_any();
        _maxBatchSizeDefault.insert_long(_maxBatchSize);

        ////////////////////

        defaultChannelQoS_ = new Property[] {
            new Property(EventReliability.value, eventReliabilityLow_),
View Full Code Here

     * @jmx.managed-attribute access = "read-write"
     */
    public void setMaxEventsPerConsumer(int max)
    {
        final Any any = getORB().create_any();
        any.insert_long(max);
        final Property prop = new Property(MaxEventsPerConsumer.value, any);
        qosSettings_.set_qos(new Property[] { prop });
    }

    /**
 
View Full Code Here

        int _maxConsumersDefault =
            config.getAttributeAsInteger(Attributes.MAX_NUMBER_CONSUMERS,
                                       Default.DEFAULT_MAX_NUMBER_CONSUMERS);

        Any _maxConsumersDefaultAny = sORB.create_any();
        _maxConsumersDefaultAny.insert_long( _maxConsumersDefault );

        //////////////////////////////

        int _maxSuppliersDefault =
            config.getAttributeAsInteger(Attributes.MAX_NUMBER_SUPPLIERS,
View Full Code Here

        int _maxSuppliersDefault =
            config.getAttributeAsInteger(Attributes.MAX_NUMBER_SUPPLIERS,
                                       Default.DEFAULT_MAX_NUMBER_SUPPLIERS);

        Any _maxSuppliersDefaultAny = sORB.create_any();
        _maxSuppliersDefaultAny.insert_long(_maxSuppliersDefault);

        //////////////////////////////

        int _maxQueueLength =
            config.getAttributeAsInteger(Attributes.MAX_QUEUE_LENGTH,
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.