@Path(value="/v2/plugins") public class PluginHandler extends AbstractAuthHandler
Modifier and Type | Method and Description |
---|---|
void |
deleteAutomatorTypeResource(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String automatortypeId,
String resourceType,
String resourceName)
Delete all versions of the given resource.
|
void |
deleteAutomatorTypeResourceVersion(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String automatortypeId,
String resourceType,
String resourceName,
String version)
Delete a specific version of the given resource.
|
void |
deleteProviderTypeResource(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String providertypeId,
String resourceType,
String resourceName)
Delete all versions of the given resource.
|
void |
deleteProviderTypeResourceVersion(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String providertypeId,
String resourceType,
String resourceName,
String version)
Delete a specific version of the given resource.
|
void |
getAllAutomatorTypeModules(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String automatortypeId,
String resourceType)
Get a mapping of all resources of the given type for the given automator type.
|
void |
getAllAutomatorTypeResourceVersions(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String automatortypeId,
String resourceType,
String resourceName)
Get a list of all versions of the given resource of the given type for the given automator type.
|
void |
getAllProviderTypeModules(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String providertypeId,
String resourceType)
Get a mapping of all resources of the given type for the given provider type.
|
void |
getAllProviderTypeResourceVersions(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String providertypeId,
String resourceType,
String resourceName)
Get a list of all versions of the given resource of the given type for the given provider type.
|
void |
recallAutomatorTypeModule(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String automatortypeId,
String resourceType,
String resourceName,
String version)
Recall a particular resource version, which means that version of the resource will get removed from provisioners
on the next sync call.
|
void |
recallProviderTypeModule(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String providertypeId,
String resourceType,
String resourceName,
String version)
Recall a particular resource version, which means that version of the resource will get removed from provisioners
on the next sync call.
|
void |
stageAutomatorTypeModule(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String automatortypeId,
String resourceType,
String resourceName,
String version)
Stage a particular resource version, which means that version of the resource will get pushed to provisioners
on the next sync call.
|
void |
stageProviderTypeModule(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String providertypeId,
String resourceType,
String resourceName,
String version)
Stage a particular resource version, which means that version of the resource will get pushed to provisioners
on the next sync call.
|
void |
syncPlugins(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder)
Push staged resources to the provisioners, and remove recalled resources from the provisioners.
|
co.cask.http.BodyConsumer |
uploadAutomatorTypeModule(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String automatortypeId,
String resourceType,
String resourceName)
Add an automator type resource.
|
co.cask.http.BodyConsumer |
uploadProviderTypeModule(org.jboss.netty.handler.codec.http.HttpRequest request,
co.cask.http.HttpResponder responder,
String providertypeId,
String resourceType,
String resourceName)
Add a provider type resource.
|
getAndAuthenticateAccount
@POST @Path(value="/automatortypes/{automatortype-id}/{resource-type}/{resource-name}") public co.cask.http.BodyConsumer uploadAutomatorTypeModule(org.jboss.netty.handler.codec.http.HttpRequest request, co.cask.http.HttpResponder responder, @PathParam(value="automatortype-id") String automatortypeId, @PathParam(value="resource-type") String resourceType, @PathParam(value="resource-name") String resourceName)
request
- Request containing the resource contentsresponder
- Responder for responding to the requestautomatortypeId
- Id of the automator type that is having a resource uploadedresourceType
- Type of resource that is being uploaded for the specified automator typeresourceName
- Name of the resource being uploaded@POST @Path(value="/providertypes/{providertype-id}/{resource-type}/{resource-name}") public co.cask.http.BodyConsumer uploadProviderTypeModule(org.jboss.netty.handler.codec.http.HttpRequest request, co.cask.http.HttpResponder responder, @PathParam(value="providertype-id") String providertypeId, @PathParam(value="resource-type") String resourceType, @PathParam(value="resource-name") String resourceName)
request
- Request containing the resource contentsresponder
- Responder for responding to the requestprovidertypeId
- Id of the provider type that is having a resource uploadedresourceType
- Type of resource that is being uploaded for the specified provider typeresourceName
- Name of the resource being uploaded@POST @Path(value="/automatortypes/{automatortype-id}/{resource-type}/{resource-name}/versions/{version}/stage") public void stageAutomatorTypeModule(org.jboss.netty.handler.codec.http.HttpRequest request, co.cask.http.HttpResponder responder, @PathParam(value="automatortype-id") String automatortypeId, @PathParam(value="resource-type") String resourceType, @PathParam(value="resource-name") String resourceName, @PathParam(value="version") String version)
request
- Request to stage a resourceresponder
- Responder for responding to the requestautomatortypeId
- Id of the automator type that has the resourceresourceType
- Type of resource to stageresourceName
- Name of the resource to stageversion
- Version of the resource to stage@POST @Path(value="/providertypes/{providertype-id}/{resource-type}/{resource-name}/versions/{version}/stage") public void stageProviderTypeModule(org.jboss.netty.handler.codec.http.HttpRequest request, co.cask.http.HttpResponder responder, @PathParam(value="providertype-id") String providertypeId, @PathParam(value="resource-type") String resourceType, @PathParam(value="resource-name") String resourceName, @PathParam(value="version") String version)
request
- Request to stage a resourceresponder
- Responder for responding to the requestprovidertypeId
- Id of the provider type that has the resourceresourceType
- Type of resource to stageresourceName
- Name of the resource to stageversion
- Version of the resource to stage@POST @Path(value="/automatortypes/{automatortype-id}/{resource-type}/{resource-name}/versions/{version}/recall") public void recallAutomatorTypeModule(org.jboss.netty.handler.codec.http.HttpRequest request, co.cask.http.HttpResponder responder, @PathParam(value="automatortype-id") String automatortypeId, @PathParam(value="resource-type") String resourceType, @PathParam(value="resource-name") String resourceName, @PathParam(value="version") String version)
request
- Request to recall a resourceresponder
- Responder for responding to the requestautomatortypeId
- Id of the automator type that has the resourceresourceType
- Type of resource to recallresourceName
- Name of the resource to recallversion
- Version of the resource to recall@POST @Path(value="/providertypes/{providertype-id}/{resource-type}/{resource-name}/versions/{version}/recall") public void recallProviderTypeModule(org.jboss.netty.handler.codec.http.HttpRequest request, co.cask.http.HttpResponder responder, @PathParam(value="providertype-id") String providertypeId, @PathParam(value="resource-type") String resourceType, @PathParam(value="resource-name") String resourceName, @PathParam(value="version") String version)
request
- Request to recall a resourceresponder
- Responder for responding to the requestprovidertypeId
- Id of the provider type that has the resourceresourceType
- Type of resource to recallresourceName
- Name of the resource to recallversion
- Version of the resource to recall@GET @Path(value="/automatortypes/{automatortype-id}/{resource-type}") public void getAllAutomatorTypeModules(org.jboss.netty.handler.codec.http.HttpRequest request, co.cask.http.HttpResponder responder, @PathParam(value="automatortype-id") String automatortypeId, @PathParam(value="resource-type") String resourceType)
request
- Request to get resources of the given typeresponder
- Responder for responding to the requestautomatortypeId
- Id of the automator type that has the resourcesresourceType
- Type of resources to get@GET @Path(value="/providertypes/{providertype-id}/{resource-type}") public void getAllProviderTypeModules(org.jboss.netty.handler.codec.http.HttpRequest request, co.cask.http.HttpResponder responder, @PathParam(value="providertype-id") String providertypeId, @PathParam(value="resource-type") String resourceType)
request
- Request to get resources of the given typeresponder
- Responder for responding to the requestprovidertypeId
- Id of the provider type that has the resourcesresourceType
- Type of resources to get@GET @Path(value="/automatortypes/{automatortype-id}/{resource-type}/{resource-name}") public void getAllAutomatorTypeResourceVersions(org.jboss.netty.handler.codec.http.HttpRequest request, co.cask.http.HttpResponder responder, @PathParam(value="automatortype-id") String automatortypeId, @PathParam(value="resource-type") String resourceType, @PathParam(value="resource-name") String resourceName)
request
- Request to get resources of the given typeresponder
- Responder for responding to the requestautomatortypeId
- Id of the automator type that has the resourcesresourceType
- Type of resources to getresourceName
- Name of the resources to get@GET @Path(value="/providertypes/{providertype-id}/{resource-type}/{resource-name}") public void getAllProviderTypeResourceVersions(org.jboss.netty.handler.codec.http.HttpRequest request, co.cask.http.HttpResponder responder, @PathParam(value="providertype-id") String providertypeId, @PathParam(value="resource-type") String resourceType, @PathParam(value="resource-name") String resourceName)
request
- Request to get resources of the given typeresponder
- Responder for responding to the requestprovidertypeId
- Id of the provider type that has the resourcesresourceType
- Type of resources to getresourceName
- Name of the resources to get@DELETE @Path(value="/automatortypes/{automatortype-id}/{resource-type}/{resource-name}") public void deleteAutomatorTypeResource(org.jboss.netty.handler.codec.http.HttpRequest request, co.cask.http.HttpResponder responder, @PathParam(value="automatortype-id") String automatortypeId, @PathParam(value="resource-type") String resourceType, @PathParam(value="resource-name") String resourceName)
request
- Request to delete resourcesresponder
- Responder for responding to the requestautomatortypeId
- Id of the automator type whose resources should be deletedresourceType
- Type of resources to deleteresourceName
- Name of resources to delete@DELETE @Path(value="/providertypes/{providertype-id}/{resource-type}/{resource-name}") public void deleteProviderTypeResource(org.jboss.netty.handler.codec.http.HttpRequest request, co.cask.http.HttpResponder responder, @PathParam(value="providertype-id") String providertypeId, @PathParam(value="resource-type") String resourceType, @PathParam(value="resource-name") String resourceName)
request
- Request to delete resourcesresponder
- Responder for responding to the requestprovidertypeId
- Id of the provider type whose resources should be deletedresourceType
- Type of resources to deleteresourceName
- Name of resources to delete@DELETE @Path(value="/automatortypes/{automatortype-id}/{resource-type}/{resource-name}/versions/{version}") public void deleteAutomatorTypeResourceVersion(org.jboss.netty.handler.codec.http.HttpRequest request, co.cask.http.HttpResponder responder, @PathParam(value="automatortype-id") String automatortypeId, @PathParam(value="resource-type") String resourceType, @PathParam(value="resource-name") String resourceName, @PathParam(value="version") String version)
request
- Request to delete resourceresponder
- Responder for responding to the requestautomatortypeId
- Id of the automator type whose resource should be deletedresourceType
- Type of resource to deleteresourceName
- Name of resource to deleteversion
- Version of resource to delete@DELETE @Path(value="/providertypes/{providertype-id}/{resource-type}/{resource-name}/versions/{version}") public void deleteProviderTypeResourceVersion(org.jboss.netty.handler.codec.http.HttpRequest request, co.cask.http.HttpResponder responder, @PathParam(value="providertype-id") String providertypeId, @PathParam(value="resource-type") String resourceType, @PathParam(value="resource-name") String resourceName, @PathParam(value="version") String version)
request
- Request to delete resourceresponder
- Responder for responding to the requestprovidertypeId
- Id of the provider type whose resource should be deletedresourceType
- Type of resource to deleteresourceName
- Name of resource to deleteversion
- Version of resource to delete@POST @Path(value="/sync") public void syncPlugins(org.jboss.netty.handler.codec.http.HttpRequest request, co.cask.http.HttpResponder responder)
request
- Request to sync resources to the provisionersresponder
- Responder for responding to the requestCopyright © 2013-2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.