org.apache.tez.dag.history.events
Class VertexParallelismUpdatedEvent

java.lang.Object
  extended by org.apache.tez.dag.history.events.VertexParallelismUpdatedEvent
All Implemented Interfaces:
HistoryEvent

public class VertexParallelismUpdatedEvent
extends Object
implements HistoryEvent


Constructor Summary
VertexParallelismUpdatedEvent()
           
VertexParallelismUpdatedEvent(org.apache.tez.dag.records.TezVertexID vertexID, int numTasks, org.apache.tez.dag.api.VertexLocationHint vertexLocationHint, Map<String,org.apache.tez.dag.api.EdgeManagerDescriptor> sourceEdgeManagers)
           
 
Method Summary
 org.codehaus.jettison.json.JSONObject convertToATSJSON()
           
 void fromProto(RecoveryProtos.VertexParallelismUpdatedProto proto)
           
 void fromProtoStream(InputStream inputStream)
           
 HistoryEventType getEventType()
           
 int getNumTasks()
           
 Map<String,org.apache.tez.dag.api.EdgeManagerDescriptor> getSourceEdgeManagers()
           
 org.apache.tez.dag.records.TezVertexID getVertexID()
           
 org.apache.tez.dag.api.VertexLocationHint getVertexLocationHint()
           
 boolean isHistoryEvent()
           
 boolean isRecoveryEvent()
           
 RecoveryProtos.VertexParallelismUpdatedProto toProto()
           
 void toProtoStream(OutputStream outputStream)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VertexParallelismUpdatedEvent

public VertexParallelismUpdatedEvent()

VertexParallelismUpdatedEvent

public VertexParallelismUpdatedEvent(org.apache.tez.dag.records.TezVertexID vertexID,
                                     int numTasks,
                                     org.apache.tez.dag.api.VertexLocationHint vertexLocationHint,
                                     Map<String,org.apache.tez.dag.api.EdgeManagerDescriptor> sourceEdgeManagers)
Method Detail

getEventType

public HistoryEventType getEventType()
Specified by:
getEventType in interface HistoryEvent

convertToATSJSON

public org.codehaus.jettison.json.JSONObject convertToATSJSON()
                                                       throws org.codehaus.jettison.json.JSONException
Specified by:
convertToATSJSON in interface HistoryEvent
Throws:
org.codehaus.jettison.json.JSONException

isRecoveryEvent

public boolean isRecoveryEvent()
Specified by:
isRecoveryEvent in interface HistoryEvent

isHistoryEvent

public boolean isHistoryEvent()
Specified by:
isHistoryEvent in interface HistoryEvent

toProto

public RecoveryProtos.VertexParallelismUpdatedProto toProto()

fromProto

public void fromProto(RecoveryProtos.VertexParallelismUpdatedProto proto)

toProtoStream

public void toProtoStream(OutputStream outputStream)
                   throws IOException
Specified by:
toProtoStream in interface HistoryEvent
Throws:
IOException

fromProtoStream

public void fromProtoStream(InputStream inputStream)
                     throws IOException
Specified by:
fromProtoStream in interface HistoryEvent
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object

getVertexID

public org.apache.tez.dag.records.TezVertexID getVertexID()

getNumTasks

public int getNumTasks()

getVertexLocationHint

public org.apache.tez.dag.api.VertexLocationHint getVertexLocationHint()

getSourceEdgeManagers

public Map<String,org.apache.tez.dag.api.EdgeManagerDescriptor> getSourceEdgeManagers()


Copyright © 2014 Apache Software Foundation. All rights reserved.