本文整理汇总了Java中org.apache.camel.api.management.ManagedAttribute类的典型用法代码示例。如果您正苦于以下问题:Java ManagedAttribute类的具体用法?Java ManagedAttribute怎么用?Java ManagedAttribute使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ManagedAttribute类属于org.apache.camel.api.management包,在下文中一共展示了ManagedAttribute类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getHystrixTotalRequests
import org.apache.camel.api.management.ManagedAttribute; //导入依赖的package包/类
@ManagedAttribute
public long getHystrixTotalRequests() {
HystrixCommandMetrics metrics = HystrixCommandMetrics.getInstance(commandKey);
if (metrics != null) {
return metrics.getHealthCounts().getTotalRequests();
}
return 0;
}
示例2: getReplyToType
import org.apache.camel.api.management.ManagedAttribute; //导入依赖的package包/类
@ManagedAttribute
public String getReplyToType() {
if (configuration.getReplyToType() != null) {
return configuration.getReplyToType().name();
} else {
return null;
}
}
示例3: getHystrixExecutionTimeMean
import org.apache.camel.api.management.ManagedAttribute; //导入依赖的package包/类
@ManagedAttribute
public int getHystrixExecutionTimeMean() {
HystrixCommandMetrics metrics = HystrixCommandMetrics.getInstance(commandKey);
if (metrics != null) {
return metrics.getExecutionTimeMean();
}
return 0;
}
示例4: getDelegateEndpointUri
import org.apache.camel.api.management.ManagedAttribute; //导入依赖的package包/类
@ManagedAttribute(description = "Delegate Endpoint URI", mask = true)
public String getDelegateEndpointUri() {
return endpoint.getEndpointUri();
}
示例5: getReplyToOverride
import org.apache.camel.api.management.ManagedAttribute; //导入依赖的package包/类
@ManagedAttribute
public String getReplyToOverride() {
return getConfiguration().getReplyToOverride();
}
示例6: getLogLevel
import org.apache.camel.api.management.ManagedAttribute; //导入依赖的package包/类
@ManagedAttribute(description = "Logging Level")
String getLogLevel();
示例7: setLogName
import org.apache.camel.api.management.ManagedAttribute; //导入依赖的package包/类
@ManagedAttribute(description = "Logging Name")
void setLogName(String logName);
示例8: getApiKey
import org.apache.camel.api.management.ManagedAttribute; //导入依赖的package包/类
/**
* @return the API key for the ExLibris ALMA environment.
*/
@ManagedAttribute(description = "API key to use for authentication with ExLibris ALMA")
public String getApiKey() {
return this.apiKey;
}
示例9: getName
import org.apache.camel.api.management.ManagedAttribute; //导入依赖的package包/类
@ManagedAttribute(description = "Queue name")
public String getName() {
return name;
}
示例10: setOperation
import org.apache.camel.api.management.ManagedAttribute; //导入依赖的package包/类
/**
* Set the API operation to use for this endpoint.
* @param operation the ALMA api operation to use.
*/
@ManagedAttribute(description = "API operation to use with this ExLibris ALMA endpoint")
public void setOperation(String operation) {
this.operation = operation;
}
示例11: getCount
import org.apache.camel.api.management.ManagedAttribute; //导入依赖的package包/类
@ManagedAttribute
public Integer getCount() {
return getProperties().getCount();
}
示例12: getWaitStrategy
import org.apache.camel.api.management.ManagedAttribute; //导入依赖的package包/类
@ManagedAttribute(description = "Defines the strategy used by consumer threads to wait on new exchanges to be published")
public DisruptorWaitStrategy getWaitStrategy() {
return waitStrategy;
}
示例13: isAcceptMessagesWhileStopping
import org.apache.camel.api.management.ManagedAttribute; //导入依赖的package包/类
@ManagedAttribute
public boolean isAcceptMessagesWhileStopping() {
return getConfiguration().isAcceptMessagesWhileStopping();
}
示例14: getRetriesExhaustedLogLevel
import org.apache.camel.api.management.ManagedAttribute; //导入依赖的package包/类
@ManagedAttribute(description = "RedeliveryPolicy for logging level when retries exhausted")
String getRetriesExhaustedLogLevel();
示例15: isAggregateOnException
import org.apache.camel.api.management.ManagedAttribute; //导入依赖的package包/类
@ManagedAttribute(description = "Whether to aggregate when there was an exception thrown during calling the resource endpoint")
Boolean isAggregateOnException();