-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'issue-30552-containers-tm-support' of https://github.co…
…m/dotCMS/core into issue-30552-containers-tm-support
- Loading branch information
Showing
34 changed files
with
1,144 additions
and
530 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
163 changes: 60 additions & 103 deletions
163
dotCMS/src/main/java/com/dotcms/jobs/business/api/JobQueueManagerAPIImpl.java
Large diffs are not rendered by default.
Oops, something went wrong.
57 changes: 0 additions & 57 deletions
57
dotCMS/src/main/java/com/dotcms/jobs/business/api/events/EventProducer.java
This file was deleted.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
dotCMS/src/main/java/com/dotcms/jobs/business/api/events/JobAbandonedEvent.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,39 @@ | ||
package com.dotcms.jobs.business.api.events; | ||
|
||
import com.dotcms.jobs.business.job.Job; | ||
import java.time.LocalDateTime; | ||
|
||
/** | ||
* Event fired when an abandoned job is detected. | ||
*/ | ||
public class JobAbandonedEvent implements JobEvent { | ||
|
||
private final Job job; | ||
private final LocalDateTime detectedAt; | ||
|
||
/** | ||
* Constructs a new JobAbandonedEvent. | ||
* | ||
* @param job The job. | ||
* @param detectedAt The timestamp when the abandoned job was detected. | ||
*/ | ||
public JobAbandonedEvent(Job job, LocalDateTime detectedAt) { | ||
this.job = job; | ||
this.detectedAt = detectedAt; | ||
} | ||
|
||
/** | ||
* @return The abandoned job. | ||
*/ | ||
public Job getJob() { | ||
return job; | ||
} | ||
|
||
/** | ||
* @return The timestamp when the abandoned job was detected. | ||
*/ | ||
public LocalDateTime getDetectedAt() { | ||
return detectedAt; | ||
} | ||
|
||
} |
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
9 changes: 9 additions & 0 deletions
9
dotCMS/src/main/java/com/dotcms/jobs/business/api/events/JobEvent.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,9 @@ | ||
package com.dotcms.jobs.business.api.events; | ||
|
||
/** | ||
* Base marker interface for all job-related events in the job queue system. All specific job event | ||
* types (e.g., JobStartedEvent, JobCompletedEvent, etc.) should implement this interface. | ||
*/ | ||
public interface JobEvent { | ||
|
||
} |
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
Oops, something went wrong.