/* 428 */ if (theUid.notEquals(Uid.nullUid()))
/* */ {
/* 435 */ if (this._objStore.currentState(theUid, this._recoveryManagerClass.type()) != 0)
/* */ {
/* 438 */ boolean problem = false;
/* 439 */ XARecoveryResource record = null;
/* */ try
/* */ {
/* 443 */ record = this._recoveryManagerClass.getResource(theUid);
/* */
/* 445 */ problem = true;
/* */
/* 447 */ switch (record.recoverable())
/* */ {
/* */ case 12:
/* 451 */ if (jtaLogger.logger.isDebugEnabled())
/* */ {
/* 453 */ jtaLogger.logger.debug(16L, 4L, 2048L, "XARecovery attempting recovery of " + theUid);
/* */ }
/* */
/* 461 */ int recoveryStatus = record.recover();
/* */
/* 463 */ if (recoveryStatus != 1)
/* */ {
/* 465 */ if (recoveryStatus == 3)
/* */ {
/* 467 */ problem = false;
/* */
/* 469 */ if (jtaLogger.loggerI18N.isInfoEnabled())
/* */ {
/* 472 */ jtaLogger.loggerI18N.info("com.arjuna.ats.internal.jta.recovery.recoverydelayed", new Object[] { theUid, new Integer(recoveryStatus) });
/* */ }
/* */
/* */ }
/* 484 */ else if (jtaLogger.loggerI18N.isWarnEnabled())
/* */ {
/* 487 */ jtaLogger.loggerI18N.warn("com.arjuna.ats.internal.jta.recovery.recoveryfailed", new Object[] { theUid, new Integer(recoveryStatus) });
/* */ }
/* */
/* */ }
/* */ else
/* */ {
/* 499 */ problem = false;
/* */ }
/* */
/* 503 */ break;
/* */ case 11:
/* 512 */ problem = false;
/* */
/* 514 */ break;
/* */ case 10:
/* */ default:
/* 518 */ if (!jtaLogger.logger.isDebugEnabled())
/* */ break;
/* 520 */ jtaLogger.logger.debug(16L, 4L, 2048L, "XARecovery " + theUid + " is non-recoverable");
/* */ }
/* */
/* */ }
/* */ catch (NullPointerException ex)
/* */ {
/* 533 */ problem = true;
/* */ }
/* */ catch (Throwable e)
/* */ {
/* 537 */ problem = true;
/* */
/* 539 */ if (jtaLogger.loggerI18N.isWarnEnabled())
/* */ {
/* 541 */ jtaLogger.loggerI18N.warn("com.arjuna.ats.internal.jta.recovery.recoveryerror", e);
/* */ }
/* */
/* */ }
/* */
/* 548 */ if ((problem) && (record != null))
/* */ {
/* 560 */ if (record.getXid() == null)
/* */ {
/* 562 */ if (jtaLogger.loggerI18N.isWarnEnabled())
/* */ {
/* 564 */ jtaLogger.loggerI18N.warn("com.arjuna.ats.internal.jta.recovery.cannotadd");
/* */ }
/* */
/* */ }
/* */ else
/* */ {
/* 570 */ addFailure(record.getXid(), record.get_uid());
/* */ }
/* */ }
/* */ }
/* */ }
/* */ }