- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.objectweb.howl.log.xa.XALogger
类的一些代码示例,展示了XALogger
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XALogger
类的具体详情如下:
包路径:org.objectweb.howl.log.xa.XALogger
类名称:XALogger
[英]A specialized subclass of org.objectweb.howl.log.Loggerintended to provide functionality required by any XA Transaction Manager.
This class provides wrappers for all public methods of Logger to allow enforcement of policies that are in place for an XA TM log.
This class implements org.objectweb.howl.log.LogEventListener. During logOverflowNotification processing, entries in the activeTx[] are re-logged and the active mark is moved.
If the application has called setLogEventListener, then Log events are forwarded to the application after they are processed by this class.
[中]org的一个特殊的子类。objectweb。怒号日志Logger旨在提供任何XA事务管理器所需的功能。
此类为记录器的所有公共方法提供包装器,以允许执行针对XA TM日志的策略。
这个类实现了org。objectweb。怒号日志LogEventListener。在logOverflowNotification处理过程中,会重新记录activeTx[]中的条目,并移动活动标记。
如果应用程序调用了setLogEventListener,那么日志事件将在此类处理后转发给应用程序。
代码示例来源:origin: org.apache.geronimo.components/geronimo-transaction
public void doStop() throws Exception {
started = false;
logger.close();
recovered = null;
}
代码示例来源:origin: apache/felix
public void doStart() throws Exception {
started = true;
setLogFileDir(logFileDir);
log.debug("Initiating transaction manager recovery");
recovered = new HashMap();
logger.open(null);
ReplayListener replayListener = new GeronimoReplayListener(xidFactory, recovered);
logger.replayActiveTx(replayListener);
log.debug("In doubt transactions recovered from log");
}
代码示例来源:origin: org.kuali.jotm/jotm-core
/**
* write the Commit record to the Howl Log
* @param xaCmRec the Commit Record
* @return the XACommittingTx returned by putCommit
* @throws LogException could not log the record
* @throws IOException
* @throws InterruptedException
*/
public XACommittingTx howlCommitLog(byte [][] xaCmRec) throws LogException, IOException, InterruptedException {
if (TraceTm.recovery.isDebugEnabled()) {
TraceTm.recovery.debug("Commit howl log");
}
return xaLog.putCommit(xaCmRec);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.howl
/**
* add a USER record consisting of byte[] to the log.
* <p>waits for overflow notification processing to complete
* prior to putting the data to the log.
*
* @throws LogClosedException
* If the TM has called open() but has not called replay().
* Also thrown if log is actually closed.
* Check the toString() for details.
*
* @see org.objectweb.howl.log.Logger#put(byte[], boolean)
*/
public long put(byte[] data, boolean sync)
throws LogClosedException, LogRecordSizeException, LogFileOverflowException,
InterruptedException, IOException
{
checkPutEnabled();
// wait for overflow notification processor to finish.
onpWait();
return put(LogRecordType.USER, new byte[][]{data}, sync);
}
代码示例来源:origin: apache/felix
long overflowFence = 0L;
checkPutEnabled();
onpWait();
key = put(LogRecordType.XACOMMIT, record, true);
synchronized(this) { overflowFence = this.overflowFence; }
} while (key < overflowFence);
return activeTxAdd(key, record);
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.howl
/**
* Wrapp Logger#replay(ReplayListener) so we can
* intercept onRecord() notifications to process
* XACOMMIT and XACOMMITMOVED records.
*/
public void replay(ReplayListener listener)
throws LogConfigurationException
{
try {
this.replay(listener, getActiveMark());
} catch (InvalidLogKeyException e) {
// should not happen
assert false : "Unhandled InvalidLogKeyException" + e.toString();
}
}
代码示例来源:origin: org.ow2.jotm/jotm-core
xaLog = new XALogger(cfg);
} catch (LogConfigurationException e) {
TraceTm.jotm.error("XALogger: LogConfigurationException" + e.getMessage());
xaLog.open(null);
} catch (LogException e) {
TraceTm.jotm.error("xaLog.open: LogException" + e.getMessage());
xaLog.replayActiveTx (myxarl);
代码示例来源:origin: org.ow2.jotm/jotm-core
/**
* write the Done record to the Howl Log
* @param xaDnRec the Done Record
* @param xaCmTx the XACommittingTx
* @throws LogException could not log the record
* @throws IOException
* @throws InterruptedException
*/
public void howlDoneLog(byte [][] xaDnRec, XACommittingTx xaCmTx) throws LogException, IOException, InterruptedException {
if (TraceTm.recovery.isDebugEnabled()) {
TraceTm.recovery.debug("Done howl log");
}
xaLog.putDone(xaDnRec, xaCmTx);
}
代码示例来源:origin: org.apache.geronimo.components/geronimo-transaction
public Collection<Recovery.XidBranchesPair> recover(XidFactory xidFactory) throws LogException {
log.debug("Initiating transaction manager recovery");
Map<Xid, Recovery.XidBranchesPair> recovered = new HashMap<Xid, Recovery.XidBranchesPair>();
ReplayListener replayListener = new GeronimoReplayListener(xidFactory, recovered);
logger.replayActiveTx(replayListener);
log.debug("In doubt transactions recovered from log");
return recovered.values();
}
代码示例来源:origin: apache/felix
setThreadsWaitingForceThreshold(threadsWaitingForceThreshold);
this.xidFactory = xidFactory;
this.logger = new XALogger(configuration);
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.howl
InterruptedException, IOException
checkPutEnabled();
doneKey = put(LogRecordType.USER, record, false);
} catch (LogFileOverflowException e) {
Thread.sleep(10);
do {
try {
xadoneKey = put(LogRecordType.XADONE, tx.logKeyData, false);
} catch (LogFileOverflowException e) {
Thread.sleep(10);
代码示例来源:origin: org.apache.geronimo/com.springsource.org.apache.geronimo.transaction
public String getXMLStats() {
return logger.getStats();
}
代码示例来源:origin: apache/felix
super.replay(xaListener, getActiveMark(), true); // replay CTRL records also
} catch (InvalidLogKeyException e) {
throw new LogClosedException(e);
代码示例来源:origin: org.kuali.jotm/jotm-core
xaLog = new XALogger(cfg);
} catch (LogConfigurationException e) {
TraceTm.jotm.error("XALogger: LogConfigurationException" + e.getMessage());
xaLog.open(null);
} catch (LogException e) {
TraceTm.jotm.error("xaLog.open: LogException" + e.getMessage());
xaLog.replayActiveTx (myxarl);
代码示例来源:origin: apache/felix
/**
* add a USER record consisting of byte[] to the log.
* <p>waits for overflow notification processing to complete
* prior to putting the data to the log.
*
* @throws LogClosedException
* If the TM has called open() but has not called replay().
* Also thrown if log is actually closed.
* Check the toString() for details.
*
* @see org.objectweb.howl.log.Logger#put(byte[], boolean)
*/
public long put(byte[] data, boolean sync)
throws LogClosedException, LogRecordSizeException, LogFileOverflowException,
InterruptedException, IOException
{
checkPutEnabled();
// wait for overflow notification processor to finish.
onpWait();
return put(LogRecordType.USER, new byte[][]{data}, sync);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.howl
long overflowFence = 0L;
checkPutEnabled();
onpWait();
key = put(LogRecordType.XACOMMIT, record, true);
synchronized(this) { overflowFence = this.overflowFence; }
} while (key < overflowFence);
return activeTxAdd(key, record);
代码示例来源:origin: org.kuali.jotm/jotm-core
/**
* write the Done record to the Howl Log
* @param xaDnRec the Done Record
* @param xaCmTx the XACommittingTx
* @throws LogException could not log the record
* @throws IOException
* @throws InterruptedException
*/
public void howlDoneLog(byte [][] xaDnRec, XACommittingTx xaCmTx) throws LogException, IOException, InterruptedException {
if (TraceTm.recovery.isDebugEnabled()) {
TraceTm.recovery.debug("Done howl log");
}
xaLog.putDone(xaDnRec, xaCmTx);
}
代码示例来源:origin: org.apache.geronimo/com.springsource.org.apache.geronimo.transaction
public Collection recover(XidFactory xidFactory) throws LogException {
log.debug("Initiating transaction manager recovery");
Map recovered = new HashMap();
ReplayListener replayListener = new GeronimoReplayListener(xidFactory, recovered);
logger.replayActiveTx(replayListener);
log.debug("In doubt transactions recovered from log");
return recovered.values();
}
代码示例来源:origin: org.apache.servicemix.transaction/org.apache.servicemix.transaction
setThreadsWaitingForceThreshold(threadsWaitingForceThreshold);
this.xidFactory = xidFactory;
this.logger = new XALogger(configuration);
代码示例来源:origin: org.apache.servicemix.transaction/org.apache.servicemix.transaction
/**
* Wrapp Logger#replay(ReplayListener) so we can
* intercept onRecord() notifications to process
* XACOMMIT and XACOMMITMOVED records.
*/
public void replay(ReplayListener listener)
throws LogConfigurationException
{
try {
this.replay(listener, getActiveMark());
} catch (InvalidLogKeyException e) {
// should not happen
assert false : "Unhandled InvalidLogKeyException" + e.toString();
}
}
不同的 LogCat 方法是: Log.v(); // Verbose Log.d(); // Debug Log.i(); // Info Log.w(); // Warning Log.e();
在android群里,经常会有人问我,android log是怎么用的,今天我就把从网上以及sdk里东拼西凑过来,让大家先一睹为快,希望对大家入门android log有一定的帮助. android
关闭。这个问题是opinion-based 。目前不接受答案。 想要改进这个问题吗?更新问题,以便 editing this post 可以用事实和引文来回答它。 . 已关闭 4 年前。 社区 12
我正在尝试使用 sonarlint 检查代码质量.上面的问题概要,我不明白为什么它要说要大写。但是 this discussion与上述建议相反。哪一个应该被认为是正确的? 最佳答案 这没有正确答案,
随着 n 变大,log*(log n) 和 log(log* n) 这两个函数会更快吗? 这里,log* 函数是迭代对数,定义如下: 我怀疑它们是相同的,只是写法不同,但它们之间有什么区别吗? 最佳答
作为家庭作业,我被要求在 O(log(n)) 中编写一个算法,我可以计算出我编写的算法的复杂度为 O(log(n) + log(n/2) + log(n/4) + log(n/8) + ... + l
我正在使用 Tomee。日志文件夹包含这样的文件 localhost_access_log.2016-12-02.txt localhost.2016-12-02.log catalina.2016-
Android Log.v、Log.d、Log.i、Log.e 等的 ios 等效项是什么?同样在 android 上,我使用 Android 设备监视器和 logcat 来访问我的手机日志,我需要在
我认为下面的代码是 O(log log n) 因为它里面有 i*i 但我对 log n 感到困惑> 和 log (log n)。 for (i=2; i*i<=number; i++) { if
我正在修改 kvm 模块,并在内核代码中添加了 printk 语句。运行虚拟机后,printk 为我提供了错误地址和有关 guest 操作系统的其他信息。 我需要从这个信息中生成统计信息。当我使用 d
我有一个部署为 Windows Azure Web 角色的 WCF 服务。 我正在使用 Enterprise Library 进行异常处理,并且在我的本地 Development Fabric 中,似
关闭。这个问题是opinion-based 。目前不接受答案。 想要改进这个问题吗?更新问题,以便 editing this post 可以用事实和引文来回答它。 . 已关闭 9 年前。 Improv
在 Go 的生产中使用 log.SetFlags(log.LstdFlags | log.Lshortfile) 是好的做法(至少是一般做法)吗?我想知道在生产中这样做是否存在性能或安全问题。因为它不
我想知道什么更快: double value = Math.log(a) - Math.log(b); 或 double value = Math.log(a/b); 我计算值的方式是否会对性能产生影
我有数百个子例程使用 log.Println() 写入日志文件 我正在使用 log.Println 写入 error.log 文件。 func main() { e, err := os.Open
我将 Nuxt 与 SSR 一起使用,并希望有类似于 apaches 的 access.log 和 error.log 的东西 我特别感兴趣的是每次调用的响应时间。 我在 nuxt 文档中找不到任何内
我知道以前有人问过这个问题,但我相信这是一个不同的问题。 Nginx 在 www-data 下运行: $ ps -eo "%U %G %a" | grep nginx root root
我在我的日志文件中发现了一个非常奇怪的条目 Jan 29 01:35:30 vs-proj-handy sshd[5316]: Received disconnect from 130.207.203
对于我正在开发的应用程序,我希望在开发过程中和发布时简化故障排除。我希望能够检索到对 Log 的调用,以了解在 USB 调试中没有连接手机的情况下运行应用程序时的调用,以便可以检索并发送给我。例如,当
我试图捕获 panic 并记录错误: func (s *server) SayHello(ctx context.Context, in *pb.HelloRequest) (*pb.HelloRep
我是一名优秀的程序员,十分优秀!