brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Goyal, Anuj" <>
Subject RE: New policy for auto-stopping applications after a fixed period
Date Wed, 24 Feb 2016 12:57:33 GMT
Hi Sam,

Will it delete the virtual machine along with stopping application?

Also, It will be helpful, If you can point me to example blueprint using this Policy.


-----Original Message-----
From: Sam Corbett []
Sent: Wednesday, February 17, 2016 4:10 PM
Subject: New policy for auto-stopping applications after a fixed period

Hi everyone,

Merged into Brooklyn yesterday was a useful policy that stops entities after a period has

Example usage:

location: localhost
- type: org.apache.brooklyn.entity.stock.BasicApplication
*  - type: org.apache.brooklyn.policy.action.StopAfterDurationPolicy**
**    brooklyn.config:**
**      lifetime: 4h**
*  brooklyn.children:
   - type:

The policy is configured to invoke the stop effector on the application after four hours have

Hidden inside this is a new DurationSinceSensor, which records the duration since it was added
to an entity.

You may find this useful if you run multi-user environments in which people forget to release
their resources.


View raw message