@Override public void setProcId(long procId) { super.setProcId(procId); }
/** * Add a set of new root-procedure to the executor. * @param procs the new procedures to execute. */ // TODO: Do we need to take nonces here? public void submitProcedures(Procedure<TEnvironment>[] procs) { Preconditions.checkArgument(lastProcId.get() >= 0); if (procs == null || procs.length <= 0) { return; } // Prepare procedure for (int i = 0; i < procs.length; ++i) { prepareProcedure(procs[i]).setProcId(nextProcId()); } // Commit the transaction store.insert(procs); if (LOG.isDebugEnabled()) { LOG.debug("Stored " + Arrays.toString(procs)); } // Add the procedure to the executor for (int i = 0; i < procs.length; ++i) { pushProcedure(procs[i]); } }
/** * Add a new root-procedure to the executor. * @param proc the new procedure to execute. * @param nonceKey the registered unique identifier for this operation from the client or process. * @return the procedure id, that can be used to monitor the operation */ @edu.umd.cs.findbugs.annotations.SuppressWarnings(value="NP_NULL_ON_SOME_PATH", justification = "FindBugs is blind to the check-for-null") public long submitProcedure(Procedure<TEnvironment> proc, NonceKey nonceKey) { Preconditions.checkArgument(lastProcId.get() >= 0); prepareProcedure(proc); final Long currentProcId; if (nonceKey != null) { currentProcId = nonceKeysToProcIdsMap.get(nonceKey); Preconditions.checkArgument(currentProcId != null, "Expected nonceKey=" + nonceKey + " to be reserved, use registerNonce(); proc=" + proc); } else { currentProcId = nextProcId(); } // Initialize the procedure proc.setNonceKey(nonceKey); proc.setProcId(currentProcId.longValue()); // Commit the transaction store.insert(proc, null); LOG.debug("Stored {}", proc); // Add the procedure to the executor return pushProcedure(proc); }
subproc.setParentProcId(procedure.getProcId()); subproc.setRootProcId(rootProcId); subproc.setProcId(nextProcId()); procStack.addSubProcedure(subproc);
proc.setProcId(proto.getProcId()); proc.setState(proto.getState()); proc.setSubmittedTime(proto.getSubmittedTime());
@Override public void setProcId(long procId) { super.setProcId(procId); }
/** * Add a set of new root-procedure to the executor. * @param procs the new procedures to execute. */ // TODO: Do we need to take nonces here? public void submitProcedures(Procedure<TEnvironment>[] procs) { Preconditions.checkArgument(lastProcId.get() >= 0); if (procs == null || procs.length <= 0) { return; } // Prepare procedure for (int i = 0; i < procs.length; ++i) { prepareProcedure(procs[i]).setProcId(nextProcId()); } // Commit the transaction store.insert(procs); if (LOG.isDebugEnabled()) { LOG.debug("Stored " + Arrays.toString(procs)); } // Add the procedure to the executor for (Procedure<TEnvironment> proc : procs) { pushProcedure(proc); } }
/** * Add a new root-procedure to the executor. * @param proc the new procedure to execute. * @param nonceKey the registered unique identifier for this operation from the client or process. * @return the procedure id, that can be used to monitor the operation */ @edu.umd.cs.findbugs.annotations.SuppressWarnings(value="NP_NULL_ON_SOME_PATH", justification = "FindBugs is blind to the check-for-null") public long submitProcedure(Procedure<TEnvironment> proc, NonceKey nonceKey) { Preconditions.checkArgument(lastProcId.get() >= 0); prepareProcedure(proc); final Long currentProcId; if (nonceKey != null) { currentProcId = nonceKeysToProcIdsMap.get(nonceKey); Preconditions.checkArgument(currentProcId != null, "Expected nonceKey=" + nonceKey + " to be reserved, use registerNonce(); proc=" + proc); } else { currentProcId = nextProcId(); } // Initialize the procedure proc.setNonceKey(nonceKey); proc.setProcId(currentProcId.longValue()); // Commit the transaction store.insert(proc, null); LOG.debug("Stored {}", proc); // Add the procedure to the executor return pushProcedure(proc); }
/** * Add a set of new root-procedure to the executor. * @param procs the new procedures to execute. */ // TODO: Do we need to take nonces here? public void submitProcedures(final Procedure[] procs) { Preconditions.checkArgument(lastProcId.get() >= 0); Preconditions.checkArgument(isRunning(), "executor not running"); if (procs == null || procs.length <= 0) { return; } // Prepare procedure for (int i = 0; i < procs.length; ++i) { prepareProcedure(procs[i]).setProcId(nextProcId()); } // Commit the transaction store.insert(procs); if (LOG.isDebugEnabled()) { LOG.debug("Stored " + Arrays.toString(procs)); } // Add the procedure to the executor for (int i = 0; i < procs.length; ++i) { pushProcedure(procs[i]); } }
proc.setProcId(currentProcId.longValue());
proc.setProcId(currentProcId);
subproc.setParentProcId(procedure.getProcId()); subproc.setRootProcId(rootProcId); subproc.setProcId(nextProcId()); procStack.addSubProcedure(subproc);
subproc.setParentProcId(procedure.getProcId()); subproc.setRootProcId(rootProcId); subproc.setProcId(nextProcId()); procStack.addSubProcedure(subproc);
subproc.setProcId(nextProcId());
proc.setProcId(proto.getProcId()); proc.setState(proto.getState()); proc.setStartTime(proto.getStartTime());
proc.setProcId(proto.getProcId()); proc.setState(proto.getState()); proc.setSubmittedTime(proto.getSubmittedTime());
proc.setProcId(proto.getProcId()); proc.setState(proto.getState()); proc.setSubmittedTime(proto.getSubmittedTime());