org.openscience.nmrshiftdb.util
Class DatabaseStatistics

java.lang.Object
  extended by org.openscience.nmrshiftdb.util.DatabaseStatistics
All Implemented Interfaces:
java.io.Serializable

public class DatabaseStatistics
extends java.lang.Object
implements java.io.Serializable

This class contains the statistics displayed in the top.vm

Author:
shk3
See Also:
Serialized Form

Field Summary
private  java.lang.String numberOfCalculatedSpectra
           
private  java.lang.String numberOfMeasuredSpectra
           
private  java.lang.String numberOfSpectra
           
private  java.lang.String numberOfStructures
           
private  java.lang.String numberOfUsers
           
 
Constructor Summary
DatabaseStatistics()
          Constructor for the DatabaseStatistics object.
 
Method Summary
 java.lang.String getNumberOfCalculatedSpectra()
          Gets the numberOfCalculatedSpectra attribute of the DatabaseStatistics object
 java.lang.String getNumberOfMeasuredSpectra()
          Gets the numberOfMeasuredSpectra attribute of the DatabaseStatistics object
 java.lang.String getNumberOfSpectra()
          Gets the numberOfSpectra attribute of the DatabaseStatistics object
 java.lang.String getNumberOfStructures()
          Gets the numberOfStructures attribute of the DatabaseStatistics object
 java.lang.String getNumberOfUsers()
          Gets the numberOfUsers attribute of the DatabaseStatistics object
 java.lang.String getSessionsNumber()
          Gets the number of open sessions on this server (i.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numberOfUsers

private java.lang.String numberOfUsers

numberOfStructures

private java.lang.String numberOfStructures

numberOfSpectra

private java.lang.String numberOfSpectra

numberOfMeasuredSpectra

private java.lang.String numberOfMeasuredSpectra

numberOfCalculatedSpectra

private java.lang.String numberOfCalculatedSpectra
Constructor Detail

DatabaseStatistics

public DatabaseStatistics()
Constructor for the DatabaseStatistics object. Initializes the attributes from the DB

Method Detail

getNumberOfUsers

public java.lang.String getNumberOfUsers()
Gets the numberOfUsers attribute of the DatabaseStatistics object

Returns:
The numberOfUsers value

getNumberOfStructures

public java.lang.String getNumberOfStructures()
Gets the numberOfStructures attribute of the DatabaseStatistics object

Returns:
The numberOfStructures value

getNumberOfSpectra

public java.lang.String getNumberOfSpectra()
Gets the numberOfSpectra attribute of the DatabaseStatistics object

Returns:
The numberOfSpectra value

getNumberOfMeasuredSpectra

public java.lang.String getNumberOfMeasuredSpectra()
Gets the numberOfMeasuredSpectra attribute of the DatabaseStatistics object

Returns:
The numberOfMeasuredSpectra value

getNumberOfCalculatedSpectra

public java.lang.String getNumberOfCalculatedSpectra()
Gets the numberOfCalculatedSpectra attribute of the DatabaseStatistics object

Returns:
The numberOfCalculatedSpectra value

getSessionsNumber

public java.lang.String getSessionsNumber()
Gets the number of open sessions on this server (i. e. the value of the sessions column of sessions table)

Returns:
The sessionsNumber value