Examples of insert_long()


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

    }


    public void testExtractAny() throws Exception {
        Any _any = getORB().create_any();
        _any.insert_long(10);
        Property p = new Property("number", _any);
        Any _testData = getORB().create_any();
        PropertyHelper.insert(_testData, p);
        Any a = objectUnderTest_.evaluateIdentifier(_testData, "name");
        assertEquals("number", a.extract_string());
View Full Code Here

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

    }


    public void testEvaluateNamedValueList() throws Exception {
        Any _any = getORB().create_any();
        _any.insert_long(10);
        Property[] p = new Property[1];
        p[0] = new Property("number", _any);
        Any _testData = getORB().create_any();
        PropertySeqHelper.insert(_testData, p);
        Any _result = objectUnderTest_.evaluateNamedValueList(_testData, "number");
View Full Code Here

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

            event_.header.fixed_header.event_type.domain_name = EVENT_DOMAIN;

            event_.header.fixed_header.event_name = "";
            event_.header.variable_header = new Property[1];
            Any _any = orb_.create_any();
            _any.insert_long(control_.getWorkgroupId());
            event_.header.variable_header[0] = new Property(WORKGROUP_ID, _any);
            event_.filterable_data = new Property[0];
            event_.remainder_of_body = orb_.create_any();
        }
        return event_;
View Full Code Here

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

        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

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

    // set filterable event body data
    cancelEvent.filterable_data = new Property[3];

    Any jobAny = orb.create_any();
    jobAny.insert_long( job.jobId );
    cancelEvent.filterable_data[0] = new Property("job_id ", jobAny );

    Any userAny = orb.create_any();
    userAny.insert_string( job.userId );
    cancelEvent.filterable_data[1] = new Property("user_id ", userAny );
View Full Code Here

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

        // set filterable event body data
        printedEvent.filterable_data = new Property[3];

        Any jobAny = orb.create_any();
        jobAny.insert_long( job.jobId );
        printedEvent.filterable_data[0] = new Property("job_id", jobAny );

        Any userAny = orb.create_any();
        userAny.insert_string( job.userId );
        printedEvent.filterable_data[1] = new Property("user_id", userAny );
View Full Code Here

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

        default:
            throw new EvaluationException("Neither array nor sequence");
        }

        Any _any = orb_.create_any();
        _any.insert_long(_length);

        return _any;
    }

    private String getDefaultUnionMemberName(TypeCode unionTypeCode) throws EvaluationException
View Full Code Here

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

            Any _any = orb_.create_any();

            switch (unionTypeCode.discriminator_type().kind().value()) {

            case TCKind._tk_long:
                _any.insert_long(discriminator);
                break;

            case TCKind._tk_ulong:
                _any.insert_ulong(discriminator);
                break;
View Full Code Here

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

        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

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

        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.