001 /** 002 * Licensed to the Apache Software Foundation (ASF) under one or more 003 * contributor license agreements. See the NOTICE file distributed with 004 * this work for additional information regarding copyright ownership. 005 * The ASF licenses this file to You under the Apache License, Version 2.0 006 * (the "License"); you may not use this file except in compliance with 007 * the License. You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017 package org.apache.camel.api.management.mbean; 018 019 import org.apache.camel.api.management.ManagedAttribute; 020 021 public interface ManagedTracerMBean { 022 023 @ManagedAttribute(description = "Tracer enabled") 024 boolean getEnabled(); 025 026 @ManagedAttribute(description = "Tracer enabled") 027 void setEnabled(boolean enabled); 028 029 @ManagedAttribute(description = "Additional destination URI") 030 String getDestinationUri(); 031 032 @ManagedAttribute(description = "Additional destination URI") 033 void setDestinationUri(String uri); 034 035 @ManagedAttribute(description = "Logging Name") 036 String getLogName(); 037 038 @ManagedAttribute(description = "Using JPA") 039 boolean getUseJpa(); 040 041 @ManagedAttribute(description = "Logging Name") 042 void setLogName(String logName); 043 044 @ManagedAttribute(description = "Logging Level") 045 String getLogLevel(); 046 047 @ManagedAttribute(description = "Logging Level") 048 void setLogLevel(String logLevel); 049 050 @ManagedAttribute(description = "Log Stacktrace") 051 boolean getLogStackTrace(); 052 053 @ManagedAttribute(description = "Log Stacktrace") 054 void setLogStackTrace(boolean logStackTrace); 055 056 @ManagedAttribute(description = "Trace Interceptors") 057 boolean getTraceInterceptors(); 058 059 @ManagedAttribute(description = "Trace Interceptors") 060 void setTraceInterceptors(boolean traceInterceptors); 061 062 @ManagedAttribute(description = "Trace Exceptions") 063 boolean getTraceExceptions(); 064 065 @ManagedAttribute(description = "Trace Exceptions") 066 void setTraceExceptions(boolean traceExceptions); 067 068 @ManagedAttribute(description = "Trace Out Exchanges") 069 boolean getTraceOutExchanges(); 070 071 @ManagedAttribute(description = "Trace Out Exchanges") 072 void setTraceOutExchanges(boolean traceOutExchanges); 073 074 @ManagedAttribute(description = "Formatter show body") 075 boolean getFormatterShowBody(); 076 077 @ManagedAttribute(description = "Formatter show body") 078 void setFormatterShowBody(boolean showBody); 079 080 @ManagedAttribute(description = "Formatter show body type") 081 boolean getFormatterShowBodyType(); 082 083 @ManagedAttribute(description = "Formatter show body type") 084 void setFormatterShowBodyType(boolean showBodyType); 085 086 @ManagedAttribute(description = "Formatter show out body") 087 boolean getFormatterShowOutBody(); 088 089 @ManagedAttribute(description = "Formatter show out body") 090 void setFormatterShowOutBody(boolean showOutBody); 091 092 @ManagedAttribute(description = "Formatter show out body type") 093 boolean getFormatterShowOutBodyType(); 094 095 @ManagedAttribute(description = "Formatter show out body type") 096 void setFormatterShowOutBodyType(boolean showOutBodyType); 097 098 @ManagedAttribute(description = "Formatter show breadcrumb") 099 boolean getFormatterShowBreadCrumb(); 100 101 @ManagedAttribute(description = "Formatter show breadcrumb") 102 void setFormatterShowBreadCrumb(boolean showBreadCrumb); 103 104 @ManagedAttribute(description = "Formatter show exchange ID") 105 boolean getFormatterShowExchangeId(); 106 107 @ManagedAttribute(description = "Formatter show exchange ID") 108 void setFormatterShowExchangeId(boolean showExchangeId); 109 110 @ManagedAttribute(description = "Formatter show headers") 111 boolean getFormatterShowHeaders(); 112 113 @ManagedAttribute(description = "Formatter show headers") 114 void setFormatterShowHeaders(boolean showHeaders); 115 116 @ManagedAttribute(description = "Formatter show out headers") 117 boolean getFormatterShowOutHeaders(); 118 119 @ManagedAttribute(description = "Formatter show out headers") 120 void setFormatterShowOutHeaders(boolean showOutHeaders); 121 122 @ManagedAttribute(description = "Formatter show properties") 123 boolean getFormatterShowProperties(); 124 125 @ManagedAttribute(description = "Formatter show properties") 126 void setFormatterShowProperties(boolean showProperties); 127 128 @ManagedAttribute(description = "Formatter show node") 129 boolean getFormatterShowNode(); 130 131 @ManagedAttribute(description = "Formatter show node") 132 void setFormatterShowNode(boolean showNode); 133 134 @ManagedAttribute(description = "Formatter show exchange pattern") 135 boolean getFormatterShowExchangePattern(); 136 137 @ManagedAttribute(description = "Formatter show exchange pattern") 138 void setFormatterShowExchangePattern(boolean showExchangePattern); 139 140 @ManagedAttribute(description = "Formatter show exception") 141 boolean getFormatterShowException(); 142 143 @ManagedAttribute(description = "Formatter show exception") 144 void setFormatterShowException(boolean showException); 145 146 @ManagedAttribute(description = "Formatter show route ID") 147 boolean getFormatterShowRouteId(); 148 149 @ManagedAttribute(description = "Formatter show route ID") 150 void setFormatterShowRouteId(boolean showRouteId); 151 152 @ManagedAttribute(description = "Formatter breadcrumb length") 153 int getFormatterBreadCrumbLength(); 154 155 @ManagedAttribute(description = "Formatter breadcrumb length") 156 void setFormatterBreadCrumbLength(int breadCrumbLength); 157 158 @ManagedAttribute(description = "Formatter show short exchange ID") 159 boolean getFormatterShowShortExchangeId(); 160 161 @ManagedAttribute(description = "Formatter show short exchange ID") 162 void setFormatterShowShortExchangeId(boolean showShortExchangeId); 163 164 @ManagedAttribute(description = "Formatter node length") 165 int getFormatterNodeLength(); 166 167 @ManagedAttribute(description = "Formatter node length") 168 void setFormatterNodeLength(int nodeLength); 169 170 @ManagedAttribute(description = "Formatter max chars") 171 int getFormatterMaxChars(); 172 173 @ManagedAttribute(description = "Formatter max chars") 174 void setFormatterMaxChars(int maxChars); 175 176 @ManagedAttribute(description = "Should trace events be sent as JMX notifications") 177 boolean isJmxTraceNotifications(); 178 179 @ManagedAttribute(description = "Should trace events be sent as JMX notifications") 180 void setJmxTraceNotifications(boolean jmxTraceNotifications); 181 182 @ManagedAttribute(description = "Maximum size of a message body for trace notification") 183 int getTraceBodySize(); 184 185 @ManagedAttribute(description = "Maximum size of a message body for trace notification") 186 void setTraceBodySize(int traceBodySize); 187 188 }