@@ -31,7 +31,6 @@ public class PerfTrace {
31
31
private int taskGroupId ;
32
32
private int channelNumber ;
33
33
34
- private int priority ;
35
34
private int batchSize = 500 ;
36
35
private volatile boolean perfReportEnable = true ;
37
36
@@ -54,12 +53,12 @@ public class PerfTrace {
54
53
* @param taskGroupId
55
54
* @return
56
55
*/
57
- public static PerfTrace getInstance (boolean isJob , long jobId , int taskGroupId , int priority , boolean enable ) {
56
+ public static PerfTrace getInstance (boolean isJob , long jobId , int taskGroupId , boolean enable ) {
58
57
59
58
if (instance == null ) {
60
59
synchronized (lock ) {
61
60
if (instance == null ) {
62
- instance = new PerfTrace (isJob , jobId , taskGroupId , priority , enable );
61
+ instance = new PerfTrace (isJob , jobId , taskGroupId , enable );
63
62
}
64
63
}
65
64
}
@@ -76,22 +75,21 @@ public static PerfTrace getInstance() {
76
75
LOG .error ("PerfTrace instance not be init! must have some error! " );
77
76
synchronized (lock ) {
78
77
if (instance == null ) {
79
- instance = new PerfTrace (false , -1111 , -1111 , 0 , false );
78
+ instance = new PerfTrace (false , -1111 , -1111 , false );
80
79
}
81
80
}
82
81
}
83
82
return instance ;
84
83
}
85
84
86
- private PerfTrace (boolean isJob , long jobId , int taskGroupId , int priority , boolean enable ) {
85
+ private PerfTrace (boolean isJob , long jobId , int taskGroupId , boolean enable ) {
87
86
try {
88
87
this .perfTraceId = isJob ? "job_" + jobId : String .format ("taskGroup_%s_%s" , jobId , taskGroupId );
89
88
this .enable = enable ;
90
89
this .isJob = isJob ;
91
90
this .taskGroupId = taskGroupId ;
92
91
this .instId = jobId ;
93
- this .priority = priority ;
94
- LOG .info (String .format ("PerfTrace traceId=%s, isEnable=%s, priority=%s" , this .perfTraceId , this .enable , this .priority ));
92
+ LOG .info (String .format ("PerfTrace traceId=%s, isEnable=%s" , this .perfTraceId , this .enable ));
95
93
96
94
} catch (Exception e ) {
97
95
// do nothing
@@ -398,7 +396,6 @@ public synchronized JobStatisticsDto2 getReports(String mode) {
398
396
jdo .setWindowEnd (this .windowEnd );
399
397
jdo .setJobStartTime (jobStartTime );
400
398
jdo .setJobRunTimeMs (System .currentTimeMillis () - jobStartTime .getTime ());
401
- jdo .setJobPriority (this .priority );
402
399
jdo .setChannelNum (this .channelNumber );
403
400
jdo .setCluster (this .cluster );
404
401
jdo .setJobDomain (this .jobDomain );
@@ -609,7 +606,6 @@ class JobStatisticsDto2 {
609
606
private Date jobStartTime ;
610
607
private Date jobEndTime ;
611
608
private Long jobRunTimeMs ;
612
- private Integer jobPriority ;
613
609
private Integer channelNum ;
614
610
private String cluster ;
615
611
private String jobDomain ;
@@ -680,10 +676,6 @@ public Long getJobRunTimeMs() {
680
676
return jobRunTimeMs ;
681
677
}
682
678
683
- public Integer getJobPriority () {
684
- return jobPriority ;
685
- }
686
-
687
679
public Integer getChannelNum () {
688
680
return channelNum ;
689
681
}
@@ -816,10 +808,6 @@ public void setJobRunTimeMs(Long jobRunTimeMs) {
816
808
this .jobRunTimeMs = jobRunTimeMs ;
817
809
}
818
810
819
- public void setJobPriority (Integer jobPriority ) {
820
- this .jobPriority = jobPriority ;
821
- }
822
-
823
811
public void setChannelNum (Integer channelNum ) {
824
812
this .channelNum = channelNum ;
825
813
}
0 commit comments