Examples of dumpTracedMessages()


Examples of org.apache.camel.api.management.mbean.ManagedBacklogTracerMBean.dumpTracedMessages()

        if (camelTracer != null) {
          List<BacklogTracerEventMessage> traceMessages = null;
          if (id == null) {
            traceMessages = camelTracer.dumpAllTracedMessages();
          } else {
            traceMessages = camelTracer.dumpTracedMessages(id);
          }
          traceList.addBackLogTraceMessages(traceMessages);
        } else {
          // TODO should we highlight in the UI that there's no tracer enabled?
        }
View Full Code Here

Examples of org.apache.camel.processor.interceptor.BacklogTracer.dumpTracedMessages()

            Unmarshaller unmarshaller = context.createUnmarshaller();
            SimpleDateFormat sdf = new SimpleDateFormat(BacklogTracerEventMessage.TIMESTAMP_FORMAT);

            List<BacklogTracerEventMessage> events;
            if (pattern != null) {
                events = backlogTracer.dumpTracedMessages(pattern);
            } else {
                events = backlogTracer.dumpAllTracedMessages();
            }
            for (BacklogTracerEventMessage event : events) {
                MessageDump msg = (MessageDump) unmarshaller.unmarshal(new StringReader(event.getMessageAsXml()));
View Full Code Here

Examples of org.apache.camel.processor.interceptor.BacklogTracer.dumpTracedMessages()

                System.out.println(body);
                System.out.println("");
            }
        } else if ("xml".equals(format)) {
            if (pattern != null) {
                System.out.println("BacklogTracer messages:\n" + backlogTracer.dumpTracedMessages(pattern));
            } else {
                System.out.println("BacklogTracer messages:\n" + backlogTracer.dumpAllTracedMessagesAsXml());
            }
            return null;
        }
View Full Code Here

Examples of org.apache.camel.processor.interceptor.BacklogTracer.dumpTracedMessages()

            Unmarshaller unmarshaller = context.createUnmarshaller();
            SimpleDateFormat sdf = new SimpleDateFormat(BacklogTracerEventMessage.TIMESTAMP_FORMAT);

            List<BacklogTracerEventMessage> events;
            if (pattern != null) {
                events = backlogTracer.dumpTracedMessages(pattern);
            } else {
                events = backlogTracer.dumpAllTracedMessages();
            }
            for (BacklogTracerEventMessage event : events) {
                MessageDump msg = (MessageDump) unmarshaller.unmarshal(new StringReader(event.getMessageAsXml()));
View Full Code Here

Examples of org.apache.camel.processor.interceptor.BacklogTracer.dumpTracedMessages()

                System.out.println(body);
                System.out.println("");
            }
        } else if ("xml".equals(format)) {
            if (pattern != null) {
                System.out.println("BacklogTracer messages:\n" + backlogTracer.dumpTracedMessages(pattern));
            } else {
                System.out.println("BacklogTracer messages:\n" + backlogTracer.dumpAllTracedMessagesAsXml());
            }
            return null;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.