Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ public int getNumSourceTaskPhysicalOutputs(int sourceTaskIndex) {
public void routeDataMovementEventToDestination(DataMovementEvent event,
int sourceTaskIndex, int sourceOutputIndex,
Map<Integer, List<Integer>> destinationTaskAndInputIndices) {
List<Integer> inputIndices =
Collections.unmodifiableList(Collections.singletonList(sourceTaskIndex));
List<Integer> inputIndices = Collections.singletonList(sourceTaskIndex);
// for each task make the i-th source task as the i-th physical input
for (int i=0; i<getContext().getDestinationVertexNumTasks(); ++i) {
destinationTaskAndInputIndices.put(i, inputIndices);
Expand Down Expand Up @@ -93,8 +92,7 @@ public EventRouteMetadata routeInputSourceTaskFailedEventToDestination(
@Override
public void routeInputSourceTaskFailedEventToDestination(int sourceTaskIndex,
Map<Integer, List<Integer>> destinationTaskAndInputIndices) {
List<Integer> inputIndices =
Collections.unmodifiableList(Collections.singletonList(sourceTaskIndex));
List<Integer> inputIndices = Collections.singletonList(sourceTaskIndex);
// for each task make the i-th source task as the i-th physical input
for (int i=0; i<getContext().getDestinationVertexNumTasks(); ++i) {
destinationTaskAndInputIndices.put(i, inputIndices);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@

public class OneToOneEdgeManager extends EdgeManagerPlugin {

final List<Integer> destinationInputIndices =
Collections.unmodifiableList(Collections.singletonList(0));
final List<Integer> destinationInputIndices = Collections.singletonList(0);
final AtomicBoolean stateChecked = new AtomicBoolean(false);

public OneToOneEdgeManager(EdgeManagerPluginContext context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@

public class OneToOneEdgeManagerOnDemand extends EdgeManagerPluginOnDemand {

final List<Integer> destinationInputIndices =
Collections.unmodifiableList(Collections.singletonList(0));
final List<Integer> destinationInputIndices = Collections.singletonList(0);
final AtomicBoolean stateChecked = new AtomicBoolean(false);

final EventRouteMetadata commonRouteMeta =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,7 @@ public void testBasicEvents() throws Exception {
}

public static class LegacyEdgeTestEdgeManager extends EdgeManagerPlugin {
List<Integer> destinationInputIndices =
Collections.unmodifiableList(Collections.singletonList(0));
List<Integer> destinationInputIndices = Collections.singletonList(0);
public LegacyEdgeTestEdgeManager(EdgeManagerPluginContext context) {
super(context);
}
Expand Down