本文整理了Java中org.modeshape.jcr.api.Logger.trace()
方法的一些代码示例,展示了Logger.trace()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.trace()
方法的具体详情如下:
包路径:org.modeshape.jcr.api.Logger
类名称:Logger
方法名:trace
[英]Log a message at the TRACE level according to the specified format and (optional) parameters. The message should contain a pair of empty curly braces for each of the parameter, which should be passed in the correct order. The pattern consists of zero or more keys of the form {n}
, where n
is an integer starting at 0. Therefore, the first parameter replaces all occurrences of "{0}", the second parameter replaces all occurrences of "{1}", etc.
If any parameter is null, the corresponding key is replaced with the string "null". Therefore, consider using an empty string when keys are to be removed altogether.
[中]根据指定的格式和(可选)参数在跟踪级别记录消息。消息应该为每个参数包含一对空大括号,并且应该按照正确的顺序传递。该模式由格式为{n}
的零个或多个键组成,其中n
是从0开始的整数。因此,第一个参数替换所有出现的“{0}”,第二个参数替换所有出现的“{1}”,等等。
如果任何参数为null,则相应的键将替换为字符串“null”。因此,当键被完全移除时,考虑使用一个空字符串。
代码示例来源:origin: ModeShape/modeshape
@Override
public void filter( ContainerRequestContext requestContext,
ContainerResponseContext responseContext ) {
LOGGER.trace("Executing cleanup filter...");
AbstractHandler.cleanupActiveSession();
}
}
代码示例来源:origin: org.fcrepo/modeshape-jcr
/**
* Get the queryable index with the given name and applicable for the given workspace.
*
* @param indexName the name of the index in this provider; never null
* @param workspaceName the name of the workspace; never null
* @return the queryable index, or null if there is no such index
*/
public final Index getIndex( String indexName,
String workspaceName ) {
logger().trace("Looking for index '{0}' in '{1}' provider for query in workspace '{2}'", indexName, getName(),
workspaceName);
Map<String, AtomicIndex> byWorkspaceNames = providedIndexesByWorkspaceNameByIndexName.get(indexName);
return byWorkspaceNames == null ? null : byWorkspaceNames.get(workspaceName);
}
代码示例来源:origin: ModeShape/modeshape
/**
* Get the queryable index with the given name and applicable for the given workspace.
*
* @param indexName the name of the index in this provider; never null
* @param workspaceName the name of the workspace; never null
* @return the queryable index, or null if there is no such index
*/
public final Index getIndex( String indexName,
String workspaceName ) {
logger().trace("Looking for index '{0}' in '{1}' provider for query in workspace '{2}'", indexName, getName(),
workspaceName);
Map<String, AtomicIndex> byWorkspaceNames = providedIndexesByWorkspaceNameByIndexName.get(indexName);
return byWorkspaceNames == null ? null : byWorkspaceNames.get(workspaceName);
}
代码示例来源:origin: ModeShape/modeshape
/**
* Get the managed index with the given name and applicable for the given workspace.
*
* @param indexName the name of the index in this provider; never null
* @param workspaceName the name of the workspace; never null
* @return the managed index, or null if there is no such index
*/
public final ManagedIndex getManagedIndex( String indexName,
String workspaceName ) {
logger().trace("Looking for managed index '{0}' in '{1}' provider in workspace '{2}'", indexName, getName(),
workspaceName);
Map<String, AtomicIndex> byWorkspaceNames = providedIndexesByWorkspaceNameByIndexName.get(indexName);
if (byWorkspaceNames == null) {
return null;
}
AtomicIndex atomicIndex = byWorkspaceNames.get(workspaceName);
return atomicIndex == null ? null : atomicIndex.managed();
}
代码示例来源:origin: org.fcrepo/modeshape-jcr
/**
* Get the managed index with the given name and applicable for the given workspace.
*
* @param indexName the name of the index in this provider; never null
* @param workspaceName the name of the workspace; never null
* @return the managed index, or null if there is no such index
*/
public final ManagedIndex getManagedIndex( String indexName,
String workspaceName ) {
logger().trace("Looking for managed index '{0}' in '{1}' provider in workspace '{2}'", indexName, getName(),
workspaceName);
Map<String, AtomicIndex> byWorkspaceNames = providedIndexesByWorkspaceNameByIndexName.get(indexName);
if (byWorkspaceNames == null) {
return null;
}
AtomicIndex atomicIndex = byWorkspaceNames.get(workspaceName);
return atomicIndex == null ? null : atomicIndex.managed();
}
代码示例来源:origin: ModeShape/modeshape
for (Constraint constraint : calculator.andedConstraints()) {
if (planner.indexAppliesTo(constraint)) {
logger().trace("Index '{0}' in '{1}' provider applies to query in workspace '{2}' with constraint: {3}",
defn.getName(), getName(), workspaceName, constraint);
logger().trace("Index '{0}' in '{1}' provider applies to query in workspace '{2}' with constraint: {3}",
defn.getName(), getName(), workspaceName, joinCondition);
applicableJoins.add(joinCondition);
代码示例来源:origin: org.fcrepo/modeshape-jcr
for (Constraint constraint : calculator.andedConstraints()) {
if (planner.indexAppliesTo(constraint)) {
logger().trace("Index '{0}' in '{1}' provider applies to query in workspace '{2}' with constraint: {3}",
defn.getName(), getName(), workspaceName, constraint);
logger().trace("Index '{0}' in '{1}' provider applies to query in workspace '{2}' with constraint: {3}",
defn.getName(), getName(), workspaceName, joinCondition);
applicableJoins.add(joinCondition);
代码示例来源:origin: org.fcrepo/modeshape-jcr
if (!defn.isEnabled()) {
if (traceEnabled) {
logger().trace("Skipping index '{0}' in '{1}' provider because it is not enabled",
defn.getName(), getName());
logger().trace("Skipping index '{0}' in '{1}' provider for query because it doest not match the '{2}' workspace",
defn.getName(), getName(), workspaceName);
logger().trace("Considering index '{0}' in '{1}' provider for query in workspace '{2}'",
defn.getName(),
getName(),
logger().trace("Skipping index '{0}' in '{1}' provider for query because the index definition node type '{2}' does not match the selected node types '{3}'",
defn.getName(), getName(), defn.getNodeTypeName(), calculator.selectedNodeTypes());
代码示例来源:origin: ModeShape/modeshape
if (!defn.isEnabled()) {
if (traceEnabled) {
logger().trace("Skipping index '{0}' in '{1}' provider because it is not enabled",
defn.getName(), getName());
logger().trace("Skipping index '{0}' in '{1}' provider for query because it doest not match the '{2}' workspace",
defn.getName(), getName(), workspaceName);
logger().trace("Considering index '{0}' in '{1}' provider for query in workspace '{2}'",
defn.getName(),
getName(),
logger().trace("Skipping index '{0}' in '{1}' provider for query because the index definition node type '{2}' does not match the selected node types '{3}'",
defn.getName(), getName(), defn.getNodeTypeName(), calculator.selectedNodeTypes());
代码示例来源:origin: ModeShape/modeshape
this.indexUpdater = new IndexUpdater(db);
logger().trace("Found the index files {0} in index database for repository '{1}' at: {2}", db.getCatalog(),
getRepositoryName(), file.getAbsolutePath());
代码示例来源:origin: org.fcrepo/modeshape-jcr
this.indexUpdater = new IndexUpdater(db);
logger().trace("Found the index files {0} in index database for repository '{1}' at: {2}", db.getCatalog(),
getRepositoryName(), file.getAbsolutePath());
内容来源于网络,如有侵权,请联系作者删除!