import com.hydra.core.HydraContext; import com.hydra.core.JobConfig; import com.hydra.core.JobResult; import com.hydra.core.JobRunner; public class HydraExample { public static void main(String[] args) { HydraContext context = new HydraContext(); JobConfig config = new JobConfig(); config.setJobName("ExampleJob"); config.setClassName("com.example.jobs.ExampleJob"); config.setParameters("inputFilePath=/path/to/input.txt,outputFilePath=/path/to/output.txt"); JobResult result = JobRunner.run(context, config); if (result.isSuccessful()) { } else { } } }


上一篇:
下一篇:
切换中文