public class HadoopPerformanceCounter extends HadoopCounterAdapter
| Constructor and Description |
|---|
HadoopPerformanceCounter()
Default constructor required by
Externalizable. |
HadoopPerformanceCounter(String grp,
String name)
Constructor.
|
HadoopPerformanceCounter(UUID nodeId)
Constructor to create instance to use this as helper.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clientSubmissionEvents(HadoopJobInfo info)
Adds client submission events from job info.
|
Collection<T2<String,Long>> |
evts()
Gets the events collection.
|
static HadoopPerformanceCounter |
getCounter(HadoopCounters cntrs,
UUID nodeId)
Gets system predefined performance counter from the HadoopCounters object.
|
void |
merge(HadoopCounter cntr) |
void |
onJobPrepare(long ts)
Adds event of the job preparation.
|
void |
onJobStart(long ts)
Adds event of the job start.
|
void |
onShuffleMessage(int reducerNum,
long ts)
Registers shuffle message event.
|
void |
onTaskFinish(HadoopTaskInfo info,
long ts)
Adds event of the task finish.
|
void |
onTaskPrepare(HadoopTaskInfo info,
long ts)
Adds event of the task preparation.
|
void |
onTaskStart(HadoopTaskInfo info,
long ts)
Adds event of the task run.
|
void |
onTaskSubmit(HadoopTaskInfo info,
long ts)
Adds event of the task submission (task instance creation).
|
protected void |
readValue(ObjectInput in)
Read value of this counter from input.
|
protected void |
writeValue(ObjectOutput out)
Writes value of this counter to output.
|
equals, group, hashCode, name, readExternal, toString, writeExternalpublic HadoopPerformanceCounter()
Externalizable.public HadoopPerformanceCounter(String grp, String name)
grp - Group name.name - Counter name.public HadoopPerformanceCounter(UUID nodeId)
nodeId - Id of the work node.protected void writeValue(ObjectOutput out) throws IOException
writeValue in class HadoopCounterAdapterout - Output.IOException - If failed.protected void readValue(ObjectInput in) throws IOException
readValue in class HadoopCounterAdapterin - Input.IOException - If failed.public void merge(HadoopCounter cntr)
public Collection<T2<String,Long>> evts()
public void onTaskSubmit(HadoopTaskInfo info, long ts)
info - Task info.ts - Timestamp of the event.public void onTaskPrepare(HadoopTaskInfo info, long ts)
info - Task info.ts - Timestamp of the event.public void onTaskFinish(HadoopTaskInfo info, long ts)
info - Task info.ts - Timestamp of the event.public void onTaskStart(HadoopTaskInfo info, long ts)
info - Task info.ts - Timestamp of the event.public void onJobPrepare(long ts)
ts - Timestamp of the event.public void onJobStart(long ts)
ts - Timestamp of the event.public void clientSubmissionEvents(HadoopJobInfo info)
info - Job info.public void onShuffleMessage(int reducerNum,
long ts)
reducerNum - Number of reducer that receives the data.ts - Timestamp of the event.public static HadoopPerformanceCounter getCounter(HadoopCounters cntrs, @Nullable UUID nodeId)
cntrs - HadoopCounters object.nodeId - Node id for methods that adds events. It may be null if you don't use ones.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.1-p166 Release Date : September 3 2019