com.taobao.metamorphosis.server.assembly
接口 TransactionalCommandProcessorMBean

所有已知实现类:
TransactionalCommandProcessor

public interface TransactionalCommandProcessorMBean

事务处理器MBean接口,提供一些查询和管理的API

作者:
boyan(boyan@taobao.com)

方法摘要
 void commitTransactionHeuristically(String txKey, boolean onePhase)
          人工提交事务
 void completeTransactionHeuristically(String txKey)
          人工完成事务,不提交也不回滚,简单删除
 int getPreparedTransactionCount()
          返回所有处于prepare状态的xa事务数目
 String[] getPreparedTransactions()
          返回所有处于prepare状态的xa事务
 void rollbackTransactionHeuristically(String txKey)
          人工回滚事务
 

方法详细信息

getPreparedTransactions

String[] getPreparedTransactions()
                                 throws Exception
返回所有处于prepare状态的xa事务

返回:
抛出:
Exception

getPreparedTransactionCount

int getPreparedTransactionCount()
                                throws Exception
返回所有处于prepare状态的xa事务数目

返回:
抛出:
Exception

commitTransactionHeuristically

void commitTransactionHeuristically(String txKey,
                                    boolean onePhase)
                                    throws Exception
人工提交事务

参数:
txKey -
抛出:
Exception

rollbackTransactionHeuristically

void rollbackTransactionHeuristically(String txKey)
                                      throws Exception
人工回滚事务

参数:
txKey -
抛出:
Exception

completeTransactionHeuristically

void completeTransactionHeuristically(String txKey)
                                      throws Exception
人工完成事务,不提交也不回滚,简单删除

参数:
txKey -
抛出:
Exception


Copyright © 2010–2013. All rights reserved.