Last active
December 18, 2015 12:49
-
-
Save ahgittin/5785372 to your computer and use it in GitHub Desktop.
CAMP PDP sketching
after v4 and before the fruits
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
name: VitaMinder | |
artifacts: | |
- | |
name: VitaMinder WAR | |
type: com.example.java:WAR | |
content: { href: vitaminder.war } | |
requirements: | |
- | |
type: HostedOn | |
fulfillment: id:as | |
- | |
type: JDBC | |
fulfillment: id.db # or service-spec here directly | |
# We still can use component-specific in-line requirements | |
- | |
type: com.example:SomeJEEFeature | |
mode: session | |
- | |
name: VitaMinder SQL | |
type: com.example.sql:SqlScript | |
content: { href: vitaminder.sql } | |
requirements: | |
- | |
type: ExecuteAt | |
fulfillment: id:db | |
services: //modulo the name of this (PCTish) | |
- | |
name: VitaMinder DB | |
id: db | |
requirements: //modulo the name of this (capability?) | |
- | |
type: com.example.db:RDBM | |
- | |
type: com.exampl.db:Replication | |
replicas: 2 | |
strategy: com.example.db:Optimistic | |
- | |
type: com.example.db:SQL | |
version: SQL:2008 | |
- | |
name: App Server | |
id: as | |
requirements: | |
- | |
type: com.example:WebContainer | |
javaVersion: [1.6,) | |
- | |
type: com.example.java:JDBC | |
version: 4.0 | |
injectionMode: CDI |
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
name: VitaMinder | |
components: | |
war: | |
name: VitaMinder WAR | |
type: com.example.java:WAR | |
content: VitaMinder.war | |
requirements: | |
com.example:HostedOn: { javaVersion: [1.6,) } | |
com.example.java:JdbcDependency: | |
injectionMode: CDI | |
fulfillment: db | |
sql: | |
name: VitaMinder SQL | |
type: com.example.sql:SqlScript | |
content: vitaminder.sql | |
requirements: | |
com.example.db:RunAt: db | |
db: | |
name: VitaMinder DB | |
requirements: | |
- com.example.db:ODBC | |
- com.example.db:redundancy: { mode: synchronous, replicas: 2 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment