Brooklyn

brooklyn.rest.resources
[Java] Class ScriptResource

java.lang.Object
  brooklyn.rest.resources.AbstractBrooklynRestResource
      brooklyn.rest.resources.ScriptResource

@Path("/v1/script")
@Apidoc(value="Script")
@Produces("application/json")
public class ScriptResource
extends AbstractBrooklynRestResource

Field Summary
static java.lang.String USER_DATA_MAP_SESSION_ATTRIBUTE

static java.lang.String USER_LAST_VALUE_SESSION_ATTRIBUTE

 
Method Summary
ScriptExecutionSummary groovy(javax.servlet.http.HttpServletRequest request, java.lang.String script)

 
Methods inherited from class AbstractBrooklynRestResource
brooklyn, injectManagementContext, mgmt
 

Field Detail

USER_DATA_MAP_SESSION_ATTRIBUTE

public static final java.lang.String USER_DATA_MAP_SESSION_ATTRIBUTE


USER_LAST_VALUE_SESSION_ATTRIBUTE

public static final java.lang.String USER_LAST_VALUE_SESSION_ATTRIBUTE


 
Method Detail

groovy

@SuppressWarnings("rawtypes")
@POST
@Path("/groovy")
@ApiOperation(value = "Execute a groovy script",
        responseClass = "brooklyn.rest.domain.SensorSummary")
public ScriptExecutionSummary groovy(@Context javax.servlet.http.HttpServletRequest request, @ApiParam(name = "script", value = "Groovy script to execute", required = true) java.lang.String script)


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.