Package org.omg.CosNotification

Examples of org.omg.CosNotification.Property


        mockTaskProcessor_.executeTaskPeriodically(2000, null, true);
        controlTaskProcessor_.setReturnValue(null);

        replayAll();

        Property prop1 = newPacingInterval(interval1);
        Property prop2 = newPacingInterval(interval2);

        objectUnderTest_.connect_sequence_push_consumer(mockPushConsumer_);
        objectUnderTest_.set_qos(new Property[] { prop1 });
        objectUnderTest_.set_qos(new Property[] { prop2 });
View Full Code Here


        replayAll();

        Any any = getORB().create_any();
        any.insert_long(3);
        objectUnderTest_.set_qos(new Property[] { new Property(MaximumBatchSize.value, any) });
        objectUnderTest_.connect_sequence_push_consumer(mockPushConsumer_);

        objectUnderTest_.getMessageConsumer().queueMessage(mockMessage);
        objectUnderTest_.getMessageConsumer().queueMessage(mockMessage);
View Full Code Here

    private Property newPacingInterval(final int timeT)
    {
        Any any = getORB().create_any();
        TimeTHelper.insert(any, timeT);

        Property prop = new Property(PacingInterval.value, any);
        return prop;
    }
View Full Code Here

    public void testTryPullDrinkingCoffee() throws Exception
    {
        TypedEventMessage _mesg = new TypedEventMessage();

        _mesg.setTypedEvent(PullCoffeeHelper.id(), DRINKING_COFFEE_ID, new Property[] {
                new Property("name", toAny("jacorb")), new Property("minutes", toAny(10)) });

        NullPullConsumer _pullConsumer = new NullPullConsumer();

        proxyPullSupplier_.connect_typed_pull_consumer(_pullConsumer._this(getClientORB()));
View Full Code Here

    public void testPullDrinkingCoffee() throws Exception
    {
        TypedEventMessage _mesg = new TypedEventMessage();

        _mesg.setTypedEvent(PullCoffeeHelper.id(), DRINKING_COFFEE_ID, new Property[] {
                new Property("name", toAny("jacorb")), new Property("minutes", toAny(10)) });

        NullPullConsumer _pullConsumer = new NullPullConsumer();

        proxyPullSupplier_.connect_typed_pull_consumer(_pullConsumer._this(getClientORB()));
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();
        mesg.setStructuredEvent(structuredEvent_, true, true);
        final Message _event = mesg.getHandle();
View Full Code Here

        Any _any = getORB().create_any();

        _structuredEvent.header.variable_header = new Property[2];

        _any.insert_long(10);
        _structuredEvent.header.variable_header[0] = new Property("long", _any);

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

        runEvaluation(_structuredEvent, "$long == 10");
        runEvaluation(_structuredEvent, "$long == $.header.variable_header(long)");

        runEvaluation(_structuredEvent, "$string == 'text'");
View Full Code Here

        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

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.