Return-Path: X-Original-To: apmail-ignite-commits-archive@minotaur.apache.org Delivered-To: apmail-ignite-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 758AF180B1 for ; Tue, 18 Aug 2015 08:15:39 +0000 (UTC) Received: (qmail 84761 invoked by uid 500); 18 Aug 2015 08:15:36 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 84729 invoked by uid 500); 18 Aug 2015 08:15:36 -0000 Mailing-List: contact commits-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.incubator.apache.org Delivered-To: mailing list commits@ignite.incubator.apache.org Received: (qmail 84720 invoked by uid 99); 18 Aug 2015 08:15:36 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2015 08:15:36 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id E6A05C0BCF for ; Tue, 18 Aug 2015 08:15:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.795 X-Spam-Level: * X-Spam-Status: No, score=1.795 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.006, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id h0RwJPcNeAmP for ; Tue, 18 Aug 2015 08:15:25 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id D32E642B21 for ; Tue, 18 Aug 2015 08:15:24 +0000 (UTC) Received: (qmail 84590 invoked by uid 99); 18 Aug 2015 08:15:24 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2015 08:15:24 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 3852BDFFED; Tue, 18 Aug 2015 08:15:24 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: akuznetsov@apache.org To: commits@ignite.incubator.apache.org Date: Tue, 18 Aug 2015 08:15:25 -0000 Message-Id: In-Reply-To: <60ad8d2231944899a3ca3b2329ee3bcf@git.apache.org> References: <60ad8d2231944899a3ca3b2329ee3bcf@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/2] incubator-ignite git commit: IGNITE-843: Move write behind to sub group of Store group. IGNITE-843: Move write behind to sub group of Store group. Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/dc2cee3d Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/dc2cee3d Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/dc2cee3d Branch: refs/heads/ignite-843 Commit: dc2cee3d7141e2b3843b39db4bad11a6cf73cee2 Parents: a3d2f82 Author: AKuznetsov Authored: Tue Aug 18 15:15:40 2015 +0700 Committer: AKuznetsov Committed: Tue Aug 18 15:15:40 2015 +0700 ---------------------------------------------------------------------- .../src/main/js/controllers/models/caches.json | 119 ++++++++++--------- .../src/main/js/views/includes/controls.jade | 20 +++- 2 files changed, 75 insertions(+), 64 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/dc2cee3d/modules/control-center-web/src/main/js/controllers/models/caches.json ---------------------------------------------------------------------- diff --git a/modules/control-center-web/src/main/js/controllers/models/caches.json b/modules/control-center-web/src/main/js/controllers/models/caches.json index c0bff96..b34dcea 100644 --- a/modules/control-center-web/src/main/js/controllers/models/caches.json +++ b/modules/control-center-web/src/main/js/controllers/models/caches.json @@ -599,6 +599,66 @@ "tip": [ "Flag indicating whether write-through caching should be used." ] + }, + { + "label": "Write behind", + "type": "panel-details", + "tip": [ + "Cache write behind settings.", + "Write-behind is a special mode when updates to cache accumulated and then asynchronously flushed to persistent store as a bulk operation." + ], + "details": [ + { + "label": "Enabled", + "type": "check", + "model": "writeBehindEnabled", + "tip": [ + "Flag indicating whether Ignite should use write-behind behaviour for the cache store." + ] + }, + { + "label": "Batch size", + "type": "number", + "model": "writeBehindBatchSize", + "disabled": "!backupItem.writeBehindEnabled", + "placeholder": 512, + "tip": [ + "Maximum batch size for write-behind cache store operations.", + "Store operations (get or remove) are combined in a batch of this size to be passed to cache store." + ] + }, + { + "label": "Flush size", + "type": "number", + "model": "writeBehindFlushSize", + "disabled": "!backupItem.writeBehindEnabled", + "placeholder": 10240, + "tip": [ + "Maximum size of the write-behind cache.
", + "If cache size exceeds this value, all cached items are flushed to the cache store and write cache is cleared." + ] + }, + { + "label": "Flush frequency", + "type": "number", + "model": "writeBehindFlushFrequency", + "disabled": "!backupItem.writeBehindEnabled", + "placeholder": 5000, + "tip": [ + "Frequency with which write-behind cache is flushed to the cache store in milliseconds." + ] + }, + { + "label": "Flush threads count", + "type": "number", + "model": "writeBehindFlushThreadCount", + "disabled": "!backupItem.writeBehindEnabled", + "placeholder": 1, + "tip": [ + "Number of threads that will perform cache flushing." + ] + } + ] } ] } @@ -915,65 +975,6 @@ ] } ] - }, - { - "label": "Write behind", - "tip": [ - "Cache write behind settings.", - "Write-behind is a special mode when updates to cache accumulated and then asynchronously flushed to persistent store as a bulk operation." - ], - "fields": [ - { - "label": "Enabled", - "type": "check", - "model": "writeBehindEnabled", - "tip": [ - "Flag indicating whether Ignite should use write-behind behaviour for the cache store." - ] - }, - { - "label": "Batch size", - "type": "number", - "model": "writeBehindBatchSize", - "hide": "!backupItem.writeBehindEnabled", - "placeholder": 512, - "tip": [ - "Maximum batch size for write-behind cache store operations.", - "Store operations (get or remove) are combined in a batch of this size to be passed to cache store." - ] - }, - { - "label": "Flush size", - "type": "number", - "model": "writeBehindFlushSize", - "hide": "!backupItem.writeBehindEnabled", - "placeholder": 10240, - "tip": [ - "Maximum size of the write-behind cache.
", - "If cache size exceeds this value, all cached items are flushed to the cache store and write cache is cleared." - ] - }, - { - "label": "Flush frequency", - "type": "number", - "model": "writeBehindFlushFrequency", - "hide": "!backupItem.writeBehindEnabled", - "placeholder": 5000, - "tip": [ - "Frequency with which write-behind cache is flushed to the cache store in milliseconds." - ] - }, - { - "label": "Flush threads count", - "type": "number", - "model": "writeBehindFlushThreadCount", - "hide": "!backupItem.writeBehindEnabled", - "placeholder": 1, - "tip": [ - "Number of threads that will perform cache flushing." - ] - } - ] } ] } http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/dc2cee3d/modules/control-center-web/src/main/js/views/includes/controls.jade ---------------------------------------------------------------------- diff --git a/modules/control-center-web/src/main/js/views/includes/controls.jade b/modules/control-center-web/src/main/js/views/includes/controls.jade index 0a47b90..4308eea 100644 --- a/modules/control-center-web/src/main/js/views/includes/controls.jade +++ b/modules/control-center-web/src/main/js/views/includes/controls.jade @@ -113,6 +113,7 @@ mixin details-row - var detailMdl = 'getModel(backupItem, detail)[detail.model]'; - var detailCommon = {'ng-model': detailMdl, 'ng-required': 'detail.required'}; + - var detailDisabled = '{{detail.disable}}' - var customValidators = {'ng-attr-ipaddress': '{{detail.ipaddress}}'} @@ -135,7 +136,7 @@ mixin details-row .col-sm-8 +tipField('detail.tip') .input-tip - input.form-control(name='{{detail.model}}' type='number' placeholder='{{::detail.placeholder}}' min='{{detail.min ? detail.min : 0}}' max='{{detail.max ? detail.max : Number.MAX_VALUE}}')&attributes(detailCommon) + input.form-control(name='{{detail.model}}' type='number' ng-disabled=detailDisabled placeholder='{{::detail.placeholder}}' min='{{detail.min ? detail.min : 0}}' max='{{detail.max ? detail.max : Number.MAX_VALUE}}')&attributes(detailCommon) +ico-exclamation('{{detail.model}}', 'min', 'Value is less than allowable minimum.') +ico-exclamation('{{detail.model}}', 'max', 'Value is more than allowable maximum.') +ico-exclamation('{{detail.model}}', 'number', 'Invalid value. Only numbers allowed.') @@ -253,13 +254,14 @@ mixin form-row-custom(lblClasses, fieldClasses, dataSource) - var fieldCommon = {'ng-model': fieldMdl, 'ng-required': 'field.required || required(field)'}; - var fieldRequiredClass = '{true: "required"}[field.required || required(field)]' - var fieldHide = '{{field.hide}}' + - var fieldDisabled = '{{field.disabled}}' div(ng-switch='field.type') div(ng-switch-when='label') label {{::field.label}} div.checkbox(ng-switch-when='check' ng-hide=fieldHide) label(id = '{{::field.id}}') - input(type='checkbox')&attributes(fieldCommon) + input(type='checkbox' ng-disabled=fieldDisabled)&attributes(fieldCommon) | {{::field.label}} +tipLabel('field.tip') div(ng-switch-when='text' ng-hide=fieldHide) @@ -285,7 +287,7 @@ mixin form-row-custom(lblClasses, fieldClasses, dataSource) div(class=fieldClasses) +tipField('field.tip') .input-tip - input.form-control(name='{{field.model}}' type='number' placeholder='{{::field.placeholder}}' ng-focus='tableReset()' min='{{field.min ? field.min : 0}}' max='{{field.max ? field.max : Number.MAX_VALUE}}')&attributes(fieldCommon) + input.form-control(name='{{field.model}}' type='number' ng-disabled=fieldDisabled placeholder='{{::field.placeholder}}' ng-focus='tableReset()' min='{{field.min ? field.min : 0}}' max='{{field.max ? field.max : Number.MAX_VALUE}}')&attributes(fieldCommon) +ico-exclamation('{{field.model}}', 'min', 'Value is less than allowable minimum.') +ico-exclamation('{{field.model}}', 'max', 'Value is more than allowable maximum.') +ico-exclamation('{{field.model}}', 'number', 'Invalid value. Only numbers allowed.') @@ -294,7 +296,7 @@ mixin form-row-custom(lblClasses, fieldClasses, dataSource) div(class=fieldClasses) +tipField('field.tip') .input-tip - button.form-control(bs-select data-placeholder='{{::field.placeholder}}' bs-options='item.value as item.label for item in {{field.items}}' tabindex='0')&attributes(fieldCommon) + button.form-control(bs-select ng-disabled=fieldDisabled data-placeholder='{{::field.placeholder}}' bs-options='item.value as item.label for item in {{field.items}}' tabindex='0')&attributes(fieldCommon) div(ng-switch-when='dropdown-multiple' ng-hide=fieldHide) label(class=lblClasses ng-class=fieldRequiredClass) {{::field.label}}: div(class=fieldClasses) @@ -309,11 +311,19 @@ mixin form-row-custom(lblClasses, fieldClasses, dataSource) div(class=fieldClasses id='{{::field.id}}') +tipField('field.tip') .input-tip - button.form-control(bs-select data-placeholder='{{::field.placeholder}}' bs-options='item.value as item.label for item in {{field.items}}' tabindex='0')&attributes(fieldCommon) + button.form-control(bs-select ng-disabled=fieldDisabled data-placeholder='{{::field.placeholder}}' bs-options='item.value as item.label for item in {{field.items}}' tabindex='0')&attributes(fieldCommon) a.customize(ng-show='#{fieldMdl} && field.settings' ng-click='#{expanded} = !#{expanded}') {{#{expanded} ? "Hide settings" : "Show settings"}} .col-sm-7.panel-details(ng-show='(#{expanded} || !field.settings) && #{fieldMdl}') .details-row(ng-repeat='detail in field.details[#{fieldMdl}].fields') +details-row + .section(ng-switch-when='panel-details' ng-hide=fieldHide)&attributes(fieldCommon) + .col-sm-7.group + .group-legend + label {{::field.label}}: + +group-tip('field.tip') + .group-content + .details-row(ng-repeat='detail in field.details') + +details-row .group-section(ng-switch-when='table-simple' ng-hide=fieldHide)&attributes(fieldCommon) .col-sm-7.group .group-legend