org.apache.logging.log4j.core.net.server
Class JmsServer

java.lang.Object
  extended by org.apache.logging.log4j.core.LogEventListener
      extended by org.apache.logging.log4j.core.net.server.JmsServer
All Implemented Interfaces:
EventListener, MessageListener, LifeCycle

public class JmsServer
extends LogEventListener
implements MessageListener, LifeCycle

LogEventListener server that receives LogEvents over a JMS Destination.

Since:
2.1

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.logging.log4j.core.LifeCycle
LifeCycle.State
 
Constructor Summary
JmsServer(String connectionFactoryBindingName, String destinationBindingName, String username, String password)
           
 
Method Summary
 boolean isStarted()
           
 boolean isStopped()
           
 void onMessage(Message message)
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.apache.logging.log4j.core.LogEventListener
log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmsServer

public JmsServer(String connectionFactoryBindingName,
                 String destinationBindingName,
                 String username,
                 String password)
Method Detail

onMessage

public void onMessage(Message message)
Specified by:
onMessage in interface MessageListener

start

public void start()
Specified by:
start in interface LifeCycle

stop

public void stop()
Specified by:
stop in interface LifeCycle

isStarted

public boolean isStarted()
Specified by:
isStarted in interface LifeCycle

isStopped

public boolean isStopped()
Specified by:
isStopped in interface LifeCycle


Copyright © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.