Package org.omg.CosNotification

Examples of org.omg.CosNotification.StructuredEvent


    public MessageSupplierDelegate.PullResult pullMessages() throws Disconnected
    {
        BooleanHolder _hasEvent = new BooleanHolder();
        _hasEvent.value = false;
        StructuredEvent _event = pullSupplier_.try_pull_structured_event(_hasEvent);

        return new MessageSupplierDelegate.PullResult(_event, _hasEvent.value);
    }
View Full Code Here


    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

    {
        // the conversion should only be done once !

        if ( structuredEventValue_ == null )
        {
            structuredEventValue_ = new StructuredEvent();
            structuredEventValue_.header = sEventHeader;
            structuredEventValue_.filterable_data = sFilterableData;
            structuredEventValue_.remainder_of_body = toAny();
        }
View Full Code Here

    public StructuredEvent[] pull_structured_events(int number) throws Disconnected
    {
        checkStillConnected();

        StructuredEvent _structuredEvents[] = UNDEFINED_SEQUENCE;

        Message[] _messages = getUpToMessages(number);

        if (_messages != null && _messages.length > 0)
        {
View Full Code Here

                }
                _update = (WhiteboardUpdate)queue_.get(0);
                queue_.remove(0);
            }

            StructuredEvent _event = getEvent();
            if (_update.discriminator() == UpdateType.clear) {
                _event.header.fixed_header.event_type.type_name = "CLEAR";
            } else if (_update.discriminator() == UpdateType.line) {
                _event.header.fixed_header.event_type.type_name = "LINE";
            }
View Full Code Here

        }
    }

    StructuredEvent getEvent() {
        if (event_ == null) {
            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;
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

    public MessageSupplierDelegate.PullResult pullMessages() throws Disconnected
    {
        BooleanHolder _hasEvent = new BooleanHolder();
        _hasEvent.value = false;
        StructuredEvent _event = pullSupplier_.try_pull_structured_event(_hasEvent);

        return new MessageSupplierDelegate.PullResult(_event, _hasEvent.value);
    }
View Full Code Here

        measureFilterLatency(
                "exist $.phone_numbers[0] and exist $.phone_numbers[0] and exist $.phone_numbers[0] and exist $.phone_numbers[0] and exist $.phone_numbers[0] and $.phone_numbers[0] == '12345678'",
                _any, _runs);

        StructuredEvent _event = testUtils_.getStructuredEvent();

        measureFilterLatency("$event_name == 'ALARM'", _event, _runs);

        measureFilterLatency("$type_name == 'TESTING'", _event, _runs);
View Full Code Here

            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();
                event.header.variable_header = new Property[0];
                event.header.fixed_header.event_name = "event_name";
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.