public class StandaloneClusterClient extends ClusterClient
ClusterClient.LazyActorSystemLoaderactorSystemLoader, flinkConfig, timeout| Constructor and Description |
|---|
StandaloneClusterClient(org.apache.flink.configuration.Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalizeCluster()
Request the cluster to shut down or disconnect.
|
String |
getClusterIdentifier()
Returns a string representation of the cluster.
|
org.apache.flink.runtime.clusterframework.messages.GetClusterStatusResponse |
getClusterStatus()
Returns the latest cluster status, with number of Taskmanagers and slots
|
int |
getMaxSlots()
The client may define an upper limit on the number of slots to use
|
List<String> |
getNewMessages()
May return new messages from the cluster.
|
String |
getWebInterfaceURL()
Returns an URL (as a string) to the JobManager web interface
|
protected org.apache.flink.api.common.JobSubmissionResult |
submitJob(org.apache.flink.runtime.jobgraph.JobGraph jobGraph,
ClassLoader classLoader)
Calls the subclasses' submitJob method.
|
void |
waitForClusterToBeReady()
Blocks until the client has determined that the cluster is ready for Job submission.
|
cancel, endSession, endSessions, getAccumulators, getAccumulators, getFlinkConfiguration, getJobGraph, getJobGraph, getJobManagerAddress, getJobManagerGateway, getOptimizedPlan, getOptimizedPlan, getOptimizedPlanAsJson, getPrintStatusDuringExecution, isDetached, logAndSysout, run, run, run, run, run, run, runDetached, setDetached, setPrintStatusDuringExecution, shutdown, stoppublic StandaloneClusterClient(org.apache.flink.configuration.Configuration config)
throws IOException
IOExceptionpublic void waitForClusterToBeReady()
ClusterClientwaitForClusterToBeReady in class ClusterClientpublic String getWebInterfaceURL()
ClusterClientgetWebInterfaceURL in class ClusterClientpublic org.apache.flink.runtime.clusterframework.messages.GetClusterStatusResponse getClusterStatus()
ClusterClientgetClusterStatus in class ClusterClientpublic List<String> getNewMessages()
ClusterClientgetNewMessages in class ClusterClientpublic String getClusterIdentifier()
ClusterClientgetClusterIdentifier in class ClusterClientpublic int getMaxSlots()
ClusterClientgetMaxSlots in class ClusterClientprotected org.apache.flink.api.common.JobSubmissionResult submitJob(org.apache.flink.runtime.jobgraph.JobGraph jobGraph,
ClassLoader classLoader)
throws ProgramInvocationException
ClusterClientsubmitJob in class ClusterClientjobGraph - The JobGraph to be submittedProgramInvocationExceptionprotected void finalizeCluster()
ClusterClientfinalizeCluster in class ClusterClientCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.