本文整理了Java中org.teiid.logging.LogManager.logTrace()
方法的一些代码示例,展示了LogManager.logTrace()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LogManager.logTrace()
方法的具体详情如下:
包路径:org.teiid.logging.LogManager
类名称:LogManager
方法名:logTrace
[英]Send a trace message to the log. A trace message is the most detailed logging level, used to trace system execution for really nasty problems. At this level, logging will be so verbose that the system performance may be affected.
Only if the log manager is configured to send such messages to the destination will the message be recorded.
[中]向日志发送跟踪消息。跟踪消息是最详细的日志记录级别,用于跟踪系统执行情况,以解决真正严重的问题。在这个级别上,日志记录将非常详细,可能会影响系统性能。
只有将日志管理器配置为将此类消息发送到目标时,才会记录该消息。
代码示例来源:origin: org.teiid.connectors/translator-jpa
private int executeUpdate(Command cmd) throws TranslatorException {
String jpql = JPQLUpdateQueryVisitor.getJPQLString(cmd);
LogManager.logTrace(LogConstants.CTX_CONNECTOR, "JPA Source-Query:", jpql); //$NON-NLS-1$
Query query = this.enityManager.createQuery(jpql);
return query.executeUpdate();
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
/**
* @see ProcessorInstruction#process(ProcessorEnvironment)
* @throws TeiidComponentException always
*/
public XMLContext process(XMLProcessorEnvironment env, XMLContext context)
throws BlockedException, TeiidComponentException, TeiidProcessingException{
LogManager.logTrace(org.teiid.logging.LogConstants.CTX_XML_PLAN, "ABORT processing now."); //$NON-NLS-1$
throw new TeiidComponentException(QueryPlugin.Event.TEIID30210, DEFAULT_MESSAGE);
}
代码示例来源:origin: org.teiid.connectors/connector-salesforce
public boolean isValid() {
if(partnerConnection != null) {
try {
partnerConnection.getServerTimestamp();
return true;
} catch (Throwable t) {
LogManager.logTrace(LogConstants.CTX_CONNECTOR, "Caught Throwable in isAlive", t); //$NON-NLS-1$
}
}
return false;
}
代码示例来源:origin: org.teiid.connectors/connector-ldap
public boolean isAlive() {
try {
NamingEnumeration<SearchResult> result = this.initCtx.search("", "objectclass=*", VALIDATION_SEARCH_CONTROLS); //$NON-NLS-1$ //$NON-NLS-2$
if (result.hasMore()) {
result.next();
}
} catch (NamingException e) {
return false;
}
LogManager.logTrace(LogConstants.CTX_CONNECTOR, "LDAP Connection is alive."); //$NON-NLS-1$
return true;
}
代码示例来源:origin: org.teiid.connectors/translator-google
@Override
public void start() throws TranslatorException {
super.start();
LogManager.logTrace(LogConstants.CTX_CONNECTOR, "Google Spreadsheet ExecutionFactory Started"); //$NON-NLS-1$
}
代码示例来源:origin: org.teiid.wildfly.connectors/connector-ldap
public boolean isAlive() {
try {
NamingEnumeration<SearchResult> result = this.initCtx.search("", "objectclass=*", VALIDATION_SEARCH_CONTROLS); //$NON-NLS-1$ //$NON-NLS-2$
if (result.hasMore()) {
result.next();
}
} catch (NamingException e) {
return false;
}
LogManager.logTrace(LogConstants.CTX_CONNECTOR, "LDAP Connection is alive."); //$NON-NLS-1$
return true;
}
代码示例来源:origin: org.teiid.connectors/translator-jpa
@Override
public void execute() throws TranslatorException {
String jpql = JPQLSelectVisitor.getJPQLString((Select)this.command, this.executionFactory, this.metadata);
LogManager.logTrace(LogConstants.CTX_CONNECTOR, "JPA Source-Query:", jpql); //$NON-NLS-1$
Query query = this.enityManager.createQuery(jpql);
handleLimit(this.command, query);
List results = query.getResultList();
this.resultsIterator = results.iterator();
}
代码示例来源:origin: org.teiid.connectors/connector-salesforce
private void throwDataNotAvailable(BatchResultInfo info) {
int waitCount = info.incrementAndGetWaitCount();
LogManager.logTrace(LogConstants.CTX_CONNECTOR, "Waiting on queued/inprogress, wait number", waitCount); //$NON-NLS-1$
throw new DataNotAvailableException(pollingInterval * Math.min(8, waitCount));
}
代码示例来源:origin: org.teiid/teiid-runtime
@Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
if (LogManager.isMessageToBeRecorded(LogConstants.CTX_ODBC, MessageLevel.TRACE)) {
LogManager.logTrace(LogConstants.CTX_ODBC, "invoking client method:", method.getName(), Arrays.deepToString(args)); //$NON-NLS-1$
}
ServiceInvocationStruct message = new ServiceInvocationStruct(args, method.getName(),ODBCServerRemote.class);
channel.write(message);
return null;
}
});
代码示例来源:origin: org.teiid/teiid-runtime
@Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
if (LogManager.isMessageToBeRecorded(LogConstants.CTX_ODBC, MessageLevel.TRACE)) {
LogManager.logTrace(LogConstants.CTX_ODBC, "invoking server method:", method.getName(), Arrays.deepToString(args)); //$NON-NLS-1$
}
message = new PGRequest();
message.struct = new ServiceInvocationStruct(args, method.getName(),ODBCServerRemote.class);
return null;
}
});
代码示例来源:origin: teiid/teiid
private void freeDataBlock(int dataBlock) {
if (LogManager.isMessageToBeRecorded(LogConstants.CTX_BUFFER_MGR, MessageLevel.TRACE)) {
LogManager.logTrace(LogConstants.CTX_BUFFER_MGR, "freeing data block", dataBlock, "for", gid, oid); //$NON-NLS-1$ //$NON-NLS-2$
}
blocksInuse.clear(dataBlock);
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
/**
* @see ProcessorInstruction#process(ProcessorEnvironment)
* @throws TeiidProcessingException if row limit is reached and exception should
* be thrown
*/
public XMLContext process(XMLProcessorEnvironment env, XMLContext context)
throws BlockedException, TeiidComponentException, TeiidProcessingException {
LogManager.logTrace(org.teiid.logging.LogConstants.CTX_XML_PLAN, new Object[]{"NEXT", resultSetName}); //$NON-NLS-1$
context.getNextRow(resultSetName);
env.incrementCurrentProgramCounter();
return context;
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
private void freeDataBlock(int dataBlock) {
if (LogManager.isMessageToBeRecorded(LogConstants.CTX_BUFFER_MGR, MessageLevel.TRACE)) {
LogManager.logTrace(LogConstants.CTX_BUFFER_MGR, "freeing data block", dataBlock, "for", gid, oid); //$NON-NLS-1$ //$NON-NLS-2$
}
blocksInuse.clear(dataBlock);
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
protected void pushProgram(XMLProcessorEnvironment env,
XMLContext context,
List row) throws TeiidComponentException {
LogManager.logTrace(org.teiid.logging.LogConstants.CTX_XML_PLAN, new Object[]{"WHILE repeating for result set:",resultSetName,", block program:", blockProgram}); //$NON-NLS-1$ //$NON-NLS-2$
context.setVariableValues(resultSetName, row);
//push the block Program onto the stack
env.pushProgram(blockProgram);
}
代码示例来源:origin: org.teiid/teiid-engine
private void freeDataBlock(int dataBlock) {
if (LogManager.isMessageToBeRecorded(LogConstants.CTX_BUFFER_MGR, MessageLevel.TRACE)) {
LogManager.logTrace(LogConstants.CTX_BUFFER_MGR, "freeing data block", dataBlock, "for", gid, oid); //$NON-NLS-1$ //$NON-NLS-2$
}
blocksInuse.clear(dataBlock);
}
代码示例来源:origin: org.teiid.connectors/translator-salesforce
@Override
public void start() throws TranslatorException {
super.start();
addPushDownFunction(SALESFORCE, INCLUDES, BOOLEAN, STRING, STRING);
addPushDownFunction(SALESFORCE, EXCLUDES, BOOLEAN, STRING, STRING);
LogManager.logTrace(LogConstants.CTX_CONNECTOR, "Salesforce ExecutionFactory Started"); //$NON-NLS-1$
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
@Override
public FileStore createFileStore(String name) {
if (LogManager.isMessageToBeRecorded(LogConstants.CTX_BUFFER_MGR, MessageLevel.TRACE)) {
LogManager.logTrace(LogConstants.CTX_BUFFER_MGR, "Creating FileStore:", name); //$NON-NLS-1$
}
FileStore result = this.storageManager.createFileStore(name);
result.setMaxLength(this.maxFileStoreLength);
return result;
}
代码示例来源:origin: org.teiid/teiid-runtime
public ResultsFuture<?> ping() throws InvalidSessionException,TeiidComponentException {
// ping is double used to alert the aliveness of the client, as well as check the server instance is
// alive by socket server instance, so that they can be cached.
String id = DQPWorkContext.getWorkContext().getSessionId();
if (id != null) {
this.service.pingServer(id);
}
LogManager.logTrace(LogConstants.CTX_SECURITY, "Ping", id); //$NON-NLS-1$
return ResultsFuture.NULL_FUTURE;
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
/**
* @see ProcessorInstruction#process(ProcessorEnvironment)
*/
public XMLContext process(XMLProcessorEnvironment env, XMLContext context)
throws BlockedException, TeiidComponentException, TeiidProcessingException{
// now that we are done with while loop above this statement; bubble up the context
context = context.getParentContext();
context.removeResultSet(resultSetName);
LogManager.logTrace(org.teiid.logging.LogConstants.CTX_XML_PLAN, new Object[]{CLOSE_FINISHED,resultSetName});
env.incrementCurrentProgramCounter();
return context;
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
public void reset() {
super.reset();
nextBatchCount = 1;
this.context = new XMLContext();
this.env = this.env.clone();
LogManager.logTrace(LogConstants.CTX_XML_PLAN, "XMLPlan reset"); //$NON-NLS-1$
}
内容来源于网络,如有侵权,请联系作者删除!