public final class DefaultJobTable extends Object implements JobTable
JobTable.JobTable.Connection, JobTable.Job, JobTable.JobServices| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
static DefaultJobTable |
create() |
Optional<JobTable.Connection> |
getConnection(org.apache.flink.api.common.JobID jobId)
Gets the connection registered under jobId.
|
Optional<JobTable.Connection> |
getConnection(ResourceID resourceId)
Gets the connection registered under resourceId.
|
Optional<JobTable.Job> |
getJob(org.apache.flink.api.common.JobID jobId)
Gets the job registered under jobId.
|
Collection<JobTable.Job> |
getJobs()
Gets all registered jobs.
|
<E extends Exception> |
getOrCreateJob(org.apache.flink.api.common.JobID jobId,
org.apache.flink.util.function.SupplierWithException<? extends JobTable.JobServices,E> jobServicesSupplier)
Gets a registered
JobTable.Job or creates one if not present. |
boolean |
isEmpty()
Returns
true if the job table does not contain any jobs. |
public <E extends Exception> JobTable.Job getOrCreateJob(org.apache.flink.api.common.JobID jobId, org.apache.flink.util.function.SupplierWithException<? extends JobTable.JobServices,E> jobServicesSupplier) throws E extends Exception
JobTableJobTable.Job or creates one if not present.getOrCreateJob 在接口中 JobTablejobId - jobId identifies the job to getjobServicesSupplier - jobServicesSupplier create new JobTable.JobServices if a
new job needs to be createdE - if the job services could not be createdE extends Exceptionpublic Optional<JobTable.Job> getJob(org.apache.flink.api.common.JobID jobId)
JobTablegetJob 在接口中 JobTablejobId - jobId identifying the job to getOptional containing the JobTable.Job registered under jobId, or an empty
Optional if no job has been registeredpublic Optional<JobTable.Connection> getConnection(org.apache.flink.api.common.JobID jobId)
JobTablegetConnection 在接口中 JobTablejobId - jobId identifying the connection to getOptional containing the JobTable.Connection registered under jobId, or an
empty Optional if no connection has been registered (this could also mean that a
job which has not been connected exists)public Optional<JobTable.Connection> getConnection(ResourceID resourceId)
JobTablegetConnection 在接口中 JobTableresourceId - resourceId identifying the connection to getOptional containing the JobTable.Connection registered under resourceId, or
an empty Optional if no connection has been registeredpublic Collection<JobTable.Job> getJobs()
JobTablepublic boolean isEmpty()
JobTabletrue if the job table does not contain any jobs.public static DefaultJobTable create()
public void close()
close 在接口中 AutoCloseableCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.