public interface JobManagerRunnerRegistry extends LocallyCleanableResource
JobManagerRunner
collects running jobs represented by JobManagerRunner
.Modifier and Type | Method and Description |
---|---|
JobManagerRunner |
get(JobID jobId)
Returns the
JobManagerRunner for the given JobID . |
Collection<JobManagerRunner> |
getJobManagerRunners()
Returns the registered
JobManagerRunner instances. |
Set<JobID> |
getRunningJobIds()
Returns
JobID instances of registered JobManagerRunner instances. |
boolean |
isRegistered(JobID jobId)
Checks whether a
JobManagerRunner is registered under the given JobID . |
void |
register(JobManagerRunner jobManagerRunner)
Registers the given
JobManagerRunner instance. |
int |
size()
Returns the number of
JobManagerRunner instances currently being registered. |
JobManagerRunner |
unregister(JobID jobId)
Unregistered the
JobManagerRunner with the given JobID . |
localCleanupAsync
boolean isRegistered(JobID jobId)
JobManagerRunner
is registered under the given JobID
.jobId
- The JobID
to check.true
, if a JobManagerRunner
is registered; false
otherwise.void register(JobManagerRunner jobManagerRunner)
JobManagerRunner
instance.JobManagerRunner get(JobID jobId)
JobManagerRunner
for the given JobID
.NoSuchElementException
- if the passed JobID
does not belong to a registered
JobManagerRunner
.isRegistered(JobID)
int size()
JobManagerRunner
instances currently being registered.Set<JobID> getRunningJobIds()
JobID
instances of registered JobManagerRunner
instances.Collection<JobManagerRunner> getJobManagerRunners()
JobManagerRunner
instances.JobManagerRunner unregister(JobID jobId)
JobManagerRunner
with the given JobID
. null
is
returned if there's no JobManagerRunner
registered for the given JobID
.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.