-
Notifications
You must be signed in to change notification settings - Fork 701
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#483 更新发送初始化失败告警逻辑:只有JobInitException的异常才会发送告警
- Loading branch information
Showing
10 changed files
with
84 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
saturn-core/src/main/java/com/vip/saturn/job/exception/JobInitException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.vip.saturn.job.exception; | ||
|
||
/** | ||
* Exception for handling job init fail. | ||
*/ | ||
public class JobInitException extends JobException { | ||
|
||
public JobInitException(String errorMessage, Object... args) { | ||
super(errorMessage, args); | ||
} | ||
|
||
public JobInitException(Exception cause) { | ||
super(cause); | ||
} | ||
|
||
public JobInitException(Throwable cause) { | ||
super(cause); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
saturn-core/src/main/java/com/vip/saturn/job/trigger/SaturnTrigger.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
package com.vip.saturn.job.trigger; | ||
|
||
import org.quartz.SchedulerException; | ||
|
||
import com.vip.saturn.job.basic.AbstractElasticJob; | ||
|
||
public interface SaturnTrigger { | ||
SaturnScheduler build(AbstractElasticJob job) throws SchedulerException; | ||
SaturnScheduler build(AbstractElasticJob job); | ||
|
||
void retrigger(SaturnScheduler scheduler, AbstractElasticJob job) throws SchedulerException; | ||
void retrigger(SaturnScheduler scheduler, AbstractElasticJob job); | ||
} |