@Override public void cancel() throws Exception { this.running = false; if (LOG.isDebugEnabled()) { LOG.debug(formatLogString("Cancelling task code")); } try { if (this.driver != null) { this.driver.cancel(); } } finally { closeLocalStrategiesAndCaches(); } }
@Override public void cancel() throws Exception { this.running = false; if (LOG.isDebugEnabled()) { LOG.debug(formatLogString("Cancelling task code")); } try { if (this.driver != null) { this.driver.cancel(); } } finally { closeLocalStrategiesAndCaches(); } }
@Override public void cancel() throws Exception { this.running = false; if (LOG.isDebugEnabled()) { LOG.debug(formatLogString("Cancelling task code")); } try { if (this.driver != null) { this.driver.cancel(); } } finally { closeLocalStrategiesAndCaches(); } }
@Override public void cancel() throws Exception { this.running = false; if (LOG.isDebugEnabled()) { LOG.debug(formatLogString("Cancelling task code")); } try { if (this.driver != null) { this.driver.cancel(); } } finally { closeLocalStrategiesAndCaches(); } }
protected <X> void readAndSetBroadcastInput(int inputNum, String bcVarName, DistributedRuntimeUDFContext context, int superstep) throws IOException { if (LOG.isDebugEnabled()) { LOG.debug(formatLogString("Setting broadcast variable '" + bcVarName + "'" + (superstep > 1 ? ", superstep " + superstep : ""))); } @SuppressWarnings("unchecked") final TypeSerializerFactory<X> serializerFactory = (TypeSerializerFactory<X>) this.broadcastInputSerializers[inputNum]; final MutableReader<?> reader = this.broadcastInputReaders[inputNum]; BroadcastVariableMaterialization<X, ?> variable = getEnvironment().getBroadcastVariableManager().materializeBroadcastVariable(bcVarName, superstep, this, reader, serializerFactory); context.setBroadcastVariable(bcVarName, variable); }
protected <X> void readAndSetBroadcastInput(int inputNum, String bcVarName, DistributedRuntimeUDFContext context, int superstep) throws IOException { if (LOG.isDebugEnabled()) { LOG.debug(formatLogString("Setting broadcast variable '" + bcVarName + "'" + (superstep > 1 ? ", superstep " + superstep : ""))); } @SuppressWarnings("unchecked") final TypeSerializerFactory<X> serializerFactory = (TypeSerializerFactory<X>) this.broadcastInputSerializers[inputNum]; final MutableReader<?> reader = this.broadcastInputReaders[inputNum]; BroadcastVariableMaterialization<X, ?> variable = getEnvironment().getBroadcastVariableManager().materializeBroadcastVariable(bcVarName, superstep, this, reader, serializerFactory); context.setBroadcastVariable(bcVarName, variable); }
protected void releaseBroadcastVariables(String bcVarName, int superstep, DistributedRuntimeUDFContext context) { if (LOG.isDebugEnabled()) { LOG.debug(formatLogString("Releasing broadcast variable '" + bcVarName + "'" + (superstep > 1 ? ", superstep " + superstep : ""))); } getEnvironment().getBroadcastVariableManager().releaseReference(bcVarName, superstep, this); context.clearBroadcastVariable(bcVarName); }
protected <X> void readAndSetBroadcastInput(int inputNum, String bcVarName, DistributedRuntimeUDFContext context, int superstep) throws IOException { if (LOG.isDebugEnabled()) { LOG.debug(formatLogString("Setting broadcast variable '" + bcVarName + "'" + (superstep > 1 ? ", superstep " + superstep : ""))); } @SuppressWarnings("unchecked") final TypeSerializerFactory<X> serializerFactory = (TypeSerializerFactory<X>) this.broadcastInputSerializers[inputNum]; final MutableReader<?> reader = this.broadcastInputReaders[inputNum]; BroadcastVariableMaterialization<X, ?> variable = getEnvironment().getBroadcastVariableManager().materializeBroadcastVariable(bcVarName, superstep, this, reader, serializerFactory); context.setBroadcastVariable(bcVarName, variable); }
protected void releaseBroadcastVariables(String bcVarName, int superstep, DistributedRuntimeUDFContext context) { if (LOG.isDebugEnabled()) { LOG.debug(formatLogString("Releasing broadcast variable '" + bcVarName + "'" + (superstep > 1 ? ", superstep " + superstep : ""))); } getEnvironment().getBroadcastVariableManager().releaseReference(bcVarName, superstep, this); context.clearBroadcastVariable(bcVarName); }
protected <X> void readAndSetBroadcastInput(int inputNum, String bcVarName, DistributedRuntimeUDFContext context, int superstep) throws IOException { if (LOG.isDebugEnabled()) { LOG.debug(formatLogString("Setting broadcast variable '" + bcVarName + "'" + (superstep > 1 ? ", superstep " + superstep : ""))); } @SuppressWarnings("unchecked") final TypeSerializerFactory<X> serializerFactory = (TypeSerializerFactory<X>) this.broadcastInputSerializers[inputNum]; final MutableReader<?> reader = this.broadcastInputReaders[inputNum]; BroadcastVariableMaterialization<X, ?> variable = getEnvironment().getBroadcastVariableManager().materializeBroadcastVariable(bcVarName, superstep, this, reader, serializerFactory); context.setBroadcastVariable(bcVarName, variable); }
protected void releaseBroadcastVariables(String bcVarName, int superstep, DistributedRuntimeUDFContext context) { if (LOG.isDebugEnabled()) { LOG.debug(formatLogString("Releasing broadcast variable '" + bcVarName + "'" + (superstep > 1 ? ", superstep " + superstep : ""))); } getEnvironment().getBroadcastVariableManager().releaseReference(bcVarName, superstep, this); context.clearBroadcastVariable(bcVarName); }
protected void releaseBroadcastVariables(String bcVarName, int superstep, DistributedRuntimeUDFContext context) { if (LOG.isDebugEnabled()) { LOG.debug(formatLogString("Releasing broadcast variable '" + bcVarName + "'" + (superstep > 1 ? ", superstep " + superstep : ""))); } getEnvironment().getBroadcastVariableManager().releaseReference(bcVarName, superstep, this); context.clearBroadcastVariable(bcVarName); }
LOG.debug(formatLogString("Releasing all broadcast variables."));
LOG.debug(formatLogString("Releasing all broadcast variables."));
LOG.debug(formatLogString("Releasing all broadcast variables."));
LOG.debug(formatLogString("Releasing all broadcast variables."));
LOG.debug(formatLogString("Start registering input and output.")); LOG.debug(formatLogString("Finished registering input and output.")); LOG.debug(formatLogString("Start task code.")); LOG.debug(formatLogString("Input [" + i + "] reads in supersteps with [" + + numberOfEventsUntilInterrupt + "] event(s) till next superstep.")); LOG.debug(formatLogString("Broadcast input [" + i + "] reads in supersteps with [" + + numberOfEventsUntilInterrupt + "] event(s) till next superstep.")); LOG.debug(formatLogString("Task cancelled before task code was started.")); LOG.debug(formatLogString("Finished task code.")); LOG.debug(formatLogString("Task code cancelled."));
LOG.debug(formatLogString("Start registering input and output.")); LOG.debug(formatLogString("Finished registering input and output.")); LOG.debug(formatLogString("Start task code.")); LOG.debug(formatLogString("Input [" + i + "] reads in supersteps with [" + + numberOfEventsUntilInterrupt + "] event(s) till next superstep.")); LOG.debug(formatLogString("Broadcast input [" + i + "] reads in supersteps with [" + + numberOfEventsUntilInterrupt + "] event(s) till next superstep.")); LOG.debug(formatLogString("Task cancelled before task code was started.")); LOG.debug(formatLogString("Finished task code.")); LOG.debug(formatLogString("Task code cancelled."));
LOG.debug(formatLogString("Start registering input and output.")); LOG.debug(formatLogString("Finished registering input and output.")); LOG.debug(formatLogString("Start task code.")); LOG.debug(formatLogString("Input [" + i + "] reads in supersteps with [" + + numberOfEventsUntilInterrupt + "] event(s) till next superstep.")); LOG.debug(formatLogString("Broadcast input [" + i + "] reads in supersteps with [" + + numberOfEventsUntilInterrupt + "] event(s) till next superstep.")); LOG.debug(formatLogString("Task cancelled before task code was started.")); LOG.debug(formatLogString("Finished task code.")); LOG.debug(formatLogString("Task code cancelled."));
LOG.debug(formatLogString("Start registering input and output.")); LOG.debug(formatLogString("Finished registering input and output.")); LOG.debug(formatLogString("Start task code.")); LOG.debug(formatLogString("Input [" + i + "] reads in supersteps with [" + + numberOfEventsUntilInterrupt + "] event(s) till next superstep.")); LOG.debug(formatLogString("Broadcast input [" + i + "] reads in supersteps with [" + + numberOfEventsUntilInterrupt + "] event(s) till next superstep.")); LOG.debug(formatLogString("Task cancelled before task code was started.")); LOG.debug(formatLogString("Finished task code.")); LOG.debug(formatLogString("Task code cancelled."));