public class CommandLineImporter
extends java.lang.Object
修飾子とタイプ | フィールドと説明 |
---|---|
ImportConfig |
config
Configuration used by all components
|
static int |
DEFAULT_WAIT |
ErrorHandler |
handler
ErrorHandler which is also responsible for uploading files
|
ImportLibrary |
library
Base importer library, this is what we actually use to import.
|
FileTransfer |
transfer
FileTransfer mechanism to be used for uploading |
コンストラクタと説明 |
---|
CommandLineImporter(ImportConfig config,
java.lang.String[] paths,
boolean getUsedFiles)
Legacy constructor which uses a
UploadFileTransfer . |
CommandLineImporter(ImportConfig config,
java.lang.String[] paths,
boolean getUsedFiles,
FileTransfer transfer,
int minutesToWait)
Main entry class for the application.
|
修飾子とタイプ | メソッドと説明 |
---|---|
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
ImportProcessPrx in the current session and close
them if they return a non-null Response (i.e. they are done). |
static void |
main(java.lang.String[] args)
Command line application entry point which parses CLI arguments and
passes them into the importer.
|
int |
start() |
static void |
usage()
Prints usage to STDERR and exits with return code 1.
|
static int |
waitCompleted(ImportConfig config)
Look for all
ImportProcessPrx in the current session and close
them if they return a non-null Response (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 ImportLibrary library
public final ErrorHandler handler
public CommandLineImporter(ImportConfig config, java.lang.String[] paths, boolean getUsedFiles) throws java.lang.Exception
UploadFileTransfer
.java.lang.Exception
public CommandLineImporter(ImportConfig config, java.lang.String[] paths, boolean getUsedFiles, FileTransfer transfer, int minutesToWait) throws java.lang.Exception
java.lang.Exception
public static int closeCompleted(ImportConfig config) throws java.lang.Exception
ImportProcessPrx
in the current session and close
them if they return a non-null Response
(i.e. they are done).java.lang.Exception
public static int waitCompleted(ImportConfig config) throws java.lang.Exception
ImportProcessPrx
in the current session and close
them if they return a non-null Response
(i.e. they are done).java.lang.Exception
public int start()
public void cleanup()
public static void usage()
public static void advUsage()
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- Command line arguments.java.lang.Exception