%@ page import="java.util.*, org.ourgrid.common.gump.*, org.ourgrid.peer.manager.status.*, org.ourgrid.webstatus.*, org.ourgrid.common.spec.*, java.text.*, javax.swing.text.*, org.ourgrid.peer.manager.allocation.*" buffer="50kb" autoFlush="true" %>
<%
PeerInfoPack pack = (PeerInfoPack)request.getAttribute("pack");
%>
OurGrid WebStatus 3.3.1 - <%= pack.getPeerID().getName() %> specifications
Name: |
<%= pack.getPeerID().getName() %> |
Description: |
<%= pack.getDescription() %> |
Version: |
<%= pack.getVersion() %> |
Started at: |
<%= pack.getUptime() %> |
Administrator email: |
<%= pack.getEmail() %> |
Latitude: |
<%= pack.getLatitude() %> |
Longitude: |
<%= pack.getLongitude() %> |
<%
if ( pack.getAllGums().size() > 0 ) {
%>
Local Gums (<%= pack.getAllGums().size() %>)
|
|
Name |
Type |
OS |
Processor Family |
Memory |
Environment |
Status |
<%
Iterator itLocal = pack.getAllGums().iterator();
while(itLocal.hasNext()) {
StatusEntry entry = itLocal.next();
String gumName = entry.getGumSpec().getAttribute(GumSpec.ATT_NAME);
String gumType = entry.getGumSpec().getAttribute(GumSpec.ATT_TYPE);
String gumOS = entry.getGumSpec().getAttribute(GumSpec.ATT_OS);
String gumProcFamily = entry.getGumSpec().getAttribute(GumSpec.ATT_PROCESSOR_FAMILY);
String gumMem = entry.getGumSpec().getAttribute(GumSpec.ATT_MEM);
String gumEnv = entry.getGumSpec().getAttribute(GumSpec.ATT_ENVIRONMENT);
String stateCssClass = "";
if (entry.getStatus() == AllocationStatus.CONTACTING) {
stateCssClass = "gumContacting";
} else if (entry.getStatus() == AllocationStatus.IDLE) {
stateCssClass = "gumIdle";
} else if (entry.getStatus() == AllocationStatus.IN_USE) {
stateCssClass = "gumInUse";
} else if (entry.getStatus() == AllocationStatus.DONATED) {
stateCssClass = "gumDonated";
} else if (entry.getStatus() == AllocationStatus.OWNER) {
stateCssClass = "gumOwner";
}
%>
<%= gumName != null ? gumName : "-" %> |
<%= gumType != null ? gumType : "-" %> |
<%= gumOS != null ? gumOS : "-" %> |
<%= gumProcFamily != null ? gumProcFamily : "-" %> |
<%= gumMem != null ? gumMem : "-" %> |
<%= gumEnv != null ? gumEnv : "-" %> |
<%= entry.getStatus() %> |
<%
}
%>
<%
}
if ( pack.getRemoteGums().size() > 0 ) {
%>
Community Gums (<%= pack.getRemoteGums().size() %>)
|
|
Name |
Original Site |
Type |
OS |
Processor Family |
Memory |
<%
Iterator itCommunity = pack.getRemoteGums().iterator();
while(itCommunity.hasNext()) {
StatusEntry entry = itCommunity.next();
String gumPeer = entry.getGumSpec().getGumID().getPeerName();
String gumName = entry.getGumSpec().getAttribute(GumSpec.ATT_NAME);
String gumType = entry.getGumSpec().getAttribute(GumSpec.ATT_TYPE);
String gumOS = entry.getGumSpec().getAttribute(GumSpec.ATT_OS);
String gumProcFamily = entry.getGumSpec().getAttribute(GumSpec.ATT_PROCESSOR_FAMILY);
String gumMem = entry.getGumSpec().getAttribute(GumSpec.ATT_MEM);
%>
<%= gumName != null ? gumName : "-" %> |
<%= gumPeer != null ? gumPeer : "-" %> |
<%= gumType != null ? gumType : "-" %> |
<%= gumOS != null ? gumOS : "-" %> |
<%= gumProcFamily != null ? gumProcFamily : "-" %> |
<%= gumMem != null ? gumMem : "-" %> |
<%
}
%>
<%
}
%>
Local Consumers (<%= pack.getLocalConsumers() != null ? pack.getLocalConsumers().size() : "Information not available" %>)
|
|
<%
if ( pack.getLocalConsumers() != null && pack.getLocalConsumers().size() > 0 ) {
%>
URL |
Local Gums |
Community Gums |
<%
Iterator itConsumers = pack.getLocalConsumers().iterator();
while(itConsumers.hasNext()) {
ConsumerStatus consumer = itConsumers.next();
String consumerName = consumer.getConsumerMachineName();
int localGums = consumer.getLocalGums();
int communityGums = consumer.getRemoteGums();
%>
<%= consumerName != null ? consumerName : "-" %> |
<%= localGums %> |
<%= communityGums %> |
<%
}
%>
<%
}
%>