@Experimental public interface ClusterControllable
Modifier and Type | Method and Description |
---|---|
void |
isolateNetwork(JobClient jobClient,
Runnable afterFailAction)
Disconnect network between Flink cluster and external system.
|
void |
triggerJobManagerFailover(JobClient jobClient,
Runnable afterFailAction)
Triggers a JobManager failover.
|
void |
triggerTaskManagerFailover(JobClient jobClient,
Runnable afterFailAction)
Triggers TaskManager failover.
|
void triggerJobManagerFailover(JobClient jobClient, Runnable afterFailAction) throws Exception
jobClient
- client of the running jobafterFailAction
- action to take before restarting the JobManagerException
void triggerTaskManagerFailover(JobClient jobClient, Runnable afterFailAction) throws Exception
jobClient
- client of the running jobafterFailAction
- action to take before restarting TaskManager(s)Exception
void isolateNetwork(JobClient jobClient, Runnable afterFailAction) throws Exception
jobClient
- client of the running jobafterFailAction
- action to take before recovering the network connectionException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.