public class CommandLineImporter extends Object
| Modifier and Type | Field and Description | 
|---|---|
| ImportConfig | configConfiguration used by all components | 
| static int | DEFAULT_WAIT | 
| List<FileExclusion> | exclusionsFileExclusionmechanisms for skipping candidates | 
| ErrorHandler | handlerErrorHandler which is also responsible for uploading files | 
| ImportLibrary | libraryBase importer library, this is what we actually use to import. | 
| FileTransfer | transferFileTransfermechanism to be used for uploading | 
| Constructor and Description | 
|---|
| CommandLineImporter(ImportConfig config,
                   String[] paths,
                   boolean getUsedFiles)Legacy constructor which uses a  UploadFileTransfer. | 
| CommandLineImporter(ImportConfig config,
                   String[] paths,
                   boolean getUsedFiles,
                   FileTransfer transfer,
                   int minutesToWait)Legacy constructor without any file exclusions. | 
| CommandLineImporter(ImportConfig config,
                   String[] paths,
                   boolean getUsedFiles,
                   FileTransfer transfer,
                   List<FileExclusion> exclusions,
                   int minutesToWait)Main entry class for the application. | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | advUsage()Prints advanced usage to STDERR and exits with return code 1. | 
| void | cleanup()Cleans up after a successful or unsuccessful image import. | 
| static int | closeCompleted(ImportConfig config)Look for all  ImportProcessPrxin the current session and close
 them if they return a non-nullResponse(i.e. they are done). | 
| static void | main(String[] args)Command line application entry point which parses CLI arguments and
 passes them into the importer. | 
| static void | setArgument(Map<String,Boolean> map,
           String key)Set a conflicting argument and return the usage if the key is already
 set | 
| int | start() | 
| static void | usage()Prints usage to STDERR and exits with return code 1. | 
| static int | waitCompleted(ImportConfig config)Look for all  ImportProcessPrxin the current session and close
 them if they return a non-nullResponse(i.e. they are done). | 
public static final int DEFAULT_WAIT
public final ImportConfig config
public final FileTransfer transfer
FileTransfer mechanism to be used for uploadingpublic final List<FileExclusion> exclusions
FileExclusion mechanisms for skipping candidatespublic final ImportLibrary library
public final ErrorHandler handler
public CommandLineImporter(ImportConfig config, String[] paths, boolean getUsedFiles) throws Exception
UploadFileTransfer.Exceptionpublic CommandLineImporter(ImportConfig config, String[] paths, boolean getUsedFiles, FileTransfer transfer, int minutesToWait) throws Exception
Exceptionpublic CommandLineImporter(ImportConfig config, String[] paths, boolean getUsedFiles, FileTransfer transfer, List<FileExclusion> exclusions, int minutesToWait) throws Exception
Exceptionpublic static int closeCompleted(ImportConfig config) throws Exception
ImportProcessPrx in the current session and close
 them if they return a non-null Response (i.e. they are done).Exceptionpublic static int waitCompleted(ImportConfig config) throws Exception
ImportProcessPrx in the current session and close
 them if they return a non-null Response (i.e. they are done).Exceptionpublic int start()
public void cleanup()
public static void usage()
public static void advUsage()
public static void main(String[] args) throws Exception
args - Command line arguments.Exception
                
                
Version: 5.1.3-ice35-b52
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.