class TriggerController {
    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired(required = false)
    @Qualifier("clusterScheduler")
    private Scheduler scheduler;

    @RequestMapping(value = "/pause/{appId}/{type}/{host}/{port}")
    public void pauseTrigger(@PathVariable long appId, @PathVariable int type, @PathVariable String host, @PathVariable int port) {<FILL_FUNCTION_BODY>}

    @RequestMapping(value = "/resume/{appId}/{type}/{host}/{port}")
    public void resumeTrigger(@PathVariable long appId, @PathVariable int type, @PathVariable String host, @PathVariable int port) {
        Assert.isTrue(appId > 0);
        Assert.isTrue(type > 0);
        Assert.hasText(host);
        Assert.isTrue(port > 0);

        String triggerName = ObjectConvert.linkIpAndPort(host, port);
        String triggerGroup = "";

        TriggerKey triggerKey = TriggerKey.triggerKey(triggerName, triggerGroup);
        try {
            scheduler.resumeTrigger(triggerKey);
        } catch (SchedulerException e) {
            logger.error(e.getMessage(), e);
        }
        logger.info("trigger with name: {}, group: {} is resumed", port, host);
    }
}

        Assert.isTrue(appId > 0);
        Assert.isTrue(type > 0);
        Assert.hasText(host);
        Assert.isTrue(port > 0);

        String triggerName = ObjectConvert.linkIpAndPort(host, port);
        String triggerGroup = "";

        TriggerKey triggerKey = TriggerKey.triggerKey(triggerName, triggerGroup);
        try {
            scheduler.pauseTrigger(triggerKey);
        } catch (SchedulerException e) {
            logger.error(e.getMessage(), e);
        }
        logger.info("trigger with name: {}, group: {} is paused", port, host);
    
<no_super_class>