Package org.apache.qpid.server.logging

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


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


        return _logSubject.toLogString();
    }

    public static LogActor getInstance(final String logMessage, RootMessageLogger rootLogger)
    {
        return new GenericActor(new LogSubject()
        {
            public String toLogString()
            {
                return logMessage;
            }
View Full Code Here

        }, rootLogger);
    }

    public static LogActor getInstance(final String subjectMessage)
    {
        return new GenericActor(new LogSubject()
        {
            public String toLogString()
            {
                return "[" + subjectMessage + "] ";
            }
View Full Code Here

    }

    public void testOperationalLoggingWithStoreLocation() throws Exception
    {
        TestMessageStore messageStore = new TestMessageStore();
        LogSubject logSubject = LOG_SUBJECT;

        OperationalLoggingListener.listen(messageStore, logSubject);

        performTests(messageStore, true);
View Full Code Here

    }

    public void testOperationalLogging() throws Exception
    {
        TestMessageStore messageStore = new TestMessageStore();
        LogSubject logSubject = LOG_SUBJECT;

        OperationalLoggingListener.listen(messageStore, logSubject);

        performTests(messageStore, false);
    }
View Full Code Here

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

        _amqpActor.message(new LogSubject()
        {
            public String toLogString()
            {
                return "[AMQPActorTest]";
            }
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

        return 0;
    }

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

        Subject.doAs(subject, new PrivilegedAction<Object>()
        {
            @Override
            public Object run()
            {
                getEventLogger().message(new LogSubject()
                                  {
                                      public String toLogString()
                                      {
                                          return "[AMQPActorTest]";
                                      }
View Full Code Here

        return message;
    }

    public void sendTestLogMessage(final String message)
    {
        getEventLogger().message(new LogSubject()
                          {
                              public String toLogString()
                              {
                                  return message;
                              }
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.