Package org.omg.CosNotification

Examples of org.omg.CosNotification.StructuredEvent


    public synchronized StructuredEvent toStructuredEvent()
    {
        if (structuredEventValue_ == null)
        {
            structuredEventValue_ = new StructuredEvent();

            structuredEventValue_.header = sEventHeader;
            structuredEventValue_.filterable_data = getFilterableHeader();
            structuredEventValue_.remainder_of_body = sUndefinedAny;
        }
View Full Code Here


    }

    @Test
    public void testMaximumBatchSize() throws Exception
    {
        StructuredEvent event = new StructuredEvent();

        MockControl controlMessage = MockControl.createNiceControl(Message.class);
        Message mockMessage = (Message) controlMessage.getMock();

        controlMessage.expectAndReturn(mockMessage.clone(), mockMessage, MockControl.ONE_OR_MORE);
View Full Code Here

    public void testPushStructured() throws Exception
    {
        // setup test data
        StructuredEventMessage _event = new StructuredEventMessage(getORB());

        StructuredEvent _data = getTestUtils().getEmptyStructuredEvent();

        _data.filterable_data = new Property[] {
                new Property("operation", toAny(DRINKING_COFFEE_ID)),
                new Property("name", toAny("alphonse")), new Property("minutes", toAny(10)) };
View Full Code Here

  active_ = false;
  interrupt();
    }

    public void run() {
  StructuredEvent _event = new StructuredEvent();
  _event.header = new EventHeader();
  _event.header.fixed_header = new FixedEventHeader();
  _event.header.fixed_header.event_type = new EventType();
  _event.header.fixed_header.event_type.domain_name = EVENT_DOMAIN;
  _event.header.fixed_header.event_type.type_name = "UPDATE";
View Full Code Here

        runEvaluation(_testData, "$domain_name == 'TESTING'");
        runEvaluation(_testData, "$type_name == 'TESTING'");
        runEvaluation(_testData, "$event_name == 'ALARM'");

        StructuredEvent _structuredEvent = testUtils_.getStructuredEvent();

        runEvaluation(_structuredEvent, "$domain_name == 'TESTING'");
        runEvaluation(_structuredEvent, "$type_name == 'TESTING'");
        runEvaluation(_structuredEvent, "$event_name == 'ALARM'");
    }
View Full Code Here

    }

    @Test
    public void testShorthandVariableHeader() throws Exception
    {
        StructuredEvent _structuredEvent = testUtils_.getStructuredEvent();

        Any _any = getORB().create_any();

        _structuredEvent.header.variable_header = new Property[2];
View Full Code Here

    }

    @Test
    public void testShorthandFilterableData() throws Exception
    {
        StructuredEvent _structuredEvent = testUtils_.getStructuredEvent();

        Any _any = getORB().create_any();

        Property[] _props = new Property[2];
        _any.insert_long(10);
View Full Code Here

    }

    @Test
    public void testAccessNonExistingProperty() throws Exception
    {
        StructuredEvent event = testUtils_.getStructuredEvent();

        try
        {
            runEvaluation(event, "$.filterable_data(PROPERTY) == 1");
View Full Code Here

    @Test
    public void testWhiteboardExpr() throws Exception
    {
        Any _any = getORB().create_any();

        StructuredEvent _event = testUtils_.getStructuredEvent();
        _event.header.variable_header = new Property[1];

        Any _anyInt = getORB().create_any();
        _anyInt.insert_long(10);
View Full Code Here

    @Test
    public void testBug748() throws Exception {
        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];
View Full Code Here

TOP

Related Classes of org.omg.CosNotification.StructuredEvent

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.