Service
Overview
An interface to an application service deployment
Documentation
Documentation is available on the ControlTier Wiki: Service
About Commands
The service type provides the following standard life cycle commands:
Name | Description |
---|---|
Start | Starts the service if the service is down. |
Status | Checks if service is running |
Stop | Stops the service if the service is up. |
Update | Executes the Service deployment lifecycle. |
The service type provides the following hook commands called by life cycle commands:
Name | Description |
---|---|
assertServiceIsDown | Checks if the service is down and fails if is not. Service subclasses provide a concrete implementation. |
assertServiceIsUp | Checks if the services is running and fails if not. Service subclasses provide a concrete impementation |
startService | Starts the application service |
stopService | Stops the application service |
The commands, assertServiceIsUp and assertServiceIsDown, are each examples of commands that test an assumption that is intended to be true. They act as an assertion statement inside command workflows and if the condition for which they test is not met, they exit with a failure. This causes the command sequence in the workflow to fail, the failure forwarded to the workflow's error handler.