jetweb is hosted by Hepforge, IPPP Durham

cedar.jetweb
Class JetWebConfig

java.lang.Object
  extended by cedar.jetweb.JetWebConfig

public abstract class JetWebConfig
extends java.lang.Object

Environment variables for JetWeb server. Many of these are set from the jetweb properties file at initialisation.

Version:
$Date: 2006-06-19 13:15:40 +0100 (Mon, 19 Jun 2006) $ $Revision: 1189 $
Author:
J.Butterworth, UCL.

Field Summary
static java.awt.Component CONTROLSCREEN
          Control screen for swing mode
static DBConnectionManager dbConnectionManager
           
static DBObjectManager dbObjectManager
           
static PDF defaultPhotonPDF
          Default photon pdf
static PDF defaultProtonPDF
          Default proton pdf
static java.lang.String execs
          executables location
static ThreadPool graphicsThreadPool
          Pool of threads to be shared by writeGraphics processes
static java.lang.String graphicsType
          graphics file type
static double highScale
          JetWeb Fitting parameter
static boolean isServlet
           
static java.lang.String jobInDirName
          Directory where completed jobs will appear
static java.lang.String jobOutDirName
          Directory where jobs ready for submission will be written
static int LISTCHECKINTERVAL
          interval (milliseconds) at which cache of result lists is checked, and any 'old' lists cleared
static javax.swing.ImageIcon logo
          The JetWeb logo
static double lowScale
          JetWeb Fitting parameter
static java.lang.String mainServletPath
          maintainer servlet path
static java.lang.String MAINTAINER
          Constant representing Maintainer Functionality (privileged access)
static java.lang.String plotCacheDirName
          Plot directory
static java.util.Random random
           
static int RESULTKEEPTIME
          age (milliseconds) for result lists to be cleared
static java.lang.String rootDirectory
          Root directory
static double scaleIncrement
          JetWeb Fitting parameter
static java.lang.String SEARCHER
          Constant representing Searcher Functionality
static java.lang.String searchServletPath
          searcher servlet path
static java.lang.String serverName
          server name
static boolean SERVLET_MODE_ON
          Determine mode (servlet or swing?)
static double SMALLDOUBLE
          Parameters with absolute value less than this will be zeroed.
static java.lang.String spiresURL
          spires URL
static java.lang.String spoolDirName
          Spool directory
static java.lang.String storeDirName
          Archive directory
static java.util.Hashtable template
          Templates for input card files
static java.lang.String templateDirName
          Templates directory
static java.text.SimpleDateFormat timeStamp
          format for timestamp within jetweb
static java.lang.String uploadServletPath
          upload servlet path
static boolean writePlots
          Writing of histograms is turned off (fast) or on (complete).
 
Constructor Summary
JetWebConfig()
           
 
Method Summary
static java.lang.String cacheList(java.util.List<java.lang.Object> resultList)
          Stores a result list, returns the key to identify the list
static java.text.DecimalFormat getFormat()
          A decimal format used to write out doubles etc.
static java.lang.String getHTMLRoot()
           
static java.io.PrintWriter getPrintWriter()
          Gets Output Writer
static java.util.List<java.lang.Object> getResultList(java.lang.String listKey)
          retrieve a stored list, given the key
static java.lang.String getScriptDirName()
          Script directory
static void init()
          JetWeb Initialisation for Web Application.
static void setPrintWriter(java.io.PrintWriter out)
          Sets Output Writer
static void startListMonitor()
          Spawns a ListMonitor thread that checks lists of results cached in the resultLists collection every LISTCHECKINTERVAL If any are older than RESULTKEEPTIME, it removes them.
static java.lang.String stripRoot(java.lang.String path)
          If the path starts with the rootDirectory, return a String which has it stripped off.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbObjectManager

public static DBObjectManager dbObjectManager

dbConnectionManager

public static DBConnectionManager dbConnectionManager

graphicsType

public static java.lang.String graphicsType
graphics file type


timeStamp

public static java.text.SimpleDateFormat timeStamp
format for timestamp within jetweb


writePlots

public static boolean writePlots
Writing of histograms is turned off (fast) or on (complete).


graphicsThreadPool

public static ThreadPool graphicsThreadPool
Pool of threads to be shared by writeGraphics processes


serverName

public static java.lang.String serverName
server name


rootDirectory

public static java.lang.String rootDirectory
Root directory


storeDirName

public static java.lang.String storeDirName
Archive directory


jobOutDirName

public static java.lang.String jobOutDirName
Directory where jobs ready for submission will be written


jobInDirName

public static java.lang.String jobInDirName
Directory where completed jobs will appear


plotCacheDirName

public static java.lang.String plotCacheDirName
Plot directory


templateDirName

public static java.lang.String templateDirName
Templates directory


spoolDirName

public static java.lang.String spoolDirName
Spool directory


MAINTAINER

public static final java.lang.String MAINTAINER
Constant representing Maintainer Functionality (privileged access)

See Also:
Constant Field Values


SEARCHER

public static final java.lang.String SEARCHER
Constant representing Searcher Functionality

See Also:
Constant Field Values


mainServletPath

public static java.lang.String mainServletPath
maintainer servlet path


searchServletPath

public static java.lang.String searchServletPath
searcher servlet path


uploadServletPath

public static java.lang.String uploadServletPath
upload servlet path


execs

public static java.lang.String execs
executables location


spiresURL

public static java.lang.String spiresURL
spires URL


isServlet

public static boolean isServlet

random

public static java.util.Random random

logo

public static javax.swing.ImageIcon logo
The JetWeb logo


template

public static java.util.Hashtable template
Templates for input card files


LISTCHECKINTERVAL

public static final int LISTCHECKINTERVAL
interval (milliseconds) at which cache of result lists is checked, and any 'old' lists cleared

See Also:
Constant Field Values


RESULTKEEPTIME

public static final int RESULTKEEPTIME
age (milliseconds) for result lists to be cleared

See Also:
Constant Field Values


defaultPhotonPDF

public static final PDF defaultPhotonPDF
Default photon pdf


defaultProtonPDF

public static final PDF defaultProtonPDF
Default proton pdf


SMALLDOUBLE

public static final double SMALLDOUBLE
Parameters with absolute value less than this will be zeroed.

See Also:
Constant Field Values


SERVLET_MODE_ON

public static boolean SERVLET_MODE_ON
Determine mode (servlet or swing?)


CONTROLSCREEN

public static java.awt.Component CONTROLSCREEN
Control screen for swing mode


lowScale

public static double lowScale
JetWeb Fitting parameter


highScale

public static double highScale
JetWeb Fitting parameter


scaleIncrement

public static double scaleIncrement
JetWeb Fitting parameter

Constructor Detail

JetWebConfig

public JetWebConfig()
Method Detail

getScriptDirName

public static java.lang.String getScriptDirName()
Script directory


getFormat

public static java.text.DecimalFormat getFormat()
A decimal format used to write out doubles etc. Defines the effective precision of parameters.


setPrintWriter

public static void setPrintWriter(java.io.PrintWriter out)
Sets Output Writer


getPrintWriter

public static java.io.PrintWriter getPrintWriter()
Gets Output Writer


getHTMLRoot

public static java.lang.String getHTMLRoot()

init

public static void init()
JetWeb Initialisation for Web Application. Called by Servlet initialisation. Loads JetWeb properties.


startListMonitor

public static void startListMonitor()
Spawns a ListMonitor thread that checks lists of results cached in the resultLists collection every LISTCHECKINTERVAL If any are older than RESULTKEEPTIME, it removes them.


cacheList

public static java.lang.String cacheList(java.util.List<java.lang.Object> resultList)
Stores a result list, returns the key to identify the list


getResultList

public static java.util.List<java.lang.Object> getResultList(java.lang.String listKey)
retrieve a stored list, given the key


stripRoot

public static java.lang.String stripRoot(java.lang.String path)
If the path starts with the rootDirectory, return a String which has it stripped off.