Interface RuntimeOperations
- All Known Implementing Classes:
RuntimeTemplate
public interface RuntimeOperations
Defines operations available for obtaining information about deployed apps.
- Author:
- Eric Bottard, Mark Fisher, Chris Bono, Corneil du Plessis
-
Method Summary
Modifier and TypeMethodDescriptiongetFromActuator
(String appId, String instanceId, String endpoint) Access an HTTP GET exposed actuator resource for a deployed app instance.Access an HTTP POST exposed actuator resource for a deployed app instance.void
postToUrl
(String appId, String instanceId, byte[] data, HttpHeaders headers) Provides for POST to application HTTP endpoint exposed via url property.org.springframework.hateoas.PagedModel<AppStatusResource>
status()
org.springframework.hateoas.PagedModel<StreamStatusResource>
streamStatus
(String... streamNames)
-
Method Details
-
status
org.springframework.hateoas.PagedModel<AppStatusResource> status()- Returns:
- the runtime information about all deployed apps.
-
status
- Parameters:
deploymentId
- the deployment id- Returns:
- the runtime information about a single app deployment.
-
streamStatus
- Parameters:
streamNames
- deployed stream names- Returns:
- the runtime information about the deployed streams their apps and instances.
-
getFromActuator
Access an HTTP GET exposed actuator resource for a deployed app instance.- Parameters:
appId
- the application idinstanceId
- the application instance idendpoint
- the relative actuator path, e.g.,/info
- Returns:
- the contents as JSON text
-
postToActuator
Access an HTTP POST exposed actuator resource for a deployed app instance.- Parameters:
appId
- the application idinstanceId
- the application instance idendpoint
- the relative actuator path, e.g.,/info
data
- map representing the data to post on request body- Returns:
- response from actuator
-
postToUrl
Provides for POST to application HTTP endpoint exposed via url property.- Parameters:
appId
- the application idinstanceId
- the application instance iddata
- data to send to url. The mimetype should be in the Content-Type header if important.headers
- post request headers. This method will return an exception
-