public class StandaloneClusterClient extends ClusterClient
ClusterClient.LazyActorSystemLoaderactorSystemLoader, flinkConfig, timeout| Constructor and Description |
|---|
StandaloneClusterClient(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.
|
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
|
boolean |
hasUserJarsInClassPath(List<URL> userJarFiles)
Returns true if the client already has the user jar and providing it again would
result in duplicate uploading of the jar.
|
protected JobSubmissionResult |
submitJob(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, getJobManagerAddress, getJobManagerGateway, getOptimizedPlan, getOptimizedPlan, getOptimizedPlanAsJson, getPrintStatusDuringExecution, isDetached, logAndSysout, retrieveJob, run, run, run, run, run, run, runDetached, setDetached, setPrintStatusDuringExecution, shutdown, stoppublic StandaloneClusterClient(Configuration config) throws IOException
IOExceptionpublic void waitForClusterToBeReady()
ClusterClientwaitForClusterToBeReady in class ClusterClientpublic String getWebInterfaceURL()
ClusterClientgetWebInterfaceURL in class ClusterClientpublic GetClusterStatusResponse getClusterStatus()
ClusterClientgetClusterStatus in class ClusterClientpublic List<String> getNewMessages()
ClusterClientgetNewMessages in class ClusterClientpublic String getClusterIdentifier()
ClusterClientgetClusterIdentifier in class ClusterClientpublic int getMaxSlots()
ClusterClientgetMaxSlots in class ClusterClientpublic boolean hasUserJarsInClassPath(List<URL> userJarFiles)
ClusterClienthasUserJarsInClassPath in class ClusterClientprotected JobSubmissionResult submitJob(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.