Package gov.nasa.pds.citool.handler
Class HandlerFactory
- java.lang.Object
-
- gov.nasa.pds.citool.handler.HandlerFactory
-
public class HandlerFactory extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HandlerFactory
getInstance()
Handler
newInstance(int mode, File reportFile, String severity)
Get an instance of a Handler object for the human-readable report.
-
-
-
Field Detail
-
COMPARE
public static final int COMPARE
- See Also:
- Constant Field Values
-
INGEST
public static final int INGEST
- See Also:
- Constant Field Values
-
VALIDATE
public static final int VALIDATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static HandlerFactory getInstance()
-
newInstance
public Handler newInstance(int mode, File reportFile, String severity) throws SecurityException, IOException, UnknownHandlerConfigurationException
Get an instance of a Handler object for the human-readable report.- Parameters:
mode
- Specify a logging mode (COMPARE=1, INGEST=2)reportFile
- Specify a file name or set to 'null' to write to standard out.severity
- Specify the severity level and above for the reporting. Must be set to 'Info', 'Warning', or 'Error'.- Returns:
- A proper Handler object based on the input parameters.
- Throws:
SecurityException
IOException
UnknownHandlerConfigurationException
-
-