Package org.apache.camel.api.management.mbean

Examples of org.apache.camel.api.management.mbean.ManagedBacklogTracerMBean


    try {
      // TODO we should add trace messages for a specific route ID to the
      // all routes
      Object tracer = getTracer();
      if (tracer instanceof ManagedBacklogTracerMBean) {
        ManagedBacklogTracerMBean camelTracer = (ManagedBacklogTracerMBean)tracer;
        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


    return getTraceExchangeList(id).getExchangeList();
  }

  public Object getTracer() {
    try {
      ManagedBacklogTracerMBean mbean = getFacade().getCamelTracer(getManagementName());
      if (mbean != null) {
        return mbean;
      } else {
        return getFacade().getFabricTracer(getManagementName());
      }
View Full Code Here

    ObjectName query = ObjectName.getInstance("org.apache.camel:context=" + id + ",type=tracer,*");

    Set<ObjectInstance> names = queryNames(query, null);
    for (ObjectInstance on : names) {
      if (on.getClassName().equals("org.apache.camel.management.mbean.ManagedBacklogTracer")) {
        ManagedBacklogTracerMBean tracer = (ManagedBacklogTracerMBean) newProxyInstance(on.getObjectName(), ManagedBacklogTracerMBean.class, true);
        return tracer;
      }
    }

    // tracer not found
View Full Code Here

TOP

Related Classes of org.apache.camel.api.management.mbean.ManagedBacklogTracerMBean

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.