public class RuntimeTemplate extends Object implements RuntimeOperations
RuntimeOperations
.Modifier and Type | Method and Description |
---|---|
String |
getFromActuator(String appId,
String instanceId,
String endpoint)
Access an HTTP GET exposed actuator resource for a deployed app instance.
|
Object |
postToActuator(String appId,
String instanceId,
String endpoint,
Map<String,Object> body)
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() |
AppStatusResource |
status(String deploymentId) |
org.springframework.hateoas.PagedModel<StreamStatusResource> |
streamStatus(String... streamNames) |
public org.springframework.hateoas.PagedModel<AppStatusResource> status()
status
in interface RuntimeOperations
public AppStatusResource status(String deploymentId)
status
in interface RuntimeOperations
deploymentId
- the deployment idpublic org.springframework.hateoas.PagedModel<StreamStatusResource> streamStatus(String... streamNames)
streamStatus
in interface RuntimeOperations
streamNames
- deployed stream namespublic String getFromActuator(String appId, String instanceId, String endpoint)
RuntimeOperations
getFromActuator
in interface RuntimeOperations
appId
- the application idinstanceId
- the application instance idendpoint
- the relative actuator path, e.g., /info
public Object postToActuator(String appId, String instanceId, String endpoint, Map<String,Object> body)
RuntimeOperations
postToActuator
in interface RuntimeOperations
appId
- the application idinstanceId
- the application instance idendpoint
- the relative actuator path, e.g., /info
body
- map representing the data to post on request bodypublic void postToUrl(String appId, String instanceId, byte[] data, HttpHeaders headers)
RuntimeOperations
postToUrl
in interface RuntimeOperations
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 exceptionCopyright © 2024 Pivotal Software, Inc.. All rights reserved.