use of com.arjuna.ats.arjuna.exceptions.ObjectStoreException in project narayana by jbosstm.
the class ExceptionsUnitTest method test.
@Test
public void test() {
FatalError fe = new FatalError();
fe = new FatalError("problem");
fe = new FatalError("problem", new NullPointerException());
fe = new FatalError(new NullPointerException());
ObjectStoreError os = new ObjectStoreError();
os = new ObjectStoreError("problem");
os = new ObjectStoreError("problem", new NullPointerException());
os = new ObjectStoreError(new NullPointerException());
ObjectStoreException ox = new ObjectStoreException();
ox = new ObjectStoreException("problem");
ox = new ObjectStoreException("problem", new NullPointerException());
ox = new ObjectStoreException(new NullPointerException());
}
use of com.arjuna.ats.arjuna.exceptions.ObjectStoreException in project narayana by jbosstm.
the class TransactionImple method createXid.
@Override
protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException {
Xid xid = baseXid();
// We can have subordinate XIDs that can be editted
if (xid.getFormatId() != XATxConverter.FORMAT_ID)
return xid;
Integer eisName = null;
if (branch) {
if (_xaResourceRecordWrappingPlugin != null) {
eisName = _xaResourceRecordWrappingPlugin.getEISName(xaResource);
}
}
xid = new XidImple(xid, branch, eisName);
if (theModifier != null) {
try {
xid = theModifier.createXid((XidImple) xid);
} catch (Exception e) {
e.printStackTrace();
}
}
return xid;
}
use of com.arjuna.ats.arjuna.exceptions.ObjectStoreException in project narayana by jbosstm.
the class SubordinateBACoordinatorRecoveryModule method periodicWorkFirstPass.
/**
* This is called periodically by the RecoveryManager
*/
public void periodicWorkFirstPass() {
// Transaction type
boolean SubordinateCoordinators = false;
// uids per transaction type
InputObjectState acc_uids = new InputObjectState();
try {
if (RecoveryLogger.logger.isDebugEnabled()) {
RecoveryLogger.logger.debug("StatusModule: first pass ");
}
SubordinateCoordinators = _recoveryStore.allObjUids(_transactionType, acc_uids);
} catch (ObjectStoreException ex) {
RecoveryLogger.i18NLogger.warn_coordinator_ba_SubordinateCoordinatorRecoveryModule_1(ex);
}
if (SubordinateCoordinators) {
_transactionUidVector = processTransactions(acc_uids);
}
}
use of com.arjuna.ats.arjuna.exceptions.ObjectStoreException in project narayana by jbosstm.
the class ATParticipantRecoveryModule method periodicWorkFirstPass.
/**
* This is called periodically by the RecoveryManager
*/
public void periodicWorkFirstPass() {
// Transaction type
boolean ATParticipants = false;
// uids per transaction type
InputObjectState acc_uids = new InputObjectState();
try {
if (RecoveryLogger.logger.isDebugEnabled()) {
RecoveryLogger.logger.debug("ATParticipantRecoveryModule: first pass");
}
ATParticipants = _recoveryStore.allObjUids(_participantType, acc_uids);
} catch (ObjectStoreException ex) {
RecoveryLogger.i18NLogger.warn_participant_at_ATParticipantRecoveryModule_1(ex);
}
if (ATParticipants) {
_participantUidVector = processParticipants(acc_uids);
}
}
use of com.arjuna.ats.arjuna.exceptions.ObjectStoreException in project narayana by jbosstm.
the class XTSBARecoveryManagerImple method deleteParticipantRecoveryRecord.
/**
* remove any participant recovery record with the supplied id from persistent storage
* @param id the id of the participant whose recovery details are being deleted
*/
public boolean deleteParticipantRecoveryRecord(String id) {
Uid uid = uidMap.get(id);
if (uid != null) {
try {
txLog.remove_committed(uid, type);
uidMap.remove(id);
return true;
} catch (ObjectStoreException ose) {
RecoveryLogger.i18NLogger.warn_participant_ba_XTSBARecoveryModule_2(uid, id, ose);
}
}
return false;
}
Aggregations