Class Maestro2SimulationController
- java.lang.Object
-
- org.intocps.maestro.webapi.maestro2.Maestro2SimulationController
-
@RestController @Component public class Maestro2SimulationController extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMaestro2SimulationController.FixedStepAlgorithmConfigstatic interfaceMaestro2SimulationController.IAlgorithmConfigstatic classMaestro2SimulationController.InitializationDatastatic classMaestro2SimulationController.InitializeStatusModelstatic interfaceMaestro2SimulationController.IVarStepConstraintstatic classMaestro2SimulationController.SimulateRequestBodystatic classMaestro2SimulationController.StatusModelstatic classMaestro2SimulationController.VariableStepAlgorithmConfig
-
Field Summary
Fields Modifier and Type Field Description static SessionControllersessionController
-
Constructor Summary
Constructors Constructor Description Maestro2SimulationController()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.intocps.orchestration.coe.json.InitializationMsgJson.Constraintconvert(Maestro2SimulationController.IVarStepConstraint constraint)Maestro2SimulationController.StatusModelcreateSession()voiddestroy(java.lang.String sessionId)org.springframework.http.ResponseEntity<org.springframework.core.io.Resource>getResultPlain(java.lang.String sessionId)voidgetResultZip(java.lang.String sessionId, javax.servlet.http.HttpServletResponse response)java.util.List<Maestro2SimulationController.StatusModel>getStatuses(java.lang.String sessionId)Maestro2SimulationController.InitializeStatusModelinitializeSession(java.lang.String sessionId, java.lang.String body1)voidoverrideRootLoggerLogLevel(org.apache.logging.log4j.Level level)java.lang.Stringping()Maestro2SimulationController.StatusModelsimulate(java.lang.String sessionId, Maestro2SimulationController.SimulateRequestBody body)voidstop(java.lang.String sessionId)voiduploadFile(java.lang.String sessionId, org.springframework.web.multipart.MultipartFile file)java.lang.Stringversion()
-
-
-
Field Detail
-
sessionController
public static final SessionController sessionController
-
-
Method Detail
-
convert
public static org.intocps.orchestration.coe.json.InitializationMsgJson.Constraint convert(Maestro2SimulationController.IVarStepConstraint constraint)
-
overrideRootLoggerLogLevel
public void overrideRootLoggerLogLevel(org.apache.logging.log4j.Level level)
-
uploadFile
@RequestMapping(value="/upload/{sessionId}", method=POST) public void uploadFile(@PathVariable java.lang.String sessionId, @RequestParam("fieldFile") org.springframework.web.multipart.MultipartFile file) throws java.io.IOException- Throws:
java.io.IOException
-
ping
@RequestMapping(value="/ping", method=GET) public java.lang.String ping()
-
getStatuses
@RequestMapping(value="/status/{sessionId}", method=GET) public java.util.List<Maestro2SimulationController.StatusModel> getStatuses(@PathVariable java.lang.String sessionId)
-
createSession
@RequestMapping(value="/createSession", method=GET) public Maestro2SimulationController.StatusModel createSession()
-
initializeSession
@RequestMapping(value="/initialize/{sessionId}", method=POST) public Maestro2SimulationController.InitializeStatusModel initializeSession(@PathVariable java.lang.String sessionId, @RequestBody java.lang.String body1) throws java.lang.Exception- Throws:
java.lang.Exception
-
simulate
@RequestMapping(value="/simulate/{sessionId}", method=POST, consumes={"text/plain","application/json"}) public Maestro2SimulationController.StatusModel simulate(@PathVariable java.lang.String sessionId, @RequestBody Maestro2SimulationController.SimulateRequestBody body) throws java.lang.Exception- Throws:
java.lang.Exception
-
stop
@RequestMapping(value="/stopsimulation/{sessionId}", method=POST) public void stop(@PathVariable java.lang.String sessionId)
-
getResultPlain
@RequestMapping(value="/result/{sessionId}/plain", method=GET) public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> getResultPlain(@PathVariable java.lang.String sessionId) throws java.lang.Exception- Throws:
java.lang.Exception
-
getResultZip
@RequestMapping(value="/result/{sessionId}/zip", method=GET, produces="application/zip") public void getResultZip(@PathVariable java.lang.String sessionId, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception- Throws:
java.lang.Exception
-
destroy
@RequestMapping(value="/destroy/{sessionId}", method=GET) public void destroy(@PathVariable java.lang.String sessionId) throws java.lang.Exception- Throws:
java.lang.Exception
-
version
@RequestMapping(value="/version", method=GET) public java.lang.String version()
-
-