com.taobao.metamorphosis.tools.utils
类 TransactionUtil

java.lang.Object
  继承者 com.taobao.metamorphosis.tools.utils.TransactionUtil

public class TransactionUtil
extends Object

从以下版本开始:
2011-9-30 上午11:20:08
作者:
无花

构造方法摘要
TransactionUtil()
           
 
方法摘要
static void commitTransaction(String txKey, boolean onePhase, String ip, int port)
          提交事务
static int getPreparedTransactionCount(String ip, int port)
          返回所有处于prepare状态的xa事务数目
static String[] getPreparedTransactions(String ip, int port)
          返回所有处于prepare状态的xa事务
static void rollbackTransaction(String txKey, String ip, int port)
          回滚事务
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

TransactionUtil

public TransactionUtil()
方法详细信息

getPreparedTransactions

public static String[] getPreparedTransactions(String ip,
                                               int port)
                                        throws Exception
返回所有处于prepare状态的xa事务

返回:
抛出:
Exception

getPreparedTransactionCount

public static int getPreparedTransactionCount(String ip,
                                              int port)
                                       throws Exception
返回所有处于prepare状态的xa事务数目

返回:
抛出:
Exception

commitTransaction

public static void commitTransaction(String txKey,
                                     boolean onePhase,
                                     String ip,
                                     int port)
                              throws Exception
提交事务

参数:
txKey -
抛出:
Exception

rollbackTransaction

public static void rollbackTransaction(String txKey,
                                       String ip,
                                       int port)
                                throws Exception
回滚事务

参数:
txKey -
抛出:
Exception


Copyright © 2010–2013. All rights reserved.