本文整理了Java中org.apache.tuscany.sca.monitor.Monitor.logNullMonitor()
方法的一些代码示例,展示了Monitor.logNullMonitor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Monitor.logNullMonitor()
方法的具体详情如下:
包路径:org.apache.tuscany.sca.monitor.Monitor
类名称:Monitor
方法名:logNullMonitor
暂无
代码示例来源:origin: org.apache.tuscany.sca/tuscany-monitor
/**
* A utility function for raising an error. It creates the problem and
* adds it to the monitor
*
* @param monitor
* @param reportingObject
* @param messageBundle
* @param messageId
* @param exception
*/
public static void warning (Monitor monitor,
Object reportingObject,
String messageBundle,
String messageId,
Throwable cause){
String contextClassName = getSourceClassName(reportingObject);
if (monitor != null) {
Problem problem =
monitor.createProblem(contextClassName,
messageBundle,
Severity.WARNING,
reportingObject,
messageId,
cause);
monitor.problem(problem);
} else {
logNullMonitor(messageId, contextClassName);
}
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
/**
* A utility function for raising a warning. It creates the problem and
* adds it to the monitor
*
* @param monitor
* @param reportingObject
* @param messageBundle
* @param messageId
* @param messageParameters
*/
public static void warning (Monitor monitor,
Object reportingObject,
String messageBundle,
String messageId,
Object... messageParameters){
String contextClassName = getSourceClassName(reportingObject);
if (monitor != null) {
Problem problem =
monitor.createProblem(contextClassName,
messageBundle,
Severity.WARNING,
reportingObject,
messageId,
messageParameters);
monitor.problem(problem);
} else {
logNullMonitor(messageId, contextClassName);
}
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-monitor
/**
* A utility function for raising an error. It creates the problem and
* adds it to the monitor
*
* @param monitor
* @param reportingObject
* @param messageBundle
* @param messageId
* @param messageParameters
*/
public static void error (Monitor monitor,
Object reportingObject,
String messageBundle,
String messageId,
Object... messageParameters){
String contextClassName = getSourceClassName(reportingObject);
if (monitor != null) {
Problem problem =
monitor.createProblem(contextClassName,
messageBundle,
Severity.ERROR,
reportingObject,
messageId,
messageParameters);
monitor.problem(problem);
} else {
logNullMonitor(messageId, contextClassName);
}
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-monitor
monitor.problem(problem);
} else {
logNullMonitor(messageId, contextClassName);
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
/**
* A utility function for raising an error. It creates the problem and
* adds it to the monitor
*
* @param monitor
* @param reportingObject
* @param messageBundle
* @param messageId
* @param messageParameters
*/
public static void error (Monitor monitor,
Object reportingObject,
String messageBundle,
String messageId,
Object... messageParameters){
String contextClassName = getSourceClassName(reportingObject);
if (monitor != null) {
Problem problem =
monitor.createProblem(contextClassName,
messageBundle,
Severity.ERROR,
reportingObject,
messageId,
messageParameters);
monitor.problem(problem);
} else {
logNullMonitor(messageId, contextClassName);
}
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
/**
* A utility function for raising an error. It creates the problem and
* adds it to the monitor
*
* @param monitor
* @param reportingObject
* @param messageBundle
* @param messageId
* @param exception
*/
public static void error (Monitor monitor,
Object reportingObject,
String messageBundle,
String messageId,
Throwable cause){
String contextClassName = getSourceClassName(reportingObject);
if (monitor != null) {
Problem problem =
monitor.createProblem(contextClassName,
messageBundle,
Severity.ERROR,
reportingObject,
messageId,
cause);
monitor.problem(problem);
} else {
logNullMonitor(messageId, contextClassName);
}
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-monitor
/**
* A utility function for raising an error. It creates the problem and
* adds it to the monitor
*
* @param monitor
* @param reportingObject
* @param messageBundle
* @param messageId
* @param exception
*/
public static void error (Monitor monitor,
Object reportingObject,
String messageBundle,
String messageId,
Throwable cause){
String contextClassName = getSourceClassName(reportingObject);
if (monitor != null) {
Problem problem =
monitor.createProblem(contextClassName,
messageBundle,
Severity.ERROR,
reportingObject,
messageId,
cause);
monitor.problem(problem);
} else {
logNullMonitor(messageId, contextClassName);
}
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
/**
* A utility function for raising an error. It creates the problem and
* adds it to the monitor
*
* @param monitor
* @param reportingObject
* @param messageBundle
* @param messageId
* @param exception
*/
public static void warning (Monitor monitor,
Object reportingObject,
String messageBundle,
String messageId,
Throwable cause){
String contextClassName = getSourceClassName(reportingObject);
if (monitor != null) {
Problem problem =
monitor.createProblem(contextClassName,
messageBundle,
Severity.WARNING,
reportingObject,
messageId,
cause);
monitor.problem(problem);
} else {
logNullMonitor(messageId, contextClassName);
}
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-monitor
/**
* A utility function for raising a warning. It creates the problem and
* adds it to the monitor
*
* @param monitor
* @param reportingObject
* @param messageBundle
* @param messageId
* @param messageParameters
*/
public static void warning (Monitor monitor,
Object reportingObject,
String messageBundle,
String messageId,
Object... messageParameters){
String contextClassName = getSourceClassName(reportingObject);
if (monitor != null) {
Problem problem =
monitor.createProblem(contextClassName,
messageBundle,
Severity.WARNING,
reportingObject,
messageId,
messageParameters);
monitor.problem(problem);
} else {
logNullMonitor(messageId, contextClassName);
}
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-monitor
monitor.problem(problem);
} else {
logNullMonitor(messageId, contextClassName);
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
monitor.problem(problem);
} else {
logNullMonitor(messageId, contextClassName);
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
monitor.problem(problem);
} else {
logNullMonitor(messageId, contextClassName);
内容来源于网络,如有侵权,请联系作者删除!