Author: kwall
Date: Tue Nov 24 15:02:17 2015
New Revision: 1716153
URL: http://svn.apache.org/viewvc?rev=1716153&view=rev
Log:
QPID-6887: [Web Management Console] Add UI for Logback Socket Logger
Added:
qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/brokerlogger/brokerlogbacksocket/
qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/brokerlogger/brokerlogbacksocket/add.js
qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/brokerlogger/brokerlogbacksocket/show.js
qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/logger/brokerlogbacksocket/
qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/logger/brokerlogbacksocket/add.html
qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/logger/brokerlogbacksocket/show.html
Added:
qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/brokerlogger/brokerlogbacksocket/add.js
URL:
http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/brokerlogger/brokerlogbacksocket/add.js?rev=1716153&view=auto
==============================================================================
---
qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/brokerlogger/brokerlogbacksocket/add.js
(added)
+++
qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/brokerlogger/brokerlogbacksocket/add.js
Tue Nov 24 15:02:17 2015
@@ -0,0 +1,41 @@
+/*
+ * 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.
+ *
+ */
+define(["dojo/dom",
+ "dojo/query",
+ "dojo/_base/array",
+ "dijit/registry",
+ "qpid/common/util",
+ "dojo/parser",
+ "dojo/text!logger/brokerlogbacksocket/add.html",
+ "dojo/domReady!"],
+ function (dom, query, array, registry, util, parser, template)
+ {
+ var addLogbackLogger =
+ {
+ show: function(data)
+ {
+ data.containerNode.innerHTML = template;
+ return parser.parse(data.containerNode);
+ }
+ };
+
+ return addLogbackLogger;
+ }
+);
Added:
qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/brokerlogger/brokerlogbacksocket/show.js
URL:
http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/brokerlogger/brokerlogbacksocket/show.js?rev=1716153&view=auto
==============================================================================
---
qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/brokerlogger/brokerlogbacksocket/show.js
(added)
+++
qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/logger/brokerlogger/brokerlogbacksocket/show.js
Tue Nov 24 15:02:17 2015
@@ -0,0 +1,40 @@
+/*
+ * 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.
+ *
+ */
+define(["qpid/common/util",
+ "dojo/text!logger/brokerlogbacksocket/show.html",
+ "qpid/common/TypeTabExtension",
+ "dojo/domReady!"],
+ function (util, template, TypeTabExtension)
+ {
+ function BrokerLogbackLogger(params)
+ {
+ TypeTabExtension.call(this, params.containerNode, template,
"BrokerLogger", "BrokerLogbackSocket", params.metadata, params.data);
+ }
+
+ util.extend(BrokerLogbackLogger, TypeTabExtension);
+
+ BrokerLogbackLogger.prototype.update = function (restData)
+ {
+ TypeTabExtension.prototype.update.call(this, restData);
+ }
+
+ return BrokerLogbackLogger;
+ }
+);
Added:
qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/logger/brokerlogbacksocket/add.html
URL:
http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/logger/brokerlogbacksocket/add.html?rev=1716153&view=auto
==============================================================================
---
qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/logger/brokerlogbacksocket/add.html
(added)
+++
qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/logger/brokerlogbacksocket/add.html
Tue Nov 24 15:02:17 2015
@@ -0,0 +1,73 @@
+<!--
+ ~ 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>
+ <div class="clear">
+ <div class="formLabel-labelCell tableContainer-labelCell">Remote
Host:</div>
+ <div class="formLabel-controlCell tableContainer-valueCell">
+ <input type="text" id="addLogger.remoteHost"
+ data-dojo-type="dijit/form/ValidationTextBox"
+ data-dojo-props="
+ name: 'remoteHost',
+ placeHolder: 'localhost',
+ promptMessage: 'Enter the host where the logback
server is running',
+ title: 'Enter the host where the logback server
is running'"/>
+ </div>
+ </div>
+ <div class="clear">
+ <div class="formLabel-labelCell tableContainer-labelCell">Port*:</div>
+ <div class="formLabel-controlCell tableContainer-valueCell">
+ <input type="text" id="addLogger.port"
+ data-dojo-type="dijit/form/NumberTextBox"
+ data-dojo-props="
+ name: 'port',
+ required: true,
+ placeHolder: '6000',
+ promptMessage: 'Enter the port number on which
the logback server runs',
+ title: 'Port number on which the logback server
runs'"/>
+ </div>
+ </div>
+ <div class="clear">
+ <div class="formLabel-labelCell tableContainer-labelCell">Reconnection
delay:</div>
+ <div class="formLabel-controlCell tableContainer-valueCell">
+ <input type="text" id="addLogger.reconnectionDelay"
+ data-dojo-type="dijit/form/NumberTextBox"
+ data-dojo-props="
+ name: 'reconnectionDelay',
+ placeHolder: '100',
+ promptMessage: 'Enter the reconnection delay',
+ title: 'Specifies the number of milliseconds to
wait before attempting to reconnect after a connection failure'"/>
+ </div>
+ </div>
+ <div class="clear">
+ <div class="formLabel-labelCell tableContainer-labelCell">Include
Caller Data:</div>
+ <div class="formLabel-controlCell tableContainer-valueCell">
+ <input type="checkbox" id="addLogger.includeCallerData"
+ data-dojo-type="dijit/form/CheckBox"
+ data-dojo-props="
+ name: 'includeCallerData',
+ checked: true"/>
+ <div data-dojo-type="dijit/Tooltip"
+ data-dojo-props="connectId: ['addLogger.includeCallerData'],
+ label: 'If selected, the caller data
will be available to the remote host.'">
+ </div>
+ </div>
+ </div>
+</div>
Added:
qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/logger/brokerlogbacksocket/show.html
URL:
http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/logger/brokerlogbacksocket/show.html?rev=1716153&view=auto
==============================================================================
---
qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/logger/brokerlogbacksocket/show.html
(added)
+++
qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/logger/brokerlogbacksocket/show.html
Tue Nov 24 15:02:17 2015
@@ -0,0 +1,37 @@
+<!--
+ ~ 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>
+ <div class="clear">
+ <div class="formLabel-labelCell">Remote Host:</div>
+ <div class="remoteHost formValue-valueCell"></div>
+ </div>
+ <div class="clear">
+ <div class="formLabel-labelCell">Port:</div>
+ <div class="port formValue-valueCell"></div>
+ </div>
+ <div class="clear">
+ <div class="formLabel-labelCell">Reconnection delay:</div>
+ <div class="reconnectionDelay formValue-valueCell"></div>
+ </div>
+ <div class="clear">
+ <div class="formLabel-labelCell">Include Caller Data:</div>
+ <div class="includeCallerData formValue-valueCell"></div>
+ </div>
+</div>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]