本文整理汇总了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();
}
}
示例2: commit
import com.arjuna.wst.SystemException; //导入依赖的package包/类
@Override
public void commit() throws WrongStateException, SystemException {
log.info("\n================================================================================\n"
+ "AirportOrderParticipant "
+ _fltid
+ " commit"
+ "\n================================================================================");
}
示例3: rollback
import com.arjuna.wst.SystemException; //导入依赖的package包/类
@Override
public void rollback() throws WrongStateException, SystemException {
log.info("\n================================================================================\n"
+ "AirportOrderParticipant "
+ _fltid
+ " rollback"
+ "\n================================================================================");
}
示例4: cancel
import com.arjuna.wst.SystemException; //导入依赖的package包/类
@Override
public void cancel() throws FaultedException, WrongStateException,
SystemException {
log.info("\n================================================================================\n"
+ "AirportOrderParticipant "
+ _fltid
+ " cancel"
+ "\n================================================================================");
}
示例5: close
import com.arjuna.wst.SystemException; //导入依赖的package包/类
@Override
public void close() throws WrongStateException, SystemException {
log.info("\n================================================================================\n"
+ "AirportOrderParticipant "
+ _fltid
+ " close"
+ "\n================================================================================");
}
示例6: compensate
import com.arjuna.wst.SystemException; //导入依赖的package包/类
@Override
public void compensate() throws FaultedException, WrongStateException,
SystemException {
log.info("\n================================================================================\n"
+ "AirportOrderParticipant "
+ _fltid
+ " compensate"
+ "\n================================================================================");
}
示例7: complete
import com.arjuna.wst.SystemException; //导入依赖的package包/类
@Override
public void complete() throws WrongStateException, SystemException {
log.info("\n================================================================================\n"
+ "AirportOrderParticipant "
+ _fltid
+ " complete"
+ "\n================================================================================");
}
示例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);
}
示例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);
}
示例10: status
import com.arjuna.wst.SystemException; //导入依赖的package包/类
@Override
public String status() throws SystemException {
// TODO Auto-generated method stub
return null;
}
示例11: unknown
import com.arjuna.wst.SystemException; //导入依赖的package包/类
public void unknown() throws SystemException {
}
示例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);
}
示例13: unknown
import com.arjuna.wst.SystemException; //导入依赖的package包/类
public void unknown() throws SystemException {
removeParticipant(txID);
}
示例14: error
import com.arjuna.wst.SystemException; //导入依赖的package包/类
public void error() throws SystemException {
System.out.println("[SERVICE] Participant.error");
doCompensate();
removeParticipant(txID);
}
示例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)");
}