Groovy Documentation

org.linkedin.glu.agent.rest.resources
[Groovy] Class CommandExitValueResource

java.lang.Object
  org.restlet.resource.Resource
      org.linkedin.glu.agent.rest.resources.BaseResource
          org.linkedin.glu.agent.rest.resources.CommandBaseResource
              org.linkedin.glu.agent.rest.resources.CommandExitValueResource

class CommandExitValueResource
extends CommandBaseResource

Authors:
yan@pongasoft.com


Field Summary
 
Fields inherited from class CommandBaseResource
commandId
 
Fields inherited from class BaseResource
MODULE, log
 
Constructor Summary
CommandExitValueResource(Context context, Request request, Response response)

 
Method Summary
boolean allowDelete()

boolean allowGet()

void removeRepresentations()

DELETE: interrupt the action if still running

Representation represent(Variant variant)

GET: return the exit value of the command (blocking call with optional timeout)

 
Methods inherited from class CommandBaseResource
getRequestArgs
 
Methods inherited from class BaseResource
addResponseHeader, getAgent, getPath, getRequestArgs, getResourceMountPoint, noException, toArgs, toArgs, toRepresentation
 

Constructor Detail

CommandExitValueResource

CommandExitValueResource(Context context, Request request, Response response)


 
Method Detail

allowDelete

@Override
boolean allowDelete()


allowGet

@Override
boolean allowGet()


removeRepresentations

@Override
void removeRepresentations()
DELETE: interrupt the action if still running


represent

@Override
Representation represent(Variant variant)
GET: return the exit value of the command (blocking call with optional timeout)


 

Groovy Documentation