<%@ page import="java.util.*, org.ourgrid.webstatus.*, org.ourgrid.common.spec.*" %> <% Date currentDate = new Date(); Date timeSnapshot = (Date)request.getAttribute("timeSnapshot"); int totalPeers = 0; int totalGums = 0; int totalCommunityGums = 0; Collection peerInfoList = (Collection)request.getAttribute("peerInfoList"); totalPeers = peerInfoList.size(); %> OurGrid WebStatus 3.0
     
OurGrid Web Status   Statistics
Server time:  <%= currentDate %>
Last snapshot time:  <%= timeSnapshot %>
Peers:  <%= totalPeers %>
Grid machines:  <%= totalGums %>
Donated grid machines:  <%= totalCommunityGums %>
   
Online Peers
 
<% int totConfigurated = 0; int totOnline = 0; int totAvailable = 0; int totAllocated = 0; int totDonated = 0; int totReceived = 0; int totOffline = 0; int i = 0; Iterator it = peerInfoList.iterator(); while (it.hasNext()) { i = 1 - i; PeerInfoPack pack = (PeerInfoPack) it.next(); String peerName = pack.getPeerID().getName(); int online = pack.getOnlineGums().size(); int available = pack.getAvailableGums().size(); int allocated = pack.getAllocatedGums().size(); int donated = pack.getDonatedGums().size(); int received = pack.getCommunityGuMs().size(); int offline = pack.getOfflineGums().size(); int configurated = pack.getConfiguratedGums().size(); totOnline += online; totAvailable += available; totAllocated += allocated; totDonated += donated; totReceived += received; totOffline += offline; totConfigurated += configurated; %> <% } %>
Peer Name Online Available Allocated Donated Received Offline Configurated
<%= peerName %> <%= online %> <%= available %> <%= allocated %> <%= donated %> <%= received %> <%= offline %> <%= configurated %>
Totals <%= totOnline %> <%= totAvailable %> <%= totAllocated %> <%= totDonated %> <%= totReceived %> <%= totOffline %> <%= totConfigurated %>

OurGrid Web Status 3.0
OurGrid Project
This site was developed and maintenance by Jose Pergentino