类 CoordinatorService
- java.lang.Object
-
- org.apache.seatunnel.engine.server.CoordinatorService
-
public class CoordinatorService extends Object
-
-
构造器概要
构造器 构造器 说明 CoordinatorService(@NonNull com.hazelcast.spi.impl.NodeEngineImpl nodeEngine, @NonNull SeaTunnelServer seaTunnelServer, org.apache.seatunnel.engine.common.config.EngineConfig engineConfig)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.apache.seatunnel.engine.common.utils.PassiveCompletableFuture<Void>cancelJob(long jodId)voidclearCoordinatorService()voidfailedTaskOnMemberRemoved(com.hazelcast.internal.services.MembershipServiceEvent event)ConnectorPackageServicegetConnectorPackageService()org.apache.seatunnel.api.event.EventProcessorgetEventProcessor()JobHistoryServicegetJobHistoryService()org.apache.seatunnel.engine.core.job.JobDAGInfogetJobInfo(long jobId)JobMastergetJobMaster(Long jobId)org.apache.seatunnel.api.common.metrics.JobMetricsgetJobMetrics(long jobId)org.apache.seatunnel.engine.core.job.JobStatusgetJobStatus(long jobId)ResourceManagergetResourceManager()Lazy load for resource managerMap<Long,org.apache.seatunnel.api.common.metrics.JobMetrics>getRunningJobMetrics()booleanisCoordinatorActive()return true if this node is a master node and the coordinator service init finished.voidmemberRemoved(com.hazelcast.internal.services.MembershipServiceEvent event)voidprintExecutionInfo()voidprintJobDetailInfo()org.apache.seatunnel.engine.common.utils.PassiveCompletableFuture<Void>savePoint(long jobId)voidshutdown()org.apache.seatunnel.engine.common.utils.PassiveCompletableFuture<Void>submitJob(long jobId, com.hazelcast.internal.serialization.Data jobImmutableInformation, boolean isStartWithSavePoint)call by client to submit jobvoidupdateTaskExecutionState(TaskExecutionState taskExecutionState)When TaskGroup ends, it is called byTaskExecutionServiceto notify JobMaster the TaskGroup's state.org.apache.seatunnel.engine.common.utils.PassiveCompletableFuture<org.apache.seatunnel.engine.core.job.JobResult>waitForJobComplete(long jobId)
-
-
-
构造器详细资料
-
CoordinatorService
public CoordinatorService(@NonNull @NonNull com.hazelcast.spi.impl.NodeEngineImpl nodeEngine, @NonNull @NonNull SeaTunnelServer seaTunnelServer, org.apache.seatunnel.engine.common.config.EngineConfig engineConfig)
-
-
方法详细资料
-
getJobHistoryService
public JobHistoryService getJobHistoryService()
-
getEventProcessor
public org.apache.seatunnel.api.event.EventProcessor getEventProcessor()
-
clearCoordinatorService
public void clearCoordinatorService()
-
getResourceManager
public ResourceManager getResourceManager()
Lazy load for resource manager
-
submitJob
public org.apache.seatunnel.engine.common.utils.PassiveCompletableFuture<Void> submitJob(long jobId, com.hazelcast.internal.serialization.Data jobImmutableInformation, boolean isStartWithSavePoint)
call by client to submit job
-
savePoint
public org.apache.seatunnel.engine.common.utils.PassiveCompletableFuture<Void> savePoint(long jobId)
-
waitForJobComplete
public org.apache.seatunnel.engine.common.utils.PassiveCompletableFuture<org.apache.seatunnel.engine.core.job.JobResult> waitForJobComplete(long jobId)
-
cancelJob
public org.apache.seatunnel.engine.common.utils.PassiveCompletableFuture<Void> cancelJob(long jodId)
-
getJobStatus
public org.apache.seatunnel.engine.core.job.JobStatus getJobStatus(long jobId)
-
getJobMetrics
public org.apache.seatunnel.api.common.metrics.JobMetrics getJobMetrics(long jobId)
-
getRunningJobMetrics
public Map<Long,org.apache.seatunnel.api.common.metrics.JobMetrics> getRunningJobMetrics()
-
getJobInfo
public org.apache.seatunnel.engine.core.job.JobDAGInfo getJobInfo(long jobId)
-
updateTaskExecutionState
public void updateTaskExecutionState(TaskExecutionState taskExecutionState)
When TaskGroup ends, it is called byTaskExecutionServiceto notify JobMaster the TaskGroup's state.
-
shutdown
public void shutdown()
-
isCoordinatorActive
public boolean isCoordinatorActive()
return true if this node is a master node and the coordinator service init finished.
-
failedTaskOnMemberRemoved
public void failedTaskOnMemberRemoved(com.hazelcast.internal.services.MembershipServiceEvent event)
-
memberRemoved
public void memberRemoved(com.hazelcast.internal.services.MembershipServiceEvent event)
-
printExecutionInfo
public void printExecutionInfo()
-
printJobDetailInfo
public void printJobDetailInfo()
-
getConnectorPackageService
public ConnectorPackageService getConnectorPackageService()
-
-