Class ReportCLI

All Implemented Interfaces:
AutoCloseable

public class ReportCLI extends PsdbParent
This class performs the command line export of reports in command line.
Author:
Marc Vaudel, Harald Barsnes
  • Constructor Details

    • ReportCLI

      public ReportCLI(ReportCLIInputBean reportCLIInputBean)
      Construct a new ReportCLI runnable from a ReportCLI Bean. When initialization is successful, calling "run" will open the PeptideShaker project and write the desired output files.
      Parameters:
      reportCLIInputBean - the input bean
  • Method Details

    • call

      public Object call()
      Calling this method will run the configured PeptideShaker process.
      Returns:
      returns 1 if the process was canceled
    • main

      public static void main(String[] args)
      Starts the launcher by calling the launch method. Use this as the main class in the jar file.
      Parameters:
      args - the command line arguments
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • closePeptideShaker

      public void closePeptideShaker() throws IOException, SQLException, InterruptedException, ClassNotFoundException
      Close the PeptideShaker instance by clearing up factories and cache.
      Throws:
      IOException - thrown if an exception occurred while closing the connection to a file
      SQLException - thrown if an exception occurred while closing the connection to a database
      InterruptedException - if a thread was interrupted when closing the database
      ClassNotFoundException - if a class was not found when emptying the cache