Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.headless
Class HeadlessIO

java.lang.Object
  extended by eu.esdihumboldt.hale.common.headless.HeadlessIO

public abstract class HeadlessIO
extends Object

Utilities for headless execution of I/O configurations and providers.

Author:
Simon Templer

Constructor Summary
HeadlessIO()
           
 
Method Summary
static void executeConfiguration(IOConfiguration conf, Map<String,IOAdvisor<?>> advisors, ReportHandler reportHandler)
          Execute a single I/O configuration.
static void executeConfigurations(List<IOConfiguration> configurations, Map<String,IOAdvisor<?>> advisors, ReportHandler reportHandler)
          Execute a set of I/O configurations.
static void executeProvider(IOProvider provider, IOAdvisor advisor, ProgressIndicator progress, ReportHandler reportHandler)
          Execute the given I/O provider with the given I/O advisor.
static IOProvider loadProvider(IOConfiguration conf)
          Load and configure the I/O provider specified by the given I/O configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeadlessIO

public HeadlessIO()
Method Detail

executeConfigurations

public static void executeConfigurations(List<IOConfiguration> configurations,
                                         Map<String,IOAdvisor<?>> advisors,
                                         ReportHandler reportHandler)
                                  throws IOException
Execute a set of I/O configurations. Configurations for which no advisor is provided are ignored.

Parameters:
configurations - the I/O configurations
advisors - map of advisors, action ID mapped to responsible advisor
reportHandler - the report handler, may be null
Throws:
IOException - if an error occurs executing a configuration

executeConfiguration

public static void executeConfiguration(IOConfiguration conf,
                                        Map<String,IOAdvisor<?>> advisors,
                                        ReportHandler reportHandler)
                                 throws IOException
Execute a single I/O configuration. If no matching advisor is given for the configuration, it is ignored.

Parameters:
conf - the I/O configuration
advisors - map of advisors, action ID mapped to responsible advisor
reportHandler - the report handler, may be null
Throws:
IOException - if an error occurs executing a configuration

loadProvider

public static IOProvider loadProvider(IOConfiguration conf)
Load and configure the I/O provider specified by the given I/O configuration.

Parameters:
conf - the I/O configuration
Returns:
the provider or null if it was not found or could not be created

executeProvider

public static void executeProvider(IOProvider provider,
                                   IOAdvisor advisor,
                                   ProgressIndicator progress,
                                   ReportHandler reportHandler)
                            throws IOException
Execute the given I/O provider with the given I/O advisor.

Parameters:
provider - the I/O provider
advisor - the I/O advisor
progress - the progress indicator, may be null
reportHandler - the report handler, may be null
Throws:
IOException - if executing the provider fails

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d