org.aludratest.service.flatfile.impl
Class DefaultFlatFileService

java.lang.Object
  extended by org.aludratest.service.AbstractAludraService
      extended by org.aludratest.service.AbstractConfigurableAludraService
          extended by org.aludratest.service.flatfile.impl.DefaultFlatFileService
All Implemented Interfaces:
Closeable, Configurable, AludraCloseable, AludraService, FlatFileService

public class DefaultFlatFileService
extends AbstractConfigurableAludraService
implements FlatFileService

Default FlatFileService implementation.

Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.aludratest.service.AbstractAludraService
aludraServiceContext
 
Constructor Summary
DefaultFlatFileService()
          Public default constructor.
 
Method Summary
 FlatFileCondition check()
          Provides an object that implements the FlatFileCondition interface.
 void close()
          Closes the service.
 void configure(Preferences preferences)
          Called by the framework to let a configurable object configure itself according to the passed Preferences object.
 String getDescription()
          Provides a textual description of the most important configuration information to be logged when the service is configured.
 FileService getFileService()
           
 String getPropertiesBaseName()
          Returns the base name for properties files for this configurable, e.g.
 void initService()
          Callback method that is called by the AludraTest framework and initializes the service.
 FlatFileInteraction perform()
          Provides an object that implements the FlatFileInteraction interface.
 FlatFileVerification verify()
          Provides an object that implements the FlatFileVerification interface.
 
Methods inherited from class org.aludratest.service.AbstractConfigurableAludraService
fillDefaults, getDefaultsResourceName
 
Methods inherited from class org.aludratest.service.AbstractAludraService
getInstanceName, init, setSystemConnector, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.aludratest.service.AludraService
getInstanceName, init, setSystemConnector
 

Constructor Detail

DefaultFlatFileService

public DefaultFlatFileService()
Public default constructor.

Method Detail

getFileService

public FileService getFileService()
Specified by:
getFileService in interface FlatFileService
Returns:
the underlying FileService

perform

public FlatFileInteraction perform()
Provides an object that implements the FlatFileInteraction interface.

Specified by:
perform in interface AludraService
Specified by:
perform in interface FlatFileService
Returns:
the service's Interaction object

verify

public FlatFileVerification verify()
Provides an object that implements the FlatFileVerification interface.

Specified by:
verify in interface AludraService
Specified by:
verify in interface FlatFileService
Returns:
the service's Verification object

check

public FlatFileCondition check()
Provides an object that implements the FlatFileCondition interface.

Specified by:
check in interface AludraService
Specified by:
check in interface FlatFileService
Returns:
the service's Condition object

configure

public void configure(Preferences preferences)
Description copied from interface: Configurable
Called by the framework to let a configurable object configure itself according to the passed Preferences object. The object is allowed to store the passed Preferences reference and query it for configuration parameters when needed. It is also OK to extract all required parameters in this method.
In any case, this method should check the configuration for validness and throw an AutomationException when the configuration is invalid.

Specified by:
configure in interface Configurable
Parameters:
preferences - Configuration object for this configurable.

getPropertiesBaseName

public String getPropertiesBaseName()
Description copied from interface: Configurable
Returns the base name for properties files for this configurable, e.g. "aludratest" if the properties files are named "aludratest.properties", or "fileService" for "fileService.properties".

Specified by:
getPropertiesBaseName in interface Configurable
Returns:
The base name for properties files for this configurable, never null.

initService

public void initService()
Callback method that is called by the AludraTest framework and initializes the service.

Specified by:
initService in class AbstractAludraService

close

public void close()
Closes the service.

Specified by:
close in interface Closeable
Specified by:
close in interface AludraCloseable

getDescription

public String getDescription()
Description copied from interface: AludraService
Provides a textual description of the most important configuration information to be logged when the service is configured.

Specified by:
getDescription in interface AludraService
Returns:
a textual description of the most important configuration information


Copyright © 2015 aludratest.org. All rights reserved.