|
@ -5,10 +5,7 @@ import com.yihu.hos.web.framework.model.Result;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
/**
|
|
|
* Created by lingfeng on 2016/8/4.
|
|
@ -73,4 +70,12 @@ public class ESBCamelController {
|
|
|
@RequestBody() String msg) {
|
|
|
return esbCamelService.onServiceFlowStop(msg);
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/serviceFlow/status", produces = "application/json;charset=UTF-8", method = RequestMethod.GET)
|
|
|
@ApiOperation(value = "服务流程运行状态", produces = "application/json", notes = "查看服务流程的运行状态,运行中/停止")
|
|
|
public String serviceFlowStatus(
|
|
|
@ApiParam(name = "routeId", value = "routeId", required = true)
|
|
|
@RequestParam String routeId) {
|
|
|
return esbCamelService.getRouteStatus(routeId);
|
|
|
}
|
|
|
}
|