Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
21 changed files
with
104 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
location: aws-ec2:us-east-1 | ||
name: entity-config-example | ||
services: | ||
- type: entity-config-example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
brooklyn.catalog: | ||
items: | ||
- id: entity-config-example | ||
itemType: entity | ||
name: Entity Config Example | ||
item: | ||
type: org.apache.brooklyn.entity.software.base.VanillaSoftwareProcess | ||
brooklyn.parameters: | ||
- name: custom.message | ||
type: string | ||
description: Message to be displayed | ||
default: Hello | ||
brooklyn.config: | ||
shell.env: | ||
MESSAGE: $brooklyn:config("custom.message") | ||
launch.command: | | ||
echo "My example launch command: $MESSAGE" | ||
checkRunning.command: | | ||
echo "My example checkRunning command: $MESSAGE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
location: aws-ec2:us-east-1 | ||
name: entity-config-override-example | ||
services: | ||
- type: entity-config-example | ||
brooklyn.config: | ||
custom.message: Goodbye | ||
launch.command: | | ||
echo "Sub-type launch command: $MESSAGE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name: entity-constraint-example | ||
services: | ||
- type: entity-constraint-example | ||
brooklyn.config: | ||
compulsoryExample: foo | ||
addressExample: 1.1.1.1 | ||
numberExample: 2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
brooklyn.catalog: | ||
items: | ||
- id: entity-constraint-example | ||
itemType: entity | ||
name: Entity Config Example | ||
item: | ||
type: org.apache.brooklyn.entity.stock.BasicEntity | ||
brooklyn.parameters: | ||
- name: compulsoryExample | ||
type: string | ||
constraints: | ||
- required | ||
- name: addressExample | ||
type: string | ||
constraints: | ||
- regex: ^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$ | ||
- name: numberExample | ||
type: double | ||
constraints: | ||
- $brooklyn:object: | ||
type: org.apache.brooklyn.util.math.MathPredicates | ||
factoryMethod.name: greaterThan | ||
factoryMethod.args: | ||
- 0.0 | ||
- $brooklyn:object: | ||
type: org.apache.brooklyn.util.math.MathPredicates | ||
factoryMethod.name: lessThan | ||
factoryMethod.args: | ||
- 256.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters