public class JobRunnerCliParser extends Object
| Constructor and Description |
|---|
JobRunnerCliParser() |
| Modifier and Type | Method and Description |
|---|---|
String |
getHostname() |
String[] |
getJarParams()
Return the jar parameters.
|
long |
getJobCheckInterval()
Return how often to check what the status of the job is.@return
|
long |
getJobId() |
String |
getJobName() |
long |
getJobTimeout()
Return the maximum amount of time that we can let the job run before considering it failed.
|
Map<String,String> |
getNotebookParams()
Return the notebook params.
|
String |
getPassword()
Returns the password.
|
String[] |
getPythonParams()
Return the python params.
|
String[] |
getSparkSubmitParams()
Return the spark submit params.
|
String |
getToken()
Returns the token.
|
String |
getUsername()
Returns the username.
|
boolean |
hasHelp() |
boolean |
hasJobId() |
boolean |
hasJobJarParams() |
boolean |
hasJobNotebookParams() |
boolean |
hasJobPythonParams() |
boolean |
hasJobSaprkSubmitParams() |
void |
parse(String... cliArgs)
Parse args.
|
void |
printHelp() |
public void parse(String... cliArgs) throws org.apache.commons.cli.ParseException
org.apache.commons.cli.ParseExceptionpublic String getUsername()
public String getPassword()
public String getToken()
public String getHostname()
public boolean hasJobId()
public long getJobId()
public String getJobName()
public boolean hasHelp()
public void printHelp()
public boolean hasJobJarParams()
public String[] getJarParams()
public boolean hasJobNotebookParams()
public boolean hasJobPythonParams()
public String[] getPythonParams()
public boolean hasJobSaprkSubmitParams()
public String[] getSparkSubmitParams()
public long getJobTimeout()
public long getJobCheckInterval()
Copyright © 2023. All rights reserved.