-
-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* More PR feedback resolving and cleanup * Create BackgroundJobConfigurationReader * Use serverTimeoutPollIntervalMultiplicand * Further cleanup * Fix build * Fix PR feedback
- Loading branch information
Showing
34 changed files
with
281 additions
and
283 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
60 changes: 60 additions & 0 deletions
60
core/src/main/java/org/jobrunr/server/BackgroundJobServerConfigurationReader.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,60 @@ | ||
package org.jobrunr.server; | ||
|
||
import org.jobrunr.server.configuration.BackgroundJobServerWorkerPolicy; | ||
import org.jobrunr.server.configuration.ConcurrentJobModificationPolicy; | ||
|
||
import java.time.Duration; | ||
import java.util.UUID; | ||
|
||
public class BackgroundJobServerConfigurationReader { | ||
|
||
private final BackgroundJobServerConfiguration configuration; | ||
|
||
public BackgroundJobServerConfigurationReader(BackgroundJobServerConfiguration configuration) { | ||
this.configuration = configuration; | ||
} | ||
|
||
public UUID getId() { | ||
return configuration.id; | ||
} | ||
|
||
public String getName() { | ||
return configuration.name; | ||
} | ||
|
||
public int getScheduledJobsRequestSize() { | ||
return configuration.scheduledJobsRequestSize; | ||
} | ||
|
||
public int getOrphanedJobsRequestSize() { | ||
return configuration.orphanedJobsRequestSize; | ||
} | ||
|
||
public int getSucceededJobsRequestSize() { | ||
return configuration.succeededJobsRequestSize; | ||
} | ||
|
||
public Duration getPollInterval() { | ||
return configuration.pollInterval; | ||
} | ||
|
||
public Integer getServerTimeoutPollIntervalMultiplicand() { | ||
return configuration.serverTimeoutPollIntervalMultiplicand; | ||
} | ||
|
||
public Duration getDeleteSucceededJobsAfter() { | ||
return configuration.deleteSucceededJobsAfter; | ||
} | ||
|
||
public Duration getPermanentlyDeleteDeletedJobsAfter() { | ||
return configuration.permanentlyDeleteDeletedJobsAfter; | ||
} | ||
|
||
public BackgroundJobServerWorkerPolicy getBackgroundJobServerWorkerPolicy() { | ||
return configuration.backgroundJobServerWorkerPolicy; | ||
} | ||
|
||
public ConcurrentJobModificationPolicy getConcurrentJobModificationPolicy() { | ||
return configuration.concurrentJobModificationPolicy; | ||
} | ||
} |
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
12 changes: 6 additions & 6 deletions
12
core/src/main/java/org/jobrunr/server/zookeeper/ThreadIdleTaskInfo.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
Oops, something went wrong.