@@ -6,7 +6,7 @@ type db_info = Struct[{db_name => String, db_host => String}]
6
6
7
7
class three_tier_application($db_name) {
8
8
9
- plan db_server_plan (String db_name, String host) {
9
+ actor db_server_actor (String db_name, String host) {
10
10
output Db_info db_info
11
11
action produce_information {
12
12
new Db_info {
@@ -26,14 +26,14 @@ class three_tier_application($db_name) {
26
26
}
27
27
28
28
define db($db_name, $db_schema) {
29
- # run the plan
30
- three_tier_application::db_server_plan { $title:
29
+ # run the actor
30
+ three_tier_application::db_server_actor { $title:
31
31
db_name => $db_name:
32
32
schema => $db_schema
33
33
}
34
34
}
35
35
36
- plan db_client {
36
+ actor db_client {
37
37
input Db_info db_info
38
38
}
39
39
}
@@ -81,7 +81,7 @@ Notify[b] -> Notify[c]
81
81
~~~
82
82
Can be expressed as the honeydew program:
83
83
~~~
84
- plan catalog inherits resource_catalog {
84
+ actor catalog inherits resource_catalog {
85
85
resources {
86
86
notify { 'a': }
87
87
notify { 'a2':}
@@ -100,7 +100,7 @@ plan catalog inherits resource_catalog {
100
100
}
101
101
}
102
102
103
- plan standard_resource {
103
+ actor standard_resource {
104
104
queue Resource desired_state
105
105
output Resource actual_state
106
106
output ResourceDiff resource_diff
@@ -124,12 +124,12 @@ plan standard_resource {
124
124
125
125
}
126
126
127
- plan notify::a inherits standard_resource {
127
+ actor notify::a inherits standard_resource {
128
128
the_resource = new Notify { title => 'a' }
129
129
queue desired { entries => the_resource}
130
130
}
131
131
// resource a2 is the same
132
- plan notify::b inherits standard_resource {
132
+ actor notify::b inherits standard_resource {
133
133
134
134
action apply {
135
135
!! <- notify::a.applied
@@ -139,7 +139,7 @@ plan notify::b inherits standard_resource {
139
139
140
140
=====
141
141
142
- plan top_resource {
142
+ actor top_resource {
143
143
Resource r
144
144
Provider p
145
145
@@ -149,12 +149,12 @@ plan top_resource {
149
149
}
150
150
}
151
151
152
- plan notify_a {
152
+ actor notify_a {
153
153
r = Resource.new { type => Notify, title = 'a'}
154
154
p = provider(r)
155
155
156
156
157
- plan resource_catalog {
157
+ actor resource_catalog {
158
158
input Resource ready
159
159
input Provider ready_to_run
160
160
0 commit comments