public StreamMockEnvironment( Configuration jobConfig, Configuration taskConfig, ExecutionConfig executionConfig, long memorySize, MockInputSplitProvider inputSplitProvider, int bufferSize, TaskStateManager taskStateManager) { this( new JobID(), new ExecutionAttemptID(0L, 0L), jobConfig, taskConfig, executionConfig, memorySize, inputSplitProvider, bufferSize, taskStateManager); }
jobInformation, taskInformation, new ExecutionAttemptID(), new AllocationID(), 0,
new ExecutionAttemptID(1L, 2L), mock(TaskLocalStateStoreImpl.class), null,
new ExecutionAttemptID(1L, 2L), mock(TaskLocalStateStoreImpl.class), null,
jobInformation, taskInformation, new ExecutionAttemptID(), new AllocationID(), 0,
jobInformation, taskInformation, new ExecutionAttemptID(), new AllocationID(), 0,
jobInformation, taskInformation, new ExecutionAttemptID(), new AllocationID(), 0,
final ExecutionAttemptID executionAttemptID = new ExecutionAttemptID(); final CheckpointMetaData checkpointMetaData = new CheckpointMetaData(42L, 4711L); final CheckpointMetrics checkpointMetrics = new CheckpointMetrics();
new ExecutionAttemptID(), new TestTaskLocalStateStore(), jobManagerTaskRestore,
ExecutionAttemptID executionAttemptID = new ExecutionAttemptID(23L, 24L); TestCheckpointResponder checkpointResponderMock = new TestCheckpointResponder();
public static ExecutionAttemptID fromByteBuf(ByteBuf buf) { long lower = buf.readLong(); long upper = buf.readLong(); return new ExecutionAttemptID(lower, upper); } }
public static ExecutionAttemptID fromHexString(String hexString) { return new ExecutionAttemptID(DatatypeConverter.parseHexBinary(hexString)); } }
public ResultPartitionID() { this(new IntermediateResultPartitionID(), new ExecutionAttemptID()); }
public ResultPartitionID() { this(new IntermediateResultPartitionID(), new ExecutionAttemptID()); }
public ResultPartitionID() { this(new IntermediateResultPartitionID(), new ExecutionAttemptID()); }
public ResultPartitionID() { this(new IntermediateResultPartitionID(), new ExecutionAttemptID()); }
public static ExecutionAttemptID fromByteBuf(ByteBuf buf) { long lower = buf.readLong(); long upper = buf.readLong(); return new ExecutionAttemptID(lower, upper); } }
public static ExecutionAttemptID fromByteBuf(ByteBuf buf) { long lower = buf.readLong(); long upper = buf.readLong(); return new ExecutionAttemptID(lower, upper); }
public static ExecutionAttemptID fromByteBuf(ByteBuf buf) { long lower = buf.readLong(); long upper = buf.readLong(); return new ExecutionAttemptID(lower, upper); } }
/** Convert relative partition directory to ResultPartitionID according to generatePartitionRootPath() method. */ public static ResultPartitionID convertRelativeDirToResultPartitionID(String relativeDir) { if (!relativeDir.startsWith(PARTITION_DIR_PREFIX)) { return null; } String[] segments = relativeDir.substring(PARTITION_DIR_PREFIX.length()).split(SPLITTER); if (segments == null || segments.length != 2) { return null; } try { return new ResultPartitionID( new IntermediateResultPartitionID(DatatypeConverter.parseHexBinary(segments[1])), new ExecutionAttemptID(DatatypeConverter.parseHexBinary(segments[0]))); } catch (Exception e) { return null; } }