public class ServiceResourceAction extends Object implements ResourceAction
ResourceAction for managing a Service resource| Constructor and Description |
|---|
ServiceResourceAction(com.fasterxml.jackson.databind.JsonNode resource,
TugManifest.Deployment deployment)
Instantiates a new ServiceResourceAction.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Deletes the resource.
|
void |
makeReady()
Creates and waits for a resource to be in a ready state.
|
public ServiceResourceAction(com.fasterxml.jackson.databind.JsonNode resource,
TugManifest.Deployment deployment)
resource - the content of the yaml resource configurationdeployment - the deployment configuration from the manifestpublic void makeReady()
throws ResourceActionException
ResourceActionmakeReady in interface ResourceActionResourceActionException - if an error occurs when deploying the resourcepublic void delete()
throws ResourceActionException
ResourceActiondelete in interface ResourceActionResourceActionException - if an error occurs when deleting the resourceCopyright © 2018. All rights reserved.