gov.nasa.gsfc.hessi.jidl.prep.server
Class PrepServerService

java.lang.Object
  extended by gov.nasa.gsfc.hessi.jidl.prep.server.PrepServerService

public class PrepServerService
extends java.lang.Object

PrepServerService is the controller class for all PrepService. For each preprocessing request, it will first checked if an instance of the appropriate PrepService already exists. If not, an InstrumentDataSet for that specific instrument is created and stored in the internal HashMap. Currently, there is only one type of PrepService in use: GenPrepService.

Since:
Revision 19
Author:
Laszlo Istvan Etesi

Field Summary
private static java.util.Map<java.lang.String,PrepService> prepServices
          HashMap that stores already available PrepService.
 
Constructor Summary
PrepServerService()
           
 
Method Summary
static PrepService createPrepService(java.lang.String instrument)
          Static method that returns a PrepService instance that is appropriate for the parameter "instrument"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prepServices

private static java.util.Map<java.lang.String,PrepService> prepServices
HashMap that stores already available PrepService.

Constructor Detail

PrepServerService

public PrepServerService()
Method Detail

createPrepService

public static PrepService createPrepService(java.lang.String instrument)
Static method that returns a PrepService instance that is appropriate for the parameter "instrument"

Parameters:
instrument - The requested instrument type, such as 'eit' or 'rhessi'
Returns:
an instance of PrepServerService that can be used to preprocess data of type 'instrument'