import org.apache.lens.server.api.error.LensException;
import org.apache.lens.server.api.scheduler.SchedulerService;
import org.apache.commons.lang3.StringUtils;
@Path("scheduler")
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
<BUG>public class ScheduleResource {
public enum INSTANCE_ACTIONS {</BUG>
KILL, RERUN;
public static INSTANCE_ACTIONS fromString(String name) {
return valueOf(name.toUpperCase());

import org.apache.lens.server.api.error.LensException;
import org.apache.lens.server.api.scheduler.SchedulerService;
import org.apache.commons.lang3.StringUtils;
@Path("scheduler")
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
public class ScheduleResource {
private static final ObjectFactory OBJECT_FACTORY = new ObjectFactory();
public enum INSTANCE_ACTIONS {
KILL, RERUN;
public static INSTANCE_ACTIONS fromString(String name) {
return valueOf(name.toUpperCase());
