本文整理了Java中org.teiid.logging.LogManager.logDetail()
方法的一些代码示例,展示了LogManager.logDetail()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LogManager.logDetail()
方法的具体详情如下:
包路径:org.teiid.logging.LogManager
类名称:LogManager
方法名:logDetail
[英]Send a detail message to the log. Such messages are moderately detailed, and help to debug typical problems in the system. Generally, these messages are not so detailed that the big picture gets lost.
Only if the log manager is configured to send such messages to the destination will the message be recorded.
[中]向日志发送详细信息。这些消息相当详细,有助于调试系统中的典型问题。一般来说,这些信息并不太详细,以至于大局不复存在。
只有将日志管理器配置为将此类消息发送到目标时,才会记录该消息。
代码示例来源:origin: org.jboss.teiid/teiid-engine
public static BlockedException block(Object... msg) {
if (LogManager.isMessageToBeRecorded(LogConstants.CTX_BUFFER_MGR, MessageLevel.DETAIL)) {
LogManager.logDetail(LogConstants.CTX_BUFFER_MGR, msg);
}
return INSTANCE;
}
代码示例来源:origin: org.teiid/teiid-engine
public void closeDirect() {
try {
plan.close();
} catch (TeiidComponentException e1){
LogManager.logDetail(org.teiid.logging.LogConstants.CTX_DQP, e1, "Error closing processor"); //$NON-NLS-1$
}
}
代码示例来源:origin: org.teiid/teiid-engine
/**
* initialize this <code>ConnectorManager</code>.
* @throws TranslatorException
*/
public void start() {
LogManager.logDetail(LogConstants.CTX_CONNECTOR, QueryPlugin.Util.getString("ConnectorManagerImpl.Initializing_connector", translatorName)); //$NON-NLS-1$
}
代码示例来源:origin: org.teiid.connectors/translator-google
@Override
public void cancel() throws TranslatorException {
LogManager.logDetail(LogConstants.CTX_CONNECTOR, SpreadsheetExecutionFactory.UTIL.getString("cancel_query")); //$NON-NLS-1$
this.rowIterator = null;
}
代码示例来源:origin: org.teiid.connectors/translator-olap
@Override
public void close() {
try {
if (this.stmt != null) {
this.stmt.close();
this.stmt = null;
}
} catch (SQLException e) {
LogManager.logDetail(LogConstants.CTX_CONNECTOR, e, "Exception closing"); //$NON-NLS-1$
}
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
public void closeDirect() {
try {
plan.close();
} catch (TeiidComponentException e1){
LogManager.logDetail(org.teiid.logging.LogConstants.CTX_DQP, e1, "Error closing processor"); //$NON-NLS-1$
}
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
/**
* initialize this <code>ConnectorManager</code>.
* @throws TranslatorException
*/
public void start() {
LogManager.logDetail(LogConstants.CTX_CONNECTOR, QueryPlugin.Util.getString("ConnectorManagerImpl.Initializing_connector", translatorName)); //$NON-NLS-1$
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
private void checkForLowMemory() {
//proactively create freespace
if (!cleanerRunning.get() && lowBlocks(false) && cleanerRunning.compareAndSet(false, true)) {
LogManager.logDetail(LogConstants.CTX_BUFFER_MGR, "Starting memory buffer cleaner"); //$NON-NLS-1$
asynchPool.execute(cleaningTask);
}
if (lowBlocks(true)) {
//do a non-blocking removal before we're forced to block
evictFromMemoryBuffer(false);
}
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
private void logRequest(Set<String> resources, Context context) {
if (LogManager.isMessageToBeRecorded(LogConstants.CTX_AUDITLOGGING, MessageLevel.DETAIL)) {
// Audit - request
AuditMessage msg = new AuditMessage(context.name(), "getInaccessibleResources-request", resources.toArray(new String[resources.size()]), commandContext); //$NON-NLS-1$
LogManager.logDetail(LogConstants.CTX_AUDITLOGGING, msg);
}
}
代码示例来源:origin: org.teiid/teiid-engine
@Override
public void closeSource() {
try {
clearFuture();
} catch (TeiidComponentException | TeiidProcessingException e) {
LogManager.logDetail(LogConstants.CTX_DQP, e, "Exeception durring close"); //$NON-NLS-1$
} finally {
synchronized (this) {
result.closeSource();
}
}
}
代码示例来源:origin: org.teiid.connectors/translator-salesforce
public void cancel() throws TranslatorException {
LogManager.logDetail(LogConstants.CTX_CONNECTOR, SalesForcePlugin.Util.getString("SalesforceQueryExecutionImpl.cancel"));//$NON-NLS-1$
if (activeJob != null) {
this.connection.cancelBulkJob(activeJob);
}
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
public void remove() {
if (!removed) {
if (LogManager.isMessageToBeRecorded(LogConstants.CTX_BUFFER_MGR, MessageLevel.DETAIL)) {
LogManager.logDetail(LogConstants.CTX_BUFFER_MGR, "Removing TupleBuffer:", this.tupleSourceID); //$NON-NLS-1$
}
this.batchBuffer = null;
purge();
this.manager.remove();
removed = true;
}
}
代码示例来源:origin: org.teiid/teiid-engine
private TupleBuffer createTupleBuffer() throws TeiidComponentException {
TupleBuffer tb = bufferManager.createTupleBuffer(this.schema, this.groupName, TupleSourceType.PROCESSOR);
if (LogManager.isMessageToBeRecorded(LogConstants.CTX_DQP, MessageLevel.DETAIL)) {
LogManager.logDetail(LogConstants.CTX_DQP, "Created intermediate sort buffer", tb); //$NON-NLS-1$
}
tb.setForwardOnly(true);
return tb;
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
void close() {
try {
if (stream != null) {
stream.close();
}
} catch (IOException e) {
LogManager.logDetail(org.teiid.logging.LogConstants.CTX_DQP, e, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30027));
}
parent.removeLobStream(streamRequestId);
}
代码示例来源:origin: org.teiid/teiid-engine
public static BlockedException blockWithTrace(Object... msg) {
if (LogManager.isMessageToBeRecorded(LogConstants.CTX_BUFFER_MGR, MessageLevel.DETAIL)) {
BlockedException be = new BlockedException();
if (be.getStackTrace().length > 0) {
be.setStackTrace(Arrays.copyOfRange(be.getStackTrace(), 1, Math.max(0, Math.min(8, be.getStackTrace().length))));
}
LogManager.logDetail(LogConstants.CTX_BUFFER_MGR, be, msg);
}
return INSTANCE;
}
代码示例来源:origin: org.teiid/teiid-engine
void close() {
try {
if (stream != null) {
stream.close();
}
} catch (IOException e) {
LogManager.logDetail(org.teiid.logging.LogConstants.CTX_DQP, e, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30027));
}
parent.removeLobStream(streamRequestId);
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
int getAndSetNextClearBit(PhysicalInfo info) {
int result = blocksInUse.getAndSetNextClearBit();
if (result == -1) {
throw new TeiidRuntimeException(QueryPlugin.Event.TEIID30059, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30059, blockSize));
}
if (LogManager.isMessageToBeRecorded(LogConstants.CTX_BUFFER_MGR, MessageLevel.DETAIL)) {
LogManager.logDetail(LogConstants.CTX_BUFFER_MGR, "Allocating storage data block", result, "of size", blockSize, "to", info); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}
return result;
}
代码示例来源:origin: org.teiid/teiid-engine
public void processRequest()
throws TeiidComponentException, TeiidProcessingException {
LogManager.logDetail(LogConstants.CTX_DQP, this.requestId, "executing", this.requestMsg.isPreparedStatement()?"prepared":"", this.requestMsg.getCommandString()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
initMetadata();
generatePlan(false);
createProcessor();
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
public void processRequest()
throws TeiidComponentException, TeiidProcessingException {
LogManager.logDetail(LogConstants.CTX_DQP, this.requestId, "executing", this.requestMsg.isPreparedStatement()?"prepared":"", this.requestMsg.getCommandString()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
initMetadata();
generatePlan(false);
postProcessXML();
createProcessor();
}
代码示例来源:origin: org.teiid/teiid-engine
protected SpanContext extractSpanContext(String spanContextJson) {
try {
JSONParser parser = new JSONParser();
SimpleContentHandler sch = new SimpleContentHandler();
parser.parse(spanContextJson, sch);
Map<String, String> result = (Map<String, String>) sch.getResult();
return getTracer().extract(Builtin.TEXT_MAP, new TextMapExtractAdapter(result));
} catch (IllegalArgumentException | ClassCastException | ParseException e) {
LogManager.logDetail(LogConstants.CTX_DQP, e, "Could not extract the span context"); //$NON-NLS-1$
return null;
}
}
内容来源于网络,如有侵权,请联系作者删除!