Package org.omg.CosNotification

Examples of org.omg.CosNotification.Property


        Any _any = getORB().create_any();

        Property[] _props = new Property[2];
        _any.insert_long(10);
        _props[0] = new Property("long", _any);

        _any = getORB().create_any();
        _any.insert_string("text");
        _props[1] = new Property("string", _any);

        _structuredEvent.filterable_data = _props;

        runEvaluation(_structuredEvent, "$long == 10");
        runEvaluation(_structuredEvent, "$long == $.filterable_data(long)");
View Full Code Here


        _event.header.variable_header = new Property[1];

        Any _anyInt = getORB().create_any();
        _anyInt.insert_long(10);

        _event.header.variable_header[0] = new Property("workgroup_id", _anyInt);

        StructuredEventHelper.insert(_any, _event);
        runEvaluation(_any, "$.header.variable_header(workgroup_id) != 20");
    }
View Full Code Here

        assertNotNull(TCLParser.parse("$.1"));
    }

    public void testTypedEvent() throws Exception
    {
        Property[] _props = new Property[] { new Property("operation", toAny("operationName")),
                new Property("value1", toAny(100)), new Property("value2", toAny(200)) };

        Any _any = getORB().create_any();

        PropertySeqHelper.insert(_any, _props);
View Full Code Here

        EventType type = new EventType("Finance", "StockQuote");
        FixedEventHeader fixed = new FixedEventHeader(type, "10");
        StructuredEvent quoteEvent = new StructuredEvent();

        // Complete header date
        Property variable[] = new Property[0];
        quoteEvent.header = new EventHeader(fixed, variable);
        quoteEvent.filterable_data = new Property[2];

        Any idAny = getORB().create_any();
        idAny.insert_string("stockQuotes");
        quoteEvent.filterable_data[0] = new Property("stock_id", idAny);

        Any priceAny = getORB().create_any();
        priceAny.insert_double(200.0);
        quoteEvent.filterable_data[1] = new Property("stock_price", priceAny);

        quoteEvent.remainder_of_body = getORB().create_any();
        runEvaluation(quoteEvent, "$stock_price >= 200.00", "TRUE");
        runEvaluation(quoteEvent, "$stock_price <= 200.00", "TRUE");
        runEvaluation(quoteEvent, "$stock_price == 200.00", "TRUE");
View Full Code Here

        Any _any = getORB().create_any();

        UtcTHelper.insert(_any, Time.corbaTime(_time));

        structuredEvent_.header.variable_header[0] = new Property(StopTime.value, _any);

        StructuredEventMessage mesg = new StructuredEventMessage(getORB());
        mesg.setStructuredEvent(structuredEvent_, true, true);
        final Message _event = mesg.getHandle();
View Full Code Here

     */
    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

            for (int x = 0; x < _props.length; ++x)
            {
                NamedValue _nv = args.item(x);

                _props[x] = new Property(_nv.name(), _nv.value());
            }

            _mesg.setTypedEvent(interfaceName, operationName, _props);

            _mesg.setFilterStage(consumer.getFirstStage());
View Full Code Here

        if (filterableHeader_ == null)
        {
            filterableHeader_ = new Property[parameters_.length + 1];
            Any _operationAny = sORB.create_any();
            _operationAny.insert_string(operationName_);
            filterableHeader_[0] = new Property(OPERATION_NAME, _operationAny);

            for (int x = 0; x < parameters_.length; ++x)
            {
                filterableHeader_[1 + x] = parameters_[x];
            }
View Full Code Here

            _eventType.type_name = operationName_;

            Any _eventTypeAny = sORB.create_any();
            EventTypeHelper.insert(_eventTypeAny, _eventType);

            typedEvent_[0] = new Property(EVENT_TYPE, _eventTypeAny);

            for (int x = 0; x < parameters_.length; ++x)
            {
                typedEvent_[1 + x] = parameters_[x];
            }
View Full Code Here

            for (int x = 0; x < _props.length; ++x)
            {
                NamedValue _nv = args.item(x);

                _props[x] = new Property(_nv.name(), _nv.value());
            }

            _mesg.setTypedEvent(interfaceName, operationName, _props);

            _mesg.setFilterStage(consumer.getFirstStage());
View Full Code Here

TOP

Related Classes of org.omg.CosNotification.Property

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.