summaryrefslogtreecommitdiff
path: root/java/broker-plugins/management-http/src/main/java/resources/addQueue.html
blob: 352e69893bc17b69a5e64980a10d9f14d6c6ae49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
<!--
 -
 - Licensed to the Apache Software Foundation (ASF) under one
 - or more contributor license agreements.  See the NOTICE file
 - distributed with this work for additional information
 - regarding copyright ownership.  The ASF licenses this file
 - to you under the Apache License, Version 2.0 (the
 - "License"); you may not use this file except in compliance
 - with the License.  You may obtain a copy of the License at
 -
 -   http://www.apache.org/licenses/LICENSE-2.0
 -
 - Unless required by applicable law or agreed to in writing,
 - software distributed under the License is distributed on an
 - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 - KIND, either express or implied.  See the License for the
 - specific language governing permissions and limitations
 - under the License.
 -
 -->
<div class="dijitHidden">
    <div data-dojo-type="dijit.Dialog" data-dojo-props="title:'Add Queue'" id="addQueue">
        <form id="formAddQueue" method="post" dojoType="dijit.form.Form">

            <div class="clear">
                <div class="formLabel-labelCell">Queue Name*:</div>
                <div class="formLabel-controlCell">
                    <input type="text" id="formAddQueue.name"
                           data-dojo-type="dijit/form/ValidationTextBox"
                           data-dojo-props="
                                  name: 'name',
                                  placeHolder: 'queue name',
                                  required: true,
                                  promptMessage: 'Name of queue',
                                  title: 'Enter a queue name',
                                  regExp:'^[\x20-\x2e\x30-\x7F]{1,255}$'"/>
                </div>
            </div>
            <div class="clear">
                <div class="formLabel-labelCell">Queue Type:</div>
                <div class="formLabel-controlCell">
                    <input type="radio" id="formAddQueueTypeStandard" name="type" value="standard" checked="checked" dojoType="dijit.form.RadioButton" />
                    <label for="formAddQueueTypeStandard">Standard</label>
                    &nbsp;
                    <input type="radio" id="formAddQueueTypePriority" name="type" value="priority" dojoType="dijit.form.RadioButton" />
                    <label for="formAddQueueTypePriority">Priority</label>
                    &nbsp;
                    <input type="radio" id="formAddQueueTypeLVQ" name="type" value="lvq" dojoType="dijit.form.RadioButton" />
                    <label for="formAddQueueTypeLVQ">LVQ</label>
                    &nbsp;
                    <input type="radio" id="formAddQueueTypeSorted" name="type" value="sorted" dojoType="dijit.form.RadioButton" />
                    <label for="formAddQueueTypeSorted">Sorted</label>
                </div>
            </div>
            <div class="clear">
                <div class="formLabel-labelCell">Durable?</div>
                <div class="formLabel-controlCell">
                    <input type="checkbox" id="formAddQueue.durable"
                           dojoType="dijit.form.CheckBox"
                           data-dojo-props="
                              name: 'durable',
                              value: 'durable',
                              checked: true"/>
                </div>
            </div>
            <div class="clear">
                <div class="formLabel-labelCell">Persist Messages?</div>
                <div class="formLabel-controlCell">
                    <select id="formAddQueue.messageDurability"
                            dojoType="dijit.form.FilteringSelect"
                            data-dojo-props="
                              name: 'messageDurability',
                              value: '',
                              searchAttr: 'name',
                              required: false,
                              promptMessage: 'Message durability override. If not default, messages arriving will have durability setting overridden',
                              title: 'Enter message durability override'">
                        <option value="ALWAYS">Always</option>
                        <option value="DEFAULT">Default</option>
                        <option value="NEVER">Never</option>
                    </select>
                </div>
            </div>
            <div class="clear">
                <div class="formLabel-labelCell">Maximum Ttl:</div>
                <div class="formLabel-controlCell">
                    <input type="text" id="formAddQueue.maximumMessageTtl"
                           data-dojo-type="dijit/form/ValidationTextBox"
                           data-dojo-props="
                                  name: 'maximumMessageTtl',
                                  placeHolder: 'ttl in ms',
                                  promptMessage: 'Maximum message time to live (ttl) in ms. Messages arriving with larger ttl values will be overridden by this value',
                                  title: 'Enter the maximum message time to live in milliseconds',
                                  trim: true"/>
                </div>
            </div>
            <div class="clear">
                <div class="formLabel-labelCell">Minimum Ttl:</div>
                <div class="formLabel-controlCell">
                    <input type="text" id="formAddQueue.minimumMessageTtl"
                           data-dojo-type="dijit/form/ValidationTextBox"
                           data-dojo-props="
                                  name: 'minimumMessageTtl',
                                  placeHolder: 'ttl in ms',
                                  promptMessage: 'Minimum message time to live (ttl) in ms. Messages arriving with smaller ttl values will be overridden by this value',
                                  title: 'Enter the minimum message time to live in milliseconds',
                                  trim: true"/>
                </div>
            </div>

            <br/>
            <div class="clear"></div>


            <div id="formAddQueueTypePriority:fields" class="hidden"
                 data-dojo-type="dijit.TitlePane" data-dojo-props="title: 'Priority Queue Settings'">
                <div class="clear">
                    <div class="formLabel-labelCell">Priorities:</div>
                    <div class="formLabel-controlCell">
                        <input type="text" id="formAddQueue.priorities"
                               data-dojo-type="dijit/form/ValidationTextBox"
                               data-dojo-props="
                                  name: 'priorities',
                                  placeHolder: 'number of priorities',
                                  promptMessage: 'Number of priorities supported by the queue',
                                  title: 'Enter the number of priorities supported by the queue',
                                  trim: true"/>
                    </div>
                </div>
                <div class="clear"></div>
            </div>

            <div id="formAddQueueTypeLVQ:fields" class="hidden"
                 data-dojo-type="dijit.TitlePane" data-dojo-props="title: 'Last Value Queue Settings'">
                <div class="clear">
                    <div class="formLabel-labelCell">LVQ Message Property:</div>
                    <div class="formLabel-controlCell">
                        <input type="text" id="formAddQueue.lvqkey"
                               data-dojo-type="dijit/form/ValidationTextBox"
                               data-dojo-props="
                                  name: 'lvqKey',
                                  placeHolder: 'lvq key',
                                  promptMessage: 'Name of the message property used to perform the conflation',
                                  title: 'Enter the name of the message property used to perform the conflation',
                                  trim: true"/>
                    </div>
                </div>
                <div class="clear"></div>
            </div>

            <div id="formAddQueueTypeSorted:fields" class="hidden"
                 data-dojo-type="dijit.TitlePane" data-dojo-props="title: 'Sorted Queue Settings'">
                <div class="clear">
                    <div class="formLabel-labelCell">Sort Message Property*:</div>
                    <div class="formLabel-controlCell">
                        <input type="text" id="formAddQueue.sortkey"
                               data-dojo-type="dijit/form/ValidationTextBox"
                               data-dojo-props="
                                  name: 'sortKey',
                                  placeHolder: 'sort key',
                                  promptMessage: 'Name of the message property used for sorting the messages on the queue',
                                  title: 'Enter the name of the message property used for sorting the messages on the queue',
                                  trim: true"/>
                    </div>
                </div>
                <div class="clear"></div>
            </div>

            <br/>
            <div data-dojo-type="dijit.TitlePane" data-dojo-props="title: 'Flow Control Settings', open: false">
                <div class="clear">
                    <div class="formLabel-labelCell">Capacity:</div>
                    <div class="formLabel-controlCell">
                        <input type="text" id="formAddQueue.capacity"
                               data-dojo-type="dijit/form/ValidationTextBox"
                               data-dojo-props="
                                  name: 'queueFlowControlSizeBytes',
                                  placeHolder: 'size in bytes',
                                  promptMessage: 'Ceiling (in bytes) at which queue will begin to throttle sessions producing messages',
                                  title: 'Enter the ceiling (in bytes) at which queue will begin to throttle sessions producing messages',
                                  trim: true"/>
                    </div>
                </div>
                <div class="clear">
                    <div class="formLabel-labelCell">Resume Capacity:</div>
                    <div class="formLabel-controlCell">
                        <input type="text" id="formAddQueue.flowResumeCapacity"
                               data-dojo-type="dijit/form/ValidationTextBox"
                               data-dojo-props="
                                  name: 'queueFlowResumeSizeBytes',
                                  placeHolder: 'size in bytes',
                                  promptMessage: 'Floor (in bytes) at which queue will cease to throttle sessions producing messages',
                                  title: 'Enter the floor (in bytes) at which queue will cease to throttle sessions producing messages',
                                  trim: true"/>
                    </div>
                </div>
                <div class="clear"></div>
            </div>

            <br/>
            <div data-dojo-type="dijit.TitlePane" data-dojo-props="title: 'Alerting Settings', open: false">
                <div class="clear">
                    <div class="formLabel-labelCell">Queue Depth:</div>
                    <div class="formLabel-controlCell">
                        <input type="text" id="formAddQueue.maximumMessageCount"
                               data-dojo-type="dijit/form/ValidationTextBox"
                               data-dojo-props="
                                  name: 'alertThresholdQueueDepthMessages',
                                  placeHolder: 'number of messages',
                                  promptMessage: 'Ceiling value for number of messages on queue before alerts will be generated',
                                  title: 'Enter the ceiling value for number of messages on queue before alerts will be generated',
                                  trim: true"/>
                    </div>
                </div>
                <div class="clear">
                    <div class="formLabel-labelCell">Queue Depth:</div>
                    <div class="formLabel-controlCell">
                        <input type="text" id="formAddQueue.maximumQueueDepth"
                               data-dojo-type="dijit/form/ValidationTextBox"
                               data-dojo-props="
                                  name: 'alertThresholdQueueDepthBytes',
                                  placeHolder: 'total message size in bytes',
                                  promptMessage: 'Ceiling value (in bytes) for total size of all messages on the queue before alerts will be generated',
                                  title: 'Enter the ceiling value (in bytes) for total size of all messages on the queue before alerts will be generated',
                                  trim: true"/>
                    </div>
                </div>
                <div class="clear">
                    <div class="formLabel-labelCell">Message Age:</div>
                    <div class="formLabel-controlCell">
                        <input type="text" id="formAddQueue.maximumMessageAge"
                               data-dojo-type="dijit/form/ValidationTextBox"
                               data-dojo-props="
                                  name: 'alertThresholdMessageAge',
                                  placeHolder: 'time in ms',
                                  promptMessage: 'Message age (in milliseconds) above which alerts will be generated',
                                  title: 'Enter the message age (in milliseconds) above which alerts will be generated',
                                  trim: true"/>
                    </div>
                </div>
                <div class="clear">
                    <div class="formLabel-labelCell">Message Size:</div>
                    <div class="formLabel-controlCell">
                        <input type="text" id="formAddQueue.maximumMessageSize"
                               data-dojo-type="dijit/form/ValidationTextBox"
                               data-dojo-props="
                                  name: 'alertThresholdMessageSize',
                                  placeHolder: 'message size in bytes',
                                  promptMessage: 'Message size (in bytes) above which alerts will be generated',
                                  title: 'Enter the message size (in bytes) above which alerts will be generated',
                                  trim: true"/>
                    </div>
                </div>
                <div class="clear">
                    <div class="formLabel-labelCell">Gap between alerts:</div>
                    <div class="formLabel-controlCell">
                        <input type="text" id="formAddQueue.alertRepeatGap"
                               data-dojo-type="dijit/form/ValidationTextBox"
                               data-dojo-props="
                                  name: 'alertRepeatGap',
                                  placeHolder: 'time in ms',
                                  promptMessage: 'Minimum time (in milliseconds) between each alert',
                                  title: 'Enter the minimum time (in milliseconds) between each alert.',
                                  trim: true"/>
                    </div>
                </div>
                <div class="clear"></div>
            </div>

            <br/>
            <div data-dojo-type="dijit.TitlePane" data-dojo-props="title: 'Other Settings', open: false">
                <div class="clear">
                    <div class="formLabel-labelCell">Maximum Delivery Retries:</div>
                    <div class="formLabel-controlCell">
                        <input type="text" id="formAddQueue.maximumDeliveryAttempts"
                               data-dojo-type="dijit/form/ValidationTextBox"
                               data-dojo-props="
                                  name: 'maximumDeliveryAttempts',
                                  placeHolder: 'number of retries',
                                  promptMessage: 'Maximum number of delivery attempts before the message will be sent to the alternate exchange',
                                  title: 'Enter the maximum number of delivery attempts before the message will be sent to the alternate exchange',
                                  trim: true"/>
                    </div>
                </div>
                <div class="clear">
                    <div class="formLabel-labelCell">Create DLQ?</div>
                    <div class="formLabel-controlCell">
                        <input type="checkbox" id="formAddQueue.dlqEnabled"
                               dojoType="dijit.form.CheckBox"
                               data-dojo-props="
                              name: 'dlqEnabled',
                              value: 'dlqEnabled',
                              title: 'Controls where a dead letter queue is automatically created',
                              checked: false"/>
                    </div>
                </div>

                <div class="clear"></div>
                <div class="infoMessage">Configuring maximum delivery retries on a queue which has no DLQ or alternate <br/>exchange will result in messages being discarded after the limit is reached.</div>

                <div class="clear">
                    <div class="formLabel-labelCell">Message Group Key:</div>
                    <div class="formLabel-controlCell">
                        <input type="text" id="formAddQueue.messageGroupKey"
                               data-dojo-type="dijit/form/ValidationTextBox"
                               data-dojo-props="
                                  name: 'messageGroupKey',
                                  placeHolder: 'message group key',
                                  promptMessage: 'Name of the message property used for message grouping',
                                  title: 'Enter the name of the message property used for message grouping',
                                  trim: true"/>
                    </div>
                </div>
                <div class="clear">
                    <div class="formLabel-labelCell">Shared Message Groups?</div>
                    <div class="formLabel-controlCell">
                        <input type="checkbox" id="formAddQueue.messageGroupSharedGroups"
                               dojoType="dijit.form.CheckBox"
                               data-dojo-props="
                              name: 'messageGroupSharedGroups',
                              value: 'messageGroupSharedGroups',
                              checked: false,
                              title: 'Controls where a shared groups feature is enabled'"/>
                    </div>
                </div>
                <div class="clear"></div>
            </div>

          <div class="dijitDialogPaneActionBar">
            <!-- submit buttons -->
            <input type="submit" value="Create Queue" label="Create Queue" dojoType="dijit.form.Button" />
          </div>

        </form>
    </div>
</div>