当前位置: 首页>>代码示例>>Java>>正文


Java SystemException类代码示例

本文整理汇总了Java中com.arjuna.wst.SystemException的典型用法代码示例。如果您正苦于以下问题:Java SystemException类的具体用法?Java SystemException怎么用?Java SystemException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


SystemException类属于com.arjuna.wst包,在下文中一共展示了SystemException类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: prepare

import com.arjuna.wst.SystemException; //导入依赖的package包/类
@Override
public Vote prepare() throws WrongStateException, SystemException {
    boolean state = AirportManager.checkFLTID(_fltid);
    if (state) {
        log.info("\n================================================================================\n"
            + "AirportOrderParticipant "
            + _fltid
            + " prepare: prepared"
            + "\n================================================================================");
        return new Prepared();
    } else { // there is no flight right now
        log.info("\n================================================================================\n"
            + "AirportOrderParticipant "
            + _fltid
            + " prepare: aborted"
            + "\n================================================================================");
        return new Aborted();
    }
}
 
开发者ID:jboss-switchyard,项目名称:switchyard,代码行数:20,代码来源:OrderParticipant.java

示例2: commit

import com.arjuna.wst.SystemException; //导入依赖的package包/类
@Override
public void commit() throws WrongStateException, SystemException {
    log.info("\n================================================================================\n"
        + "AirportOrderParticipant "
        + _fltid
        + " commit"
        + "\n================================================================================");
}
 
开发者ID:jboss-switchyard,项目名称:switchyard,代码行数:9,代码来源:OrderParticipant.java

示例3: rollback

import com.arjuna.wst.SystemException; //导入依赖的package包/类
@Override
public void rollback() throws WrongStateException, SystemException {
    log.info("\n================================================================================\n"
        + "AirportOrderParticipant "
        + _fltid
        + " rollback"
        + "\n================================================================================");
}
 
开发者ID:jboss-switchyard,项目名称:switchyard,代码行数:9,代码来源:OrderParticipant.java

示例4: cancel

import com.arjuna.wst.SystemException; //导入依赖的package包/类
@Override
public void cancel() throws FaultedException, WrongStateException,
    SystemException {
    log.info("\n================================================================================\n"
        + "AirportOrderParticipant "
        + _fltid
        + " cancel"
        + "\n================================================================================");
}
 
开发者ID:jboss-switchyard,项目名称:switchyard,代码行数:10,代码来源:OrderParticipant.java

示例5: close

import com.arjuna.wst.SystemException; //导入依赖的package包/类
@Override
public void close() throws WrongStateException, SystemException {
    log.info("\n================================================================================\n"
        + "AirportOrderParticipant "
        + _fltid
        + " close"
        + "\n================================================================================");
}
 
开发者ID:jboss-switchyard,项目名称:switchyard,代码行数:9,代码来源:OrderParticipant.java

示例6: compensate

import com.arjuna.wst.SystemException; //导入依赖的package包/类
@Override
public void compensate() throws FaultedException, WrongStateException,
    SystemException {
    log.info("\n================================================================================\n"
        + "AirportOrderParticipant "
        + _fltid
        + " compensate"
        + "\n================================================================================");
}
 
开发者ID:jboss-switchyard,项目名称:switchyard,代码行数:10,代码来源:OrderParticipant.java

示例7: complete

import com.arjuna.wst.SystemException; //导入依赖的package包/类
@Override
public void complete() throws WrongStateException, SystemException {
    log.info("\n================================================================================\n"
        + "AirportOrderParticipant "
        + _fltid
        + " complete"
        + "\n================================================================================");
}
 
开发者ID:jboss-switchyard,项目名称:switchyard,代码行数:9,代码来源:OrderParticipant.java

示例8: cancel

import com.arjuna.wst.SystemException; //导入依赖的package包/类
/**
 * The transaction has canceled, and the participant should undo any work. The participant cannot have informed the
 * coordinator that it has completed.
 * 
 * @throws WrongStateException never in this implementation.
 * @throws SystemException never in this implementation.
 */

public void cancel() throws WrongStateException, SystemException {
    System.out.println("[SERVICE] Participant.cancel (The participant should compensate any work done within this BA)");

    // Compensate work
    MockSetManager.rollback(value);
}
 
开发者ID:red-fox-mulder,项目名称:eap-6.1-quickstarts,代码行数:15,代码来源:SetParticipantBA.java

示例9: compensate

import com.arjuna.wst.SystemException; //导入依赖的package包/类
/**
 * The transaction has cancelled. The participant previously informed the coordinator that it had finished work but could
 * compensate later if required, and it is now requested to do so.
 * 
 * @throws WrongStateException never in this implementation.
 * @throws SystemException if unable to perform the compensating transaction.
 */

public void compensate() throws FaultedException, WrongStateException, SystemException {
    System.out.println("[SERVICE] Participant.compensate");

    // Compensate work done by the service
    MockSetManager.rollback(value);
}
 
开发者ID:red-fox-mulder,项目名称:eap-6.1-quickstarts,代码行数:15,代码来源:SetParticipantBA.java

示例10: status

import com.arjuna.wst.SystemException; //导入依赖的package包/类
@Override
public String status() throws SystemException {
    // TODO Auto-generated method stub
    return null;
}
 
开发者ID:jboss-switchyard,项目名称:switchyard,代码行数:6,代码来源:OrderParticipant.java

示例11: unknown

import com.arjuna.wst.SystemException; //导入依赖的package包/类
public void unknown() throws SystemException {
}
 
开发者ID:red-fox-mulder,项目名称:eap-6.1-quickstarts,代码行数:3,代码来源:SetParticipantBA.java

示例12: error

import com.arjuna.wst.SystemException; //导入依赖的package包/类
public void error() throws SystemException {
    System.out.println("[SERVICE] Participant.error");

    // Compensate work done by the service
    MockSetManager.rollback(value);
}
 
开发者ID:red-fox-mulder,项目名称:eap-6.1-quickstarts,代码行数:7,代码来源:SetParticipantBA.java

示例13: unknown

import com.arjuna.wst.SystemException; //导入依赖的package包/类
public void unknown() throws SystemException {
    removeParticipant(txID);
}
 
开发者ID:red-fox-mulder,项目名称:eap-6.1-quickstarts,代码行数:4,代码来源:SetParticipantBA.java

示例14: error

import com.arjuna.wst.SystemException; //导入依赖的package包/类
public void error() throws SystemException {
    System.out.println("[SERVICE] Participant.error");
    doCompensate();
    removeParticipant(txID);
}
 
开发者ID:red-fox-mulder,项目名称:eap-6.1-quickstarts,代码行数:6,代码来源:SetParticipantBA.java

示例15: complete

import com.arjuna.wst.SystemException; //导入依赖的package包/类
@Override
public void complete() throws WrongStateException, SystemException {
    System.out
            .println("[SERVICE] Participant.complete (This tells the participant that the BA completed, but may be compensated later)");
}
 
开发者ID:red-fox-mulder,项目名称:eap-6.1-quickstarts,代码行数:6,代码来源:SetParticipantBA.java


注:本文中的com.arjuna.wst.SystemException类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。