| {{! |
| * 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="row"> |
| <div class="span6 host-configuration"> |
| <div class="box"> |
| <div class="box-header"> |
| <h4>Summary</h4> |
| </div> |
| <div class="host-summary-content"> |
| <dl class="dl-horizontal"> |
| <dt>IP:</dt><dd> {{view.content.ip}}</dd> |
| <dt>CPU:</dt><dd> {{view.content.cpu}}</dd> |
| <dt>OS:</dt><dd> {{view.content.osType}} ({{view.content.osArch}})</dd> |
| <dt>Disk Usage:</dt><dd> {{view.content.diskUsage}}</dd> |
| <dt>Memory:</dt><dd> {{view.content.memoryFormatted}}</dd> |
| <dt>Load Avg:</dt><dd> {{view.content.loadAvg}}</dd> |
| <dt>Agent:</dt><dd>{{view.timeSinceHeartBeat}}</dd> |
| </dl> |
| </div> |
| </div> |
| </div> |
| {{#if view.content.components.length}} |
| <div class="span3 host-components pull-right"> |
| {{#each component in view.content.components}} |
| {{#view view.ComponentButtonView contentBinding="component"}} |
| {{#if view.isClient}} |
| <div class="btn-group pull-left"> |
| <button class="btn"> |
| {{unbound view.content.displayName}} |
| </button> |
| </div> |
| {{else}} |
| <div {{bindAttr class=":btn-group :pull-left"}}> |
| <button {{bindAttr class=":component-operation-button :btn :dropdown-toggle view.disabledClass"}} data-toggle="dropdown"> |
| <span {{bindAttr class=":components-health view.indicatorClass"}}></span> |
| {{unbound view.content.displayName}} |
| <span class="caret"></span> |
| </button> |
| <ul class="dropdown-menu"> |
| {{#if view.isDataNode}} |
| <li {{bindAttr class="view.content.decommissioned:hidden:"}}> |
| <a href="javascript:void(null)" data-toggle="modal" {{action "decommission" view.content target="controller"}}> |
| Decommission |
| </a> |
| </li> |
| <li {{bindAttr class="view.content.decommissioned::hidden"}}> |
| <a href="javascript:void(null)" data-toggle="modal" {{action "recommission" view.content target="controller"}}> |
| Recommission |
| </a> |
| </li> |
| {{/if}} |
| <li {{bindAttr class="view.componentCheckStatus::hidden"}}> |
| <a href="javascript:void(null)" data-toggle="modal" {{action "stopComponent" view.content target="controller"}}> |
| Stop |
| </a> |
| </li> |
| <li {{bindAttr class="view.componentCheckStatus:hidden:"}}> |
| <a href="javascript:void(null)" data-toggle="modal" {{action "startComponent" view.content target="controller"}}> |
| Start |
| </a> |
| </li> |
| </ul> |
| </div> |
| {{/if}} |
| {{/view}} |
| {{/each}} |
| </div> |
| {{/if}} |
| </div> |
| <div class="row-fluid"> |
| <div class="span12"> |
| <div class="box"> |
| <div class="box-header"> |
| <h4>Host Metrics</h4> |
| <div class="btn-group"> |
| <a class="btn" rel="tooltip" title="Go to Ganglia" {{action "showGangliaCharts" target="view"}}><i class="icon-link"></i></a> |
| </div> |
| </div> |
| <div class="row-fluid"> |
| {{view App.MainHostMetricsView contentBinding="view.content"}} |
| </div> |
| </div> |
| </div> |
| </div> |