public final synchronized ServerControl deepestControl () { ServerRestrictedNestedAction myChild = child(); if (myChild != null) return myChild.deepestControl(); else return control(); }
public final synchronized ServerControl deepestControl () { ServerRestrictedNestedAction myChild = child(); if (myChild != null) return myChild.deepestControl(); else return control(); }
ServerControl control = tlAction.control(); // top-level's control int depth = context.parents.length; int differenceIndex = -1; // index of the new transactions in the hierarchy ServerRestrictedNestedAction nestedAction = tlAction.child(); // top-level's nested action tlAction.abortChild(nestedAction); // automatically removed from resource list nestedAction = null; control = tlAction.deepestControl(); if (nestedAction.get_uid().equals(Utility.otidToUid(context.parents[i].otid))) nestedAction = nestedAction.child(); control = tlAction.deepestControl(); tlAction.abortChild(nestedAction); nestedAction = null; control = tlAction.deepestControl(); nestedAction = new ServerRestrictedNestedAction(control); if (!nestedAction.valid()) nestedAction.rollback(); // does dispose as well! nestedAction = null; tlAction.addChild(nestedAction); nestedAction = nestedAction.child();
tmpCoord, tmpTerm, ctx.timeout); tlAction = new ServerRestrictedTopLevelAction(control); tmpCoord, tmpTerm, control); nestedAction = new ServerRestrictedNestedAction(control); if (!nestedAction.valid()) nestedAction.rollback(); nestedAction = null; nestedAction = new ServerRestrictedNestedAction(control); if (!nestedAction.valid()) nestedAction.rollback(); nestedAction = null;
public final synchronized ServerRestrictedNestedAction child () { ServerRestrictedNestedAction toReturn = null; List<ServerNestedAction> children = getChildren(); // There should be only one child! if (children.size() > 1) { jtsLogger.i18NLogger.warn_orbspecific_interposition_resources_restricted_contxfound_3( "ServerRestrictedTopLevelAction.child", Integer.toString(children.size())); throw new TxError(jtsLogger.i18NLogger.get_orbspecific_interposition_resources_restricted_contx_4(Integer.toString(children.size()))); } else { if (children.size() == 1) toReturn = (ServerRestrictedNestedAction) children.remove(0); } return toReturn; }
public final synchronized ServerRestrictedNestedAction child () { ServerRestrictedNestedAction toReturn = null; List<ServerNestedAction> children = getChildren(); // There should be only one child! if (children.size() > 1) { jtsLogger.i18NLogger.warn_orbspecific_interposition_resources_restricted_contxfound_1( "ServerRestrictedNestedAction.child", Integer.toString(children.size())); throw new TxError(jtsLogger.i18NLogger.get_orbspecific_interposition_resources_restricted_contx_1()); } else { if (children.size() == 1) toReturn = (ServerRestrictedNestedAction) children.remove(0); } return toReturn; }
ServerControl control = tlAction.control(); // top-level's control int depth = context.parents.length; int differenceIndex = -1; // index of the new transactions in the ServerRestrictedNestedAction nestedAction = tlAction.child(); //top-level tlAction.abortChild(nestedAction); // automatically removed from control = tlAction.deepestControl(); if (nestedAction.get_uid().equals( Utility.otidToUid(context.parents[i].otid))) nestedAction = nestedAction.child(); control = tlAction.deepestControl(); tlAction.abortChild(nestedAction); nestedAction = null; control = tlAction.deepestControl(); .otidToUid(context.parents[j].otid), tmpCoord, tmpTerm, control); nestedAction = new ServerRestrictedNestedAction(control); if (!nestedAction.valid()) nestedAction.rollback(); // does dispose as well! nestedAction = null;
null, tmpCoord, tmpTerm, ctx.timeout); tlAction = new ServerRestrictedTopLevelAction(control); control); nestedAction = new ServerRestrictedNestedAction(control); if (!nestedAction.valid()) nestedAction.rollback(); nestedAction = null; nestedAction = new ServerRestrictedNestedAction(control); if (!nestedAction.valid()) nestedAction.rollback(); nestedAction = null;
public final synchronized ServerControl deepestControl () { ServerRestrictedNestedAction myChild = child(); if (myChild != null) return myChild.deepestControl(); else return control(); }
public final synchronized ServerControl deepestControl () { ServerRestrictedNestedAction myChild = child(); if (myChild != null) return myChild.deepestControl(); else return control(); }
/** * @message com.arjuna.ats.internal.jts.orbspecific.interposition.resources.restricted.contxfound_3 {0} - found concurrent transactions! * @message com.arjuna.ats.internal.jts.orbspecific.interposition.resources.restricted.contx_4 {0} Concurrent children found for restricted interposition! */ public final synchronized ServerRestrictedNestedAction child () { ServerRestrictedNestedAction toReturn = null; List<ServerNestedAction> children = getChildren(); // There should be only one child! if (children.size() != 1) { if (jtsLogger.loggerI18N.isWarnEnabled()) { jtsLogger.loggerI18N.warn("com.arjuna.ats.internal.jts.orbspecific.interposition.resources.restricted.contxfound_3", new Object[] {"ServerRestrictedTopLevelAction.child"}); } throw new com.arjuna.ats.jts.exceptions.TxError(jtsLogger.logMesg.getString("com.arjuna.ats.internal.jts.orbspecific.interposition.resources.restricted.contx_4")); } else { toReturn = (ServerRestrictedNestedAction) children.remove(0); } return toReturn; }
/** * @message com.arjuna.ats.internal.jts.orbspecific.interposition.resources.restricted.contxfound_1 {0} - found concurrent transactions! * @message com.arjuna.ats.internal.jts.orbspecific.interposition.resources.restricted.contx_1 {0} Concurrent children found for restricted interposition! */ public final synchronized ServerRestrictedNestedAction child () { ServerRestrictedNestedAction toReturn = null; List<ServerNestedAction> children = getChildren(); // There should be only one child! if (children.size() != 1) { if (jtsLogger.loggerI18N.isWarnEnabled()) { jtsLogger.loggerI18N.warn("com.arjuna.ats.internal.jts.orbspecific.interposition.resources.restricted.contxfound_1", new Object[] {"ServerRestrictedNestedAction.child"}); } throw new com.arjuna.ats.jts.exceptions.TxError(jtsLogger.logMesg.getString("com.arjuna.ats.internal.jts.orbspecific.interposition.resources.restricted.contx_2")); } else { toReturn = (ServerRestrictedNestedAction) children.remove(0); } return toReturn; }