Package org.apache.qpid.server.logging

Examples of org.apache.qpid.server.logging.LogSubject


        }

        @Override
        public boolean matches(Object argument)
        {
            final LogSubject logSubject = (LogSubject)argument;
            final boolean foundAMatch = _logSubject.toLogString().equals(logSubject.toLogString());
            if (!foundAMatch)
            {
                _failureDescription = "LogSubject does not match. Expected: " + _logSubject.toLogString() + ", actual : " + logSubject.toLogString();
            }
            return foundAMatch;
        }
View Full Code Here


        return message;
    }
   
    public void sendTestLogMessage(LogActor actor, final String message)
    {
        actor.message(new LogSubject()
        {
            public String toLogString()
            {
                return message;
            }
View Full Code Here

     */
    private String sendTestMessage()
    {
        final String message = "test logging";

        _amqpActor.message(new LogSubject()
        {
            public String toString()
            {
                return "[AMQPActorTest]";
            }
View Full Code Here

     */
    public void testQueueActor()
    {
        final String message = "test logging";

        _amqpActor.message(new LogSubject()
        {
            public String toString()
            {
                return "[AMQPActorTest]";
            }
View Full Code Here

     */
    public void testConnection()
    {
        final String message = "test logging";

        _amqpActor.message(new LogSubject()
        {
            public String toString()
            {
                return "[AMQPActorTest]";
            }
View Full Code Here

         *       Stack   -> null
         */
        CurrentActor.set(connectionActor);

        //Use the Actor to send a simple message
        CurrentActor.get().message(new LogSubject()
        {
            public String toString()
            {
                return "[CurrentActorTest] ";
            }

        }, new LogMessage()
        {
            public String toString()
            {
                return "Connection Log Msg";
            }
        });

        // Verify it was the same actor as we set earlier
        assertEquals("Retrieved actor is not as expected ",
                     connectionActor, CurrentActor.get());

        /**
         * Set the actor to now be the Channel actor so testing the ability
         * to push the actor on to the stack:
         *
         *  CurrentActor -> Channel
         *       Stack   -> Connection, null
         *
         */

        AMQChannel channel = new AMQChannel(_session, 1, _session.getVirtualHost().getMessageStore());

        AMQPChannelActor channelActor = new AMQPChannelActor(channel,
                                                             ApplicationRegistry.getInstance().
                                                                     getRootMessageLogger());

        CurrentActor.set(channelActor);

        //Use the Actor to send a simple message
        CurrentActor.get().message(new LogSubject()
        {
            public String toString()
            {
                return "[CurrentActorTest] ";
            }
View Full Code Here

            CurrentActor.set(actor);

            try
            {
                //Use the Actor to send a simple message
                CurrentActor.get().message(new LogSubject()
                {
                    public String toString()
                    {
                        return "[CurrentActorTest] ";
                    }
View Full Code Here

     */
    public void testSubscription()
    {
        final String message = "test logging";

        _amqpActor.message(new LogSubject()
        {
            public String toString()
            {
                return "[AMQPActorTest]";
            }
View Full Code Here

    private String sendLogMessage()
    {
        final String message = "test logging";

        _amqpActor.message(new LogSubject()
        {
            public String toString()
            {
                return "[AMQPActorTest]";
            }
View Full Code Here

        return 0;
    }

    public LogSubject getLogSubject()
    {
       return new LogSubject()
        {
            public String toLogString()
            {
                return "[MockAMQQueue]";
            }
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.logging.LogSubject

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.