public class NJobsSubService extends Object
| Constructor and Description |
|---|
NJobsSubService(net.thevpc.nuts.NutsApplicationContext context,
NJobConfigStore dal,
JobService service) |
| Modifier and Type | Method and Description |
|---|---|
void |
addJob(NJob job) |
Stream<NJob> |
findAllJobs() |
Stream<NJob> |
findLastJobs(Instant endTime,
int lastCount,
ChronoUnit lastUnit,
Predicate<NJob> whereFilter,
NJobGroup groupBy,
ChronoUnit groupTimeUnit,
TimespanPattern groupPattern) |
Stream<NJob> |
findMonthJobs(Instant date) |
Stream<NJob> |
findWeekJobs(Instant date) |
NJob |
getJob(String jobId) |
NJob |
groupJobs(Collection<NJob> value,
ChronoUnit timeUnit,
TimespanPattern hoursPerDay) |
NJob |
groupJobs(NJob[] value,
ChronoUnit timeUnit,
TimespanPattern hoursPerDay) |
boolean |
removeJob(String jobId) |
Stream<NJob> |
tailWeekJobs(int count) |
void |
updateJob(NJob job) |
public NJobsSubService(net.thevpc.nuts.NutsApplicationContext context,
NJobConfigStore dal,
JobService service)
public void addJob(NJob job)
public Stream<NJob> findLastJobs(Instant endTime, int lastCount, ChronoUnit lastUnit, Predicate<NJob> whereFilter, NJobGroup groupBy, ChronoUnit groupTimeUnit, TimespanPattern groupPattern)
public void updateJob(NJob job)
public NJob groupJobs(Collection<NJob> value, ChronoUnit timeUnit, TimespanPattern hoursPerDay)
public NJob groupJobs(NJob[] value, ChronoUnit timeUnit, TimespanPattern hoursPerDay)
public boolean removeJob(String jobId)
Copyright © 2022 vpc open source initiative. All rights reserved.