anchor.diff:  pageContext.setAttribute("sortColumn", sortColumn);
   pageContext.setAttribute("sortOrder", sortOrder);
   pageContext.setAttribute("searchString",searchString);
  -
  -
  -
   %>
   
  -<body>
   <c:set var="nan" value="<%=java.lang.Double.NaN%>"/>
  -<h3>Filtering</h3>
  -
  -<form id="ILRfilter" action="admin/nodemanagement/instrumentationLogReader.jsp" method="get" style="display:inline">
  -	<input type="text" name="searchString" size="15" value="${searchString}"/>
  -	<input type="submit" value="Submit"/>
  -</form>
  -
  -<form id="ILRreset" action="admin/nodemanagement/instrumentationLogReader.jsp" method="get" style="display:inline">
  -	<input type="hidden" name="searchString" value=""/>
  -	<input type="submit" value="Reset"/>
  -</form>
   
   <c:choose>
   	<c:when test="${filesMatched == 0}">
  
positive.code: <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
  <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
  
  
  
  <jsp:include page="/includes/header.jsp" flush="false" >
    <jsp:param name="title" value="Instrumentation Log Reader" />
    <jsp:param name="headTitle" value="Instrumentation Log Reader" />
    <jsp:param name="location" value="Instrumentation Log Reader" />  
    <jsp:param name="breadcrumb" value="Instrumentation Log Reader" />
  </jsp:include>
  
  
  
  
  <%
  
  
negative.code: 	</c:when>
  </c:choose>
  
  <div class="row">
    <div class="col-md-4">
      <div class="panel panel-default">
        <div class="panel-heading">
          <h3 class="panel-title">Instrumentation Log Statistics</h3>
        </div>
        <div class="panel-body">
          <p>
          Start time: ${collector.startTime == null ? "N/A" : collector.startTime}
          </p>
          <p>
          End time: ${collector.endTime == null ? "N/A" : collector.endTime}
          </p>
          <p>
          Duration: ${collector.formattedDuration}
          </p>
          <p>
          Total Services: ${collector.serviceCount}
          </p>
          <p>
          Threads Used: ${collector.threadCount}
          </p>
          
          <c:if test="${collector.startTime == null && collector.endTime == null}">
          <p>
          No service collector data is available. Be sure that the <strong>Collectd</strong> and
          <strong>Instrumentation</strong> appenders are set to log at <strong>INFO</strong> in
          the <em>log4j2.xml</em> configuration file.
          </p>
          </c:if>
        </div> <!-- panel-body -->
      </div> <!-- panel -->
    </div> <!-- column -->
  </div> <!-- row -->
  
  <div class="row">
    <div class="col-md-4">
      <div class="panel panel-default">
        <div class="panel-heading">
          <h3 class="panel-title">Filtering</h3>
        </div>
        <div class="panel-body">
          <form id="ILRfilter" action="admin/nodemanagement/instrumentationLogReader.jsp" method="get" style="display:inline">
            <input type="text" class="form-control" name="searchString" size="15" value="${searchString}"/>
            <button type="submit" class="btn btn-default">Submit</button>
          </form>
          <form id="ILRreset" action="admin/nodemanagement/instrumentationLogReader.jsp" method="get" style="display:inline">
            <input type="hidden" name="searchString" value=""/>
            <button type="submit" class="btn btn-default">Reset</button>
          </form>
        </div> <!-- panel-body -->
      </div> <!-- panel -->
    </div> <!-- column -->
  </div> <!-- row -->
  
  <div class="row">
    <div class="col-md-12">
      <table class="table table-condensed table-striped">
        <tr>
        <th>Service</th>
        <c:choose>
        	<c:when test="${sortColumn == 'TOTALCOLLECTS' && sortOrder == 'DESCENDING'}">
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=TOTALCOLLECTS&sortOrder=ASCENDING&&searchString=${searchString}">Collections ^</a></th>
        	</c:when>
        	<c:when test="${sortColumn != 'TOTALCOLLECTS'}">
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=TOTALCOLLECTS&sortOrder=DESCENDING&&searchString=${searchString}">Collections</a></th>
        	</c:when>
        	<c:otherwise>
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=TOTALCOLLECTS&sortOrder=DESCENDING&&searchString=${searchString}">Collections v</a></th>
        	</c:otherwise>
        </c:choose>
    
        <c:choose>
        	<c:when test="${sortColumn == 'AVGCOLLECTTIME' && sortOrder == 'DESCENDING'}">
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=AVGCOLLECTTIME&sortOrder=ASCENDING&&searchString=${searchString}">Average Collection Time ^</a></th>
        	</c:when>
        	<c:when test="${sortColumn != 'AVGCOLLECTTIME'}">
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=AVGCOLLECTTIME&sortOrder=DESCENDING&&searchString=${searchString}">Average Collection Time</a></th>
        	</c:when>
        	<c:otherwise>
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=AVGCOLLECTTIME&sortOrder=DESCENDING&&searchString=${searchString}">Average Collection Time v</a></th>
        	</c:otherwise>	
        </c:choose>
    
        <c:choose>
        	<c:when test="${sortColumn == 'AVGTIMEBETWEENCOLLECTS' && sortOrder == 'DESCENDING'}">
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=AVGTIMEBETWEENCOLLECTS&sortOrder=ASCENDING&&searchString=${searchString}">Average Time Between Collections ^</a></th>
        	</c:when>
        	<c:when test="${sortColumn != 'AVGTIMEBETWEENCOLLECTS'}">
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=AVGTIMEBETWEENCOLLECTS&sortOrder=DESCENDING&&searchString=${searchString}">Average Time Between Collections</a></th>
        	</c:when>
        	<c:otherwise>
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=AVGTIMEBETWEENCOLLECTS&sortOrder=DESCENDING&&searchString=${searchString}">Average Time Between Collections v</a></th>
        	</c:otherwise>
        </c:choose>
    
        <c:choose>
        	<c:when test="${sortColumn == 'TOTALSUCCESSCOLLECTS' && sortOrder == 'DESCENDING'}">
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=TOTALSUCCESSCOLLECTS&sortOrder=ASCENDING&&searchString=${searchString}">Successful Collections ^</a></th>
        	</c:when>
        	<c:when test="${sortColumn != 'TOTALSUCCESSCOLLECTS'}">
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=TOTALSUCCESSCOLLECTS&sortOrder=DESCENDING&&searchString=${searchString}">Successful Collections</a></th>
        	</c:when>
        	<c:otherwise>
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=TOTALSUCCESSCOLLECTS&sortOrder=DESCENDING&&searchString=${searchString}">Successful Collections v</a></th>
        	</c:otherwise>
        </c:choose>
    
        <c:choose>
        	<c:when test="${sortColumn == 'SUCCESSPERCENTAGE' && sortOrder == 'DESCENDING'}">
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=SUCCESSPERCENTAGE&sortOrder=ASCENDING&&searchString=${searchString}">Successful Percentage ^</a></th>
        	</c:when>
        	<c:when test="${sortColumn != 'SUCCESSPERCENTAGE'}">
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=SUCCESSPERCENTAGE&sortOrder=DESCENDING&&searchString=${searchString}">Successful Percentage</a></th>
        	</c:when>
        	<c:otherwise>
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=SUCCESSPERCENTAGE&sortOrder=DESCENDING&&searchString=${searchString}">Successful Percentage v</a></th>
        	</c:otherwise>
        </c:choose>
    
        <c:choose>
        	<c:when test="${sortColumn == 'AVGSUCCESSCOLLECTTIME' && sortOrder == 'DESCENDING'}">
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=AVGSUCCESSCOLLECTTIME&sortOrder=ASCENDING&&searchString=${searchString}">Average Successful Collection Time ^</a></th>
        	</c:when>
        	<c:when test="${sortColumn !='AVGSUCCESSCOLLECTTIME'}">
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=AVGSUCCESSCOLLECTTIME&sortOrder=DESCENDING&&searchString=${searchString}">Average Successful Collection Time</a></th>
        	</c:when>
        	<c:otherwise>
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=AVGSUCCESSCOLLECTTIME&sortOrder=DESCENDING&&searchString=${searchString}">Average Successful Collection Time v</a></th>
        	</c:otherwise>
        </c:choose>
    
        <c:choose>
        	<c:when test="${sortColumn == 'TOTALUNSUCCESSCOLLECTS' && sortOrder == 'DESCENDING'}">
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=TOTALUNSUCCESSCOLLECTS&sortOrder=ASCENDING&&searchString=${searchString}">Unsuccessful Collections ^</a></th>
        	</c:when>
        	<c:when test="${sortColumn != 'TOTALUNSUCCESSCOLLECTS'}">
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=TOTALUNSUCCESSCOLLECTS&sortOrder=DESCENDING&&searchString=${searchString}">Unsuccessful Collections</a></th>
        	</c:when>
        	<c:otherwise>
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=TOTALUNSUCCESSCOLLECTS&sortOrder=DESCENDING&&searchString=${searchString}">Unsuccessful Collections v</a></th>
        	</c:otherwise>
        </c:choose>	
    
        <c:choose>	
        	<c:when test="${sortColumn == 'UNSUCCESSPERCENTAGE' && sortOrder == 'DESCENDING'}">
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=UNSUCCESSPERCENTAGE&sortOrder=ASCENDING&&searchString=${searchString}">Unsuccessful Percentage ^</a></th>
        	</c:when>
        	<c:when test="${sortColumn != 'UNSUCCESSPERCENTAGE'}">
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=UNSUCCESSPERCENTAGE&sortOrder=DESCENDING&&searchString=${searchString}">Unsuccessful Percentage</a></th>
        	</c:when>
        	<c:otherwise>
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=UNSUCCESSPERCENTAGE&sortOrder=DESCENDING&&searchString=${searchString}">Unsuccessful Percentage v</a></th>
        	</c:otherwise>
        </c:choose>
    
        <c:choose>
        	<c:when test="${sortColumn == 'AVGUNSUCCESSCOLLECTTIME' && sortOrder == 'DESCENDING'}">
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=AVGUNSUCCESSCOLLECTTIME&sortOrder=ASCENDING&&searchString=${searchString}">Average Unsuccessful Collection Time ^</a></th>
        	</c:when>
        	<c:when test="${sortColumn != 'AVGUNSUCCESSCOLLECTTIME'}">
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=AVGUNSUCCESSCOLLECTTIME&sortOrder=DESCENDING&&searchString=${searchString}">Average Unsuccessful Collection Time</a></th>
        	</c:when>
        	<c:otherwise>
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=AVGUNSUCCESSCOLLECTTIME&sortOrder=DESCENDING&&searchString=${searchString}">Average Unsuccessful Collection Time v</a></th>
        	</c:otherwise>
        </c:choose>
    
        <c:choose>
        	<c:when test="${sortColumn == 'AVERAGEPERSISTTIME' && sortOrder == 'DESCENDING'}">
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=AVERAGEPERSISTTIME&sortOrder=ASCENDING&&searchString=${searchString}">Average Persistence Time ^</a></th>
        	</c:when>
        	<c:when test="${sortColumn != 'AVERAGEPERSISTTIME'}">
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=AVERAGEPERSISTTIME&sortOrder=DESCENDING&&searchString=${searchString}">Average Persistence Time</a></th>
        	</c:when>
        	<c:otherwise>
        	<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=AVERAGEPERSISTTIME&sortOrder=DESCENDING&&searchString=${searchString}">Average Persistence Time v</a></th>
        	</c:otherwise>
        </c:choose>
    
        <c:choose>
        	<c:when test="${sortColumn == 'TOTALPERSISTTIME' && sortOrder == 'DESCENDING'}">
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=TOTALPERSISTTIME&sortOrder=ASCENDING&&searchString=${searchString}">Total Persistence Time ^</a></th>
        	</c:when>
        	<c:when test="${sortColumn != 'TOTALPERSISTTIME'}">
        		<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=TOTALPERSISTTIME&sortOrder=DESCENDING&&searchString=${searchString}">Total Persistence Time</a></th>
        	</c:when>
        	<c:otherwise>
        	<th><a href="admin/nodemanagement/instrumentationLogReader.jsp?sortColumn=TOTALPERSISTTIME&sortOrder=DESCENDING&&searchString=${searchString}">Total Persistence Time v</a></th>
        	</c:otherwise>
        </c:choose>
        </tr>
    
        <c:forEach var="svcCollector" items="${collector.serviceCollectors}">
        <c:choose>
            <c:when test="${svcCollector.successPercentage > 50}" >
                <tr class="Normal">
            </c:when>
            <c:when test="${svcCollector.successPercentage == -1}" >
                <tr class="Warning">
            </c:when>
            <c:otherwise>
                <tr class="Critical">
            </c:otherwise>
        </c:choose>
        <td><a href="element/node.jsp?node=${svcCollector.parsedServiceID}">${svcCollector.serviceID}</a></td>
        <td align="right">${svcCollector.collectionCount}</td>
        <td align="right">${svcCollector.averageCollectionDuration}</td>
        <td align="right">${svcCollector.averageDurationBetweenCollections}</td>
        <td align="right">${svcCollector.successfulCollectionCount}</td>
        <c:choose>
            <c:when test="${svcCollector.successPercentage == -1}" >
                <td align="right">No Collections</td>
            </c:when>
            <c:otherwise>
                <td align="right"><fmt:formatNumber type="number" maxFractionDigits="1" minFractionDigits="1" value="${svcCollector.successPercentage}" /></td>
            </c:otherwise>
        </c:choose>
        <td align="right">${svcCollector.averageSuccessfulCollectionDuration}</td>
        <td align="right">${svcCollector.errorCollectionCount}</td>
        <c:choose>	
        	<c:when test="${svcCollector.errorPercentage == -1}">
        		<td align="right">No Collections</td>
        	</c:when>
        	<c:otherwise>
        		<td align="right"><fmt:formatNumber type="number" maxFractionDigits="1" minFractionDigits="1" value="${svcCollector.errorPercentage}" /></td>
        	</c:otherwise>
        </c:choose>
        <td align="right">${svcCollector.averageErrorCollectionDuration}</td>
        <td align="right">${svcCollector.averagePersistDuration}</td>
        <td align="right">${svcCollector.totalPersistDuration}</td>
        </tr>
    
        </c:forEach>
      </table>
    </div> <!-- column -->
  </div> <!-- row -->
  
  <jsp:include page="/includes/bootstrap-footer.jsp" flush="false"/>
  