ZetaGrid v1.9

zeta.handler.statistic
Class WorkstationsHandler

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

public class WorkstationsHandler
extends AbstractHandler
implements CodedList

Handles a GET request for the statistic 'workstations'.


Nested Class Summary
 
Nested classes inherited from class zeta.handler.statistic.AbstractHandler
AbstractHandler.InnerPageBuffer
 
Field Summary
 
Fields inherited from class zeta.handler.statistic.AbstractHandler
imgHeight, imgWidth, servlet
 
Constructor Summary
WorkstationsHandler(ZetaServlet servlet)
           
 
Method Summary
 java.lang.String createPage(java.sql.Connection con)
          Creates HTML page with the content of the statistic 'workstations' where the user is not defined.
 java.lang.String decode(java.lang.String content, int pos)
          Decodes a specified column name.
 java.lang.String decodeValue(java.lang.String content, int pos, int end)
          Decodes that value of the column.
 java.lang.String encode(java.lang.String column)
          Encodes a specified column name.
 int getAlignment(java.lang.String content, int pos)
          Returns the alignment of the value of the decoded column.
(package private)  boolean isActive(java.lang.String content)
           
private  int search(java.util.List workstations, int workstationsRecordSize, java.lang.Short serverId, java.lang.Integer wsId)
           
 
Methods inherited from class zeta.handler.statistic.AbstractHandler
createImage, createPage, 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
 

Constructor Detail

WorkstationsHandler

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

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 'workstations' 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 'workstations'.
java.sql.SQLException
javax.servlet.ServletException

isActive

boolean isActive(java.lang.String content)

encode

public java.lang.String encode(java.lang.String column)
Description copied from interface: CodedList
Encodes a specified column name.

Specified by:
encode in interface CodedList
Parameters:
column - column name
Returns:
encoded column name.

decode

public java.lang.String decode(java.lang.String content,
                               int pos)
Description copied from interface: CodedList
Decodes a specified column name.

Specified by:
decode in interface CodedList
Parameters:
content - text with column name
pos - encoded text starts at the specified position
Returns:
decoded column name.

decodeValue

public java.lang.String decodeValue(java.lang.String content,
                                    int pos,
                                    int end)
Description copied from interface: CodedList
Decodes that value of the column.

Specified by:
decodeValue in interface CodedList
Parameters:
content - text of the column
pos - encoded text starts at the specified position
Returns:
value of the decoded column.

getAlignment

public int getAlignment(java.lang.String content,
                        int pos)
Description copied from interface: CodedList
Returns the alignment of the value of the decoded column.

Specified by:
getAlignment in interface CodedList
Parameters:
content - text of the column
pos - encoded text starts at the specified position
Returns:
the alignment of the value of the decoded column.

search

private int search(java.util.List workstations,
                   int workstationsRecordSize,
                   java.lang.Short serverId,
                   java.lang.Integer wsId)

ZetaGrid v1.9

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