- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.jboss.jbossts.xts.recovery.participant.at.XTSATRecoveryManager
类的一些代码示例,展示了XTSATRecoveryManager
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XTSATRecoveryManager
类的具体详情如下:
包路径:org.jboss.jbossts.xts.recovery.participant.at.XTSATRecoveryManager
类名称:XTSATRecoveryManager
[英]Abstract class defining API for managing both paritcipant and coordinator recovery On hteparticipant this is responsible for saving WS-AT participant recovery records during prepare, deleting them at commit and recreating and reactivating them during recovery. On the coordinator side it currently merely records whether coordinator recovery has copleted its first scan
[中]抽象类定义API,用于管理hteparticipant上的对等参与者和协调者恢复。该API负责在准备期间保存WS-AT参与者恢复记录,在提交时删除记录,并在恢复期间重新创建和重新激活这些记录。在协调器端,它目前只记录协调器恢复是否完成了第一次扫描
代码示例来源:origin: org.jboss.jbossts.xts/recovery
/**
* called by the service startup code before the recovery module is added to the recovery managers
* module list
*/
public void install()
{
// the manager is needed by both the participant or the coordinator recovery modules so whichever
// one gets there first creates it. No synchronization is needed as modules are only ever
// installed in a single thread
XTSATRecoveryManager atRecoveryManager = XTSATRecoveryManager.getRecoveryManager();
if (atRecoveryManager == null) {
atRecoveryManager = new XTSATRecoveryManagerImple(_recoveryStore);
XTSATRecoveryManager.setRecoveryManager(atRecoveryManager);
}
// Subordinate Coordinators register durable participants with their parent transaction so
// we need to add an XTSATRecoveryModule which knows about the registered participants
subordinateRecoveryModule = new XTSATSubordinateRecoveryModule();
atRecoveryManager.registerRecoveryModule(subordinateRecoveryModule);
}
代码示例来源:origin: org.jboss.jbossts.xts/jbossxts
/**
* Tests if there may be unknown coordinator entries in the recovery log.
*
* @return false if there may be unknown coordinator entries in the recovery log.
*/
private static boolean areRecoveryLogEntriesAccountedFor()
{
return XTSATRecoveryManager.getRecoveryManager().isCoordinatorRecoveryStarted();
}
}
代码示例来源:origin: org.jboss.jbossts.xts/recovery
/**
* called by the service shutdown code after the recovery module is removed from the recovery managers
* module list
*/
public void uninstall()
{
XTSATRecoveryManager.getRecoveryManager().unregisterRecoveryModule(subordinateRecoveryModule);
}
代码示例来源:origin: org.jboss.jbossts.xts/jbossxts
XTSATRecoveryManager recoveryManager = XTSATRecoveryManager.getRecoveryManager();
else if (!recoveryManager.isParticipantRecoveryStarted()) {
WSTLogger.i18NLogger.warn_wst11_messaging_ParticipantProcessorImpl_rollback_4(instanceIdentifier.toString());
else if (recoveryManager.findParticipantRecoveryRecord(instanceIdentifier.getInstanceIdentifier()) != null) {
WSTLogger.i18NLogger.warn_wst11_messaging_ParticipantProcessorImpl_rollback_5(instanceIdentifier.toString());
代码示例来源:origin: org.jboss.jbossts.xts/jbossxts
} else {
XTSATRecoveryManager recoveryManager = XTSATRecoveryManager.getRecoveryManager();
boolean isRecoveryScanStarted = recoveryManager.isSubordinateCoordinatorRecoveryStarted();
代码示例来源:origin: org.jboss.jbossts.xts/jbossxts
if (!XTSATRecoveryManager.getRecoveryManager().deleteParticipantRecoveryRecord(id)) {
代码示例来源:origin: org.jboss.jbossts.xts/jbossxts
XTSATRecoveryManager recoveryManager = XTSATRecoveryManager.getRecoveryManager();
if (!recoveryManager.isParticipantPresent(recoverUid)) {
participantRecord.restoreState(inputState);
XTSATRecoveryManager.getRecoveryManager().addParticipantRecoveryRecord(recoverUid, participantRecord);
} catch (ClassNotFoundException cnfe) {
代码示例来源:origin: org.jboss.jbossts/jbossxts
if (!XTSATRecoveryManager.getRecoveryManager().writeParticipantRecoveryRecord(recoveryRecord)) {
if (!XTSATRecoveryManager.getRecoveryManager().deleteParticipantRecoveryRecord(id)) {
if (!XTSATRecoveryManager.getRecoveryManager().deleteParticipantRecoveryRecord(id)) {
代码示例来源:origin: org.jboss.jbossts/jbossxts
/**
* called by the service startup code before the recovery module is added to the recovery managers
* module list
*/
public void install()
{
// the manager is needed by both the participant or the coordinator recovery modules so whichever
// one gets there first creates it. No synchronization is needed as modules are only ever
// installed in a single thread
XTSATRecoveryManager atRecoveryManager = XTSATRecoveryManager.getRecoveryManager();
if (atRecoveryManager == null) {
atRecoveryManager = new XTSATRecoveryManagerImple(_recoveryStore);
XTSATRecoveryManager.setRecoveryManager(atRecoveryManager);
}
Implementations.install();
}
代码示例来源:origin: org.jboss.jbossts.xts/jbossxts
private void processTransactionsStatus()
{
// Process the Vector of transaction Uids
Enumeration transactionUidEnum = _transactionUidVector.elements() ;
while ( transactionUidEnum.hasMoreElements() )
{
Uid currentUid = (Uid) transactionUidEnum.nextElement();
try
{
if ( _recoveryStore.currentState( currentUid, _transactionType ) != StateStatus.OS_UNKNOWN )
{
doRecoverTransaction( currentUid ) ;
}
}
catch ( ObjectStoreException ex )
{
RecoveryLogger.i18NLogger.warn_coordinator_at_SubordinateATCoordinatorRecoveryModule_3(currentUid, ex);
}
}
XTSATRecoveryManager.getRecoveryManager().setSubordinateCoordinatorRecoveryStarted();
}
代码示例来源:origin: org.jboss.jbossts.xts/jbossxts
private void processTransactionsStatus()
{
// Process the Vector of transaction Uids
Enumeration transactionUidEnum = _transactionUidVector.elements() ;
while ( transactionUidEnum.hasMoreElements() )
{
Uid currentUid = (Uid) transactionUidEnum.nextElement();
try
{
if ( _recoveryStore.currentState( currentUid, _transactionType ) != StateStatus.OS_UNKNOWN )
{
doRecoverTransaction( currentUid ) ;
}
}
catch ( ObjectStoreException ex )
{
RecoveryLogger.i18NLogger.warn_coordinator_at_ATCoordinatorRecoveryModule_3(currentUid, ex);
}
}
XTSATRecoveryManager.getRecoveryManager().setCoordinatorRecoveryStarted();
}
代码示例来源:origin: org.jboss.jbossts/jbossxts
private void processParticipantsStatus()
{
if (_participantUidVector != null) {
// Process the Vector of transaction Uids
Enumeration participantUidEnum = _participantUidVector.elements() ;
while ( participantUidEnum.hasMoreElements() )
{
Uid currentUid = (Uid) participantUidEnum.nextElement();
try
{
if ( _recoveryStore.currentState( currentUid, _participantType) != StateStatus.OS_UNKNOWN )
{
doRecoverParticipant( currentUid ) ;
}
}
catch ( ObjectStoreException ex )
{
RecoveryLogger.i18NLogger.warn_participant_at_ATParticipantRecoveryModule_3(currentUid, ex);
}
}
}
// now get the AT recovery manager to try to activate recovered participants
XTSATRecoveryManager.getRecoveryManager().recoverParticipants();
}
代码示例来源:origin: org.jboss.jbossts/jbosstxbridge
/**
* MC lifecycle callback, used to unregister components from the recovery manager.
*/
public void stop()
{
txbridgeLogger.i18NLogger.info_ibrm_stop();
xtsATRecoveryManager.unregisterRecoveryModule(this);
acRecoveryManager.removeModule(this, false);
XARecoveryModule xaRecoveryModule = getXARecoveryModule();
xaRecoveryModule.removeXAResourceOrphanFilter(this);
}
代码示例来源:origin: org.jboss.jbossts/jbosstxbridge
/**
* MC lifecycle callback, used to register components with the recovery manager.
*/
public void start()
{
txbridgeLogger.i18NLogger.info_ibrm_start();
xtsATRecoveryManager.registerRecoveryModule(this);
acRecoveryManager.addModule(this);
XARecoveryModule xaRecoveryModule = getXARecoveryModule();
xaRecoveryModule.addXAResourceOrphanFilter(this);
}
代码示例来源:origin: org.jboss.jbossts/jbossxts
XTSATRecoveryManager recoveryManager = XTSATRecoveryManager.getRecoveryManager();
else if (!recoveryManager.isParticipantRecoveryStarted()) {
WSTLogger.i18NLogger.warn_wst11_messaging_ParticipantProcessorImpl_rollback_4(instanceIdentifier.toString());
else if (recoveryManager.findParticipantRecoveryRecord(instanceIdentifier.getInstanceIdentifier()) != null) {
WSTLogger.i18NLogger.warn_wst11_messaging_ParticipantProcessorImpl_rollback_5(instanceIdentifier.toString());
代码示例来源:origin: org.jboss.jbossts/jbossxts
} else {
XTSATRecoveryManager recoveryManager = XTSATRecoveryManager.getRecoveryManager();
boolean isRecoveryScanStarted = recoveryManager.isSubordinateCoordinatorRecoveryStarted();
代码示例来源:origin: org.jboss.jbossts.xts/ws-t11
if (!XTSATRecoveryManager.getRecoveryManager().deleteParticipantRecoveryRecord(id)) {
代码示例来源:origin: org.jboss.jbossts/jbossxts
XTSATRecoveryManager recoveryManager = XTSATRecoveryManager.getRecoveryManager();
if (!recoveryManager.isParticipantPresent(recoverUid)) {
participantRecord.restoreState(inputState);
XTSATRecoveryManager.getRecoveryManager().addParticipantRecoveryRecord(recoverUid, participantRecord);
} catch (ClassNotFoundException cnfe) {
代码示例来源:origin: org.jboss.jbossts.xts/jbossxts
if (!XTSATRecoveryManager.getRecoveryManager().writeParticipantRecoveryRecord(recoveryRecord)) {
if (!XTSATRecoveryManager.getRecoveryManager().deleteParticipantRecoveryRecord(id)) {
if (!XTSATRecoveryManager.getRecoveryManager().deleteParticipantRecoveryRecord(id)) {
代码示例来源:origin: org.jboss.jbossts.xts/jbossxts
/**
* called by the service startup code before the recovery module is added to the recovery managers
* module list
*/
public void install()
{
// the manager is needed by both the participant or the coordinator recovery modules so whichever
// one gets there first creates it. No synchronization is needed as modules are only ever
// installed in a single thread
XTSATRecoveryManager atRecoveryManager = XTSATRecoveryManager.getRecoveryManager();
if (atRecoveryManager == null) {
atRecoveryManager = new XTSATRecoveryManagerImple(_recoveryStore);
XTSATRecoveryManager.setRecoveryManager(atRecoveryManager);
}
Implementations.install();
}
我如何使用 apply 系列函数,比如 apply.daily到多元 XTS? 例如: 时间,a,b ... 2012-02-11 16:21:24 4.7258 7.7258 2012-02-11
我有一个 xts 对象列表,这些对象具有共同的索引和列名。 我想按索引进行 rbind 并对列进行平均: dts = seq.POSIXt(from = Sys.time() - days(2), t
我正在使用 xts 时间序列在 R 中工作。 我有什么: 具有不等间隔时间步长的时间序列数据集。 我想得到什么: 具有等距时间步长的时间序列,其值对应于与时间步长重叠的原始值的比例(请参见下面的示例)
this = structure(c(-0.012, -0.028, -0.044, -0.033, -0.039, -0.042), .Dim = c(3L, 2L), .Dimnames
在 xts 对象中是否有一种方法可以执行与下面相同的操作,但对于具有多天盘中数据的 xts 对象?下面的工作就像一个时钟,但一天的数据。如果我从 22 日到 26 日通过 xts,它不会。似乎不可能一
library(xts) set.seed(1) x = xts( cbind(a=1:10,b=20:11) , Sys.Date()+1:10 ) y = xts( runif(10) , Sys
con = gzcon(url('http://www.systematicportfolio.com/sit.gz', 'rb')) source(con) close(con) load.pack
我有一个 list 。列表由 5 个 xts 对象组成。每个对象由 5 个 xts 系列组成。每个系列包含 183 个观察值。我想从所有这些系列中提取一个公共(public)系列。我要减去的系列名为
在将 rowSums 传递给 xts 对象时,是否可以保留 xts 对象的索引? 目前,我将结果重新转换为 xts 对象,但是如果 rowSums 能够简单地返回它的内容,这似乎并没有那么快已通过。
首先让我说一下,我看了一下 ?xts,意识到这是一个与时区相关的问题,似乎已经解决了,但我不明白为什么 它正在发生。所以:我有一个简单的价格数据数据框。当我将它转换为 xts 对象时,xts 对象的第
当我尝试执行以下工作时发生错误: # generate random integrals # data <- xts(floor(runif(100, 1,101)),as.Date("1973-02
这是输出: library(tseries) # for adf.test function adf.test(data) Augmented Dickey-Fuller Test data: da
如何删除 xts 图右上角的日期范围?例如,在下面 xts 图的右上角,我想删除文本“2007-01-02/2007-06-30”。 library(xts) data(sample_matrix)
我有一个不规则的时间序列并且正在使用 xts的 endpoints 获取我的时间序列的每小时索引。 endpoints(data, on="hours") 我正在使用它以这种方式计算每小时 perio
申请 split函数到 xts对象来自 weeks将行分组为每周块。组中的默认天数是 Monday至 Sunday .想要群里的天数来自Sunday怎么办?至 Saturday ? library(x
我在删除 xts 对象中的重复行时遇到问题。我有一个 R 脚本,它将下载货币的刻度财务数据并将其转换为 OHLC 格式的 xts 对象。该脚本还会每 15 分钟提取一次新数据。新数据从今天的第一笔交易
我真的很难在这里找到解决方案。如果您查看最后一行代码,您会明白我想在下次开盘时买入并在 5 天后卖出 (x = 5)。 问题是 xts 索引正在计算周末。因此,例如,您会在 7 月 12 日星期五获得
我有 3 个 xts 对象,它们的标记都是“日期”对象: > a a 1995-01-03 1.76 1995-01-04 1.69
我正在尝试按天比较不同的时间序列。 目前典型的 XTS 对象如下所示: > vwap.crs QUANTITY QUANTITY.1 2014-03-03 13
我在列表中有一些数据,如下所示: > y $ABMD.Rank ABMD.Rank $ATVI.Rank ATVI.Rank $ADBE.Rank ADBE.Rank $
我是一名优秀的程序员,十分优秀!