Package org.jacorb.notification.interfaces

Examples of org.jacorb.notification.interfaces.Message


    {
        checkStillConnected();

        try
        {
            Message _event = getMessageBlocking();
            try
            {
                return _event.toAny();
            }
            finally
            {
                _event.dispose();
            }
        }
        catch (InterruptedException e)
        {
            logger_.error("interrupted", e);
View Full Code Here


    {
        checkStillConnected();

        hasEvent.value = false;

        Message _message = getMessageNoBlock();

        if (_message != null)
        {
            try
            {
                hasEvent.value = true;

                return _message.toAny();
            }
            finally
            {
                _message.dispose();
            }
        }

        return sUndefinedAny;
    }
View Full Code Here

        {
            String _operationNameWithoutTry = (String) i.next();
            Request _request = (Request) _successfulRequests.get(_operationNameWithoutTry);
            String _operationName = getFullQualifiedName(_operationNameWithoutTry);

            Message _mesg = getMessageFactory().newMessage(supportedInterface_, _operationName,
                    _request.arguments(), this);

            checkMessageProperties(_mesg);

            processMessage(_mesg);
View Full Code Here

    }

    public EvaluationResult evaluate(EvaluationContext context)
            throws PropertyDoesNotExistException
    {
        final Message _event = context.getCurrentMessage();
        EvaluationResult _res = null;

        try
        {
            _res = _event.extractVariableHeader(context, shorthandVariableHeader_, value_);

        } catch (EvaluationException e)
        {
            // can be safely ignored
            // three more methods will be tried ...
        }

        if (_res == null)
        {
            try
            {
                _res = _event.extractFilterableData(context, shorthandFilterableData_, value_);
            } catch (EvaluationException e)
            {
                // can be safely ignored
                // two more methods will be tried ...
            }
View Full Code Here

            request.arguments(_params);

            final String _operationName = getFullQualifiedName(request.operation());

            final Message _mesg = getMessageFactory().newMessage(supportedInterface_, _operationName,
                    _params, TypedProxyPushConsumerImpl.this);

            processMessage(_mesg);
        }
View Full Code Here

    }

    public EvaluationResult evaluate( EvaluationContext context )
        throws EvaluationException {

        final Message _event = context.getCurrentMessage();
        final EvaluationResult _result;

        switch (_event.getType()) {
        case Message.TYPE_ANY:
            _result = expandedPath_.evaluate(context);
            break;
        case Message.TYPE_STRUCTURED:
            String _domainName = _event.toStructuredEvent().header.fixed_header.event_type.domain_name;
            _result = new EvaluationResult();
            _result.setString(_domainName);
            break;
        default:
            throw new RuntimeException();
View Full Code Here

    }

    public EvaluationResult evaluate( EvaluationContext context )
        throws EvaluationException
    {
        final Message _event = context.getCurrentMessage();
        final EvaluationResult _result;

        switch (_event.getType())
        {
            case Message.TYPE_ANY:
                _result = expandedPath_.evaluate(context);
                break;

            case Message.TYPE_STRUCTURED:
                String _domainName = _event.toStructuredEvent().header.fixed_header.event_name;
                _result = new EvaluationResult();
                _result.setString(_domainName);
                break;

            default:
View Full Code Here

    }


    public boolean pushEvent()
    {
        final Message _message = getMessageNoBlock();

        if (_message != null)
        {
            try
            {
                return deliverMessageWithRetry(_message);
            } finally
            {
                _message.dispose();
            }
        }

        return false;
    }
View Full Code Here

        return ProxyType.PUSH_STRUCTURED;
    }

    public boolean pushEvent()
    {
        final Message _message = getMessageNoBlock();

        if (_message != null)
        {
            try
            {
                return deliverMessageWithRetry(_message);
            } finally
            {
                _message.dispose();
            }
        }

        return false;
    }
View Full Code Here

    }

    public EvaluationResult evaluate( EvaluationContext context )
        throws EvaluationException
    {
        final Message _event = context.getCurrentMessage();
        final EvaluationResult _result;

        switch ( _event.getType() )
        {
            case Message.TYPE_ANY:
                _result = expandedPath_.evaluate( context );
                break;

            case Message.TYPE_STRUCTURED:
                String _domainName =
                    _event.toStructuredEvent().header.fixed_header.event_type.type_name;

                _result = new EvaluationResult();
                _result.setString( _domainName );
                break;
View Full Code Here

TOP

Related Classes of org.jacorb.notification.interfaces.Message

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.