ZetaGrid v1.9

zeta.handler.statistic
Class TeamMembersHandler

java.lang.Object
  |
  +--zeta.handler.statistic.AbstractHandler
        |
        +--zeta.handler.statistic.TeamMembersHandler
All Implemented Interfaces:
GetHandler

public class TeamMembersHandler
extends AbstractHandler

Handles a GET request for the statistic 'team members'.


Nested Class Summary
 
Nested classes inherited from class zeta.handler.statistic.AbstractHandler
AbstractHandler.InnerPageBuffer
 
Field Summary
private  Table teamTable
          Contains the complete top team statistic.
 
Fields inherited from class zeta.handler.statistic.AbstractHandler
imgHeight, imgWidth, servlet
 
Constructor Summary
TeamMembersHandler(ZetaServlet servlet)
           
 
Method Summary
 java.lang.String createPage(java.sql.Connection con)
          Creates HTML page with the content of the statistic 'team members' where the user is not defined.
protected  java.lang.String createPage(javax.servlet.http.HttpServletRequest req, java.sql.Connection con)
          Creates HTML page with the content of the statistic 'team members' where the user is defined.
(package private)  Table getTopTeamTable()
          Returns the complete top team statistic.
private  void inputTeam(java.lang.String team, java.lang.StringBuffer buffer)
          Generates an HTTP form to get the user name.
private  void insertTeam(Table teamTable, java.lang.String teamname, int age, int workUnits, int members, int computersUsed, long zeros)
          Inserts a new row with the specified data in the team table.
 
Methods inherited from class zeta.handler.statistic.AbstractHandler
createImage, doGet, getBufferedPage, getImageHeight, getImageWidth, getInnerPageBuffer, getInnerPageExpiredDiffTime, getPageExpiredDiffTime, imageUpdateCompleted, isImageExpired, isInnerPageExpired, isPageExpired, pageUpdateCompleted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

teamTable

private Table teamTable
Contains the complete top team statistic.

Constructor Detail

TeamMembersHandler

public TeamMembersHandler(ZetaServlet servlet)
Parameters:
servlet - servlet which owns this handler.
Method Detail

getTopTeamTable

Table getTopTeamTable()
Returns the complete top team statistic.


createPage

public java.lang.String createPage(java.sql.Connection con)
                            throws java.sql.SQLException,
                                   javax.servlet.ServletException
Creates HTML page with the content of the statistic 'team members' where the user is not defined.

Specified by:
createPage in class AbstractHandler
Parameters:
con - connection to the back-end database
Returns:
HTML page with the content of the statistic 'team members'.
java.sql.SQLException
javax.servlet.ServletException

createPage

protected java.lang.String createPage(javax.servlet.http.HttpServletRequest req,
                                      java.sql.Connection con)
                               throws java.sql.SQLException,
                                      javax.servlet.ServletException
Creates HTML page with the content of the statistic 'team members' where the user is defined.

Overrides:
createPage in class AbstractHandler
Parameters:
req - GET request
con - connection to the back-end database
Returns:
HTML page with the content of the statistic 'team members'.
java.sql.SQLException
javax.servlet.ServletException

inputTeam

private void inputTeam(java.lang.String team,
                       java.lang.StringBuffer buffer)
Generates an HTTP form to get the user name.

Parameters:
buffer - buffer for HTTP page

insertTeam

private void insertTeam(Table teamTable,
                        java.lang.String teamname,
                        int age,
                        int workUnits,
                        int members,
                        int computersUsed,
                        long zeros)
Inserts a new row with the specified data in the team table. The team table is ordered by the column zeros.

Parameters:
teamTable - team table which is ordered by the column zeros.
teamname - team name
age - age of the team
workUnits - number of computed work units by the team
members - number of members in the team
computersUsed - number of used computers by the team
zeros - verified zeros by the team

ZetaGrid v1.9

For further technical papers, see ZetaGrid Technical Documentation.
 
Copyright © 2001,2002 Sebastian Wedeniwski. All Rights Reserved.