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; }
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(); control = tlAction.deepestControl(); tlAction.abortChild(nestedAction); nestedAction = null; control = tlAction.deepestControl(); tlAction.addChild(nestedAction); tlAction.abortChild(nestedAction); nestedAction = null; control = tlAction.deepestControl(); nestedAction = tlAction.child(); currentUid = tlAction.get_uid(); nestedAction = tlAction.child(); tlAction.abortChild(nestedAction);
tmpCoord, tmpTerm, ctx.timeout); tlAction = new ServerRestrictedTopLevelAction(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(); control = tlAction.deepestControl(); tlAction.abortChild(nestedAction); nestedAction = null; control = tlAction.deepestControl(); tlAction.addChild(nestedAction); tlAction.abortChild(nestedAction); nestedAction = null; control = tlAction.deepestControl(); nestedAction = tlAction.child(); currentUid = tlAction.get_uid(); nestedAction = tlAction.child(); tlAction.abortChild(nestedAction); nestedAction = null;
null, tmpCoord, tmpTerm, ctx.timeout); tlAction = new ServerRestrictedTopLevelAction(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; }