public class Edge extends Object
| Constructor and Description |
|---|
Edge(EdgeProperty edgeProperty,
org.apache.hadoop.yarn.event.EventHandler eventHandler,
org.apache.hadoop.conf.Configuration conf) |
public Edge(EdgeProperty edgeProperty, org.apache.hadoop.yarn.event.EventHandler eventHandler, org.apache.hadoop.conf.Configuration conf) throws TezException
TezExceptionpublic List<TezEvent> generateEmptyEventsForAttempt(TezTaskAttemptID attempt) throws Exception
Exceptionpublic void initialize()
throws AMUserCodeException
AMUserCodeExceptionpublic void setEdgeProperty(EdgeProperty newEdgeProperty) throws AMUserCodeException
AMUserCodeExceptionpublic void routingToBegin()
throws AMUserCodeException
AMUserCodeExceptionpublic boolean hasOnDemandRouting()
public EdgeProperty getEdgeProperty()
public EdgeManagerPlugin getEdgeManager()
public void setSourceVertex(Vertex sourceVertex)
public void setDestinationVertex(Vertex destinationVertex)
public InputSpec getDestinationSpec(int destinationTaskIndex) throws AMUserCodeException
AMUserCodeExceptionpublic OutputSpec getSourceSpec(int sourceTaskIndex) throws AMUserCodeException
AMUserCodeExceptionpublic void startEventBuffering()
public void stopEventBuffering()
throws AMUserCodeException
AMUserCodeExceptionpublic void sendTezEventToSourceTasks(TezEvent tezEvent) throws AMUserCodeException
AMUserCodeExceptionpublic void sendTezEventToDestinationTasks(TezEvent tezEvent) throws AMUserCodeException
AMUserCodeExceptionpublic org.apache.tez.dag.app.dag.impl.Edge.PendingEventRouteMetadata removePendingEvents(TezTaskAttemptID attemptID)
public boolean maybeAddTezEventForDestinationTask(TezEvent tezEvent, TezTaskAttemptID attemptID, int srcTaskIndex, List<TezEvent> listToAdd, int listMaxSize, org.apache.tez.dag.app.dag.impl.Edge.PendingEventRouteMetadata pendingRoutes) throws AMUserCodeException
AMUserCodeExceptionpublic String getSourceVertexName()
public String getDestinationVertexName()
Copyright © 2021 Apache Software Foundation. All rights reserved.