public abstract class XPatternsSparkJobClient extends Object
| Constructor and Description |
|---|
XPatternsSparkJobClient(String uri) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkContextExist(String contextName) |
void |
createApp(String appName,
String resourcePath) |
Integer |
createContext(String contextName,
HashSet<String> parameters,
int postCreationWaitTime) |
void |
deleteContext(String contextName) |
org.apache.hadoop.conf.Configuration |
getHadoopConf(String hdfsHost,
String hdfsUser) |
String |
getJobStatus(String jobId,
String contextName) |
String |
getServerURI() |
String |
launchJob(String input,
String contextName,
Boolean sync) |
String |
launchXPatternsSparkJob(String mainClass,
String jar,
HashSet<String> parameters,
String context,
Boolean sync) |
void |
uploadFileToHDFS(String path,
byte[] bytes,
String hdfsHost,
String hdfsUser) |
abstract void |
writeError(String error) |
abstract void |
writeInfo(String info) |
public XPatternsSparkJobClient(String uri)
public abstract void writeInfo(String info)
public abstract void writeError(String error)
public String getServerURI()
public String launchXPatternsSparkJob(String mainClass, String jar, HashSet<String> parameters, String context, Boolean sync) throws Exception
Exceptionpublic String launchJob(String input, String contextName, Boolean sync) throws Exception
Exceptionpublic boolean checkContextExist(String contextName) throws Exception
Exceptionpublic void createApp(String appName, String resourcePath) throws Exception
Exceptionpublic String getJobStatus(String jobId, String contextName) throws Exception
Exceptionpublic Integer createContext(String contextName, HashSet<String> parameters, int postCreationWaitTime) throws Exception
Exceptionpublic void uploadFileToHDFS(String path, byte[] bytes, String hdfsHost, String hdfsUser) throws IOException
IOExceptionCopyright © 2015. All rights reserved.