com.alibaba.schedulerx.worker.domain.JavaProcessorProfile Maven / Gradle / Ivy
package com.alibaba.schedulerx.worker.domain;
import com.alibaba.schedulerx.common.util.JsonUtil;
/**
*
* @author xiaomeng.hxm
*/
public class JavaProcessorProfile {
private String jarUrl;
private String className;
private String jobHandler;
public String getJarUrl() {
return jarUrl;
}
public void setJarUrl(String jarUrl) {
this.jarUrl = jarUrl;
}
public String getClassName() {
return className;
}
public void setClassName(String className) {
this.className = className;
}
public String getJobHandler() {
return jobHandler;
}
public void setJobHandler(String jobHandler) {
this.jobHandler = jobHandler;
}
public static void main(String[] args) {
JavaProcessorProfile profile = new JavaProcessorProfile();
profile.setJarUrl("/Users/armon/project/schedulerx2.0/schedulerx-test/armon_test_processor.jar");
profile.setClassName("com.alibaba.schedulerx.worker.processor.TestSimpleJobProcessor");
System.out.println(JsonUtil.toJson(profile));
}
}