it.geosolutions.geobatch.configuration.event.consumer.file
Class FileBasedEventConsumerConfiguration

java.lang.Object
  extended by it.geosolutions.geobatch.catalog.impl.BaseIdentifiable
      extended by it.geosolutions.geobatch.catalog.impl.BaseConfiguration
          extended by it.geosolutions.geobatch.configuration.event.consumer.file.FileBasedEventConsumerConfiguration
All Implemented Interfaces:
Configuration, Identifiable, EventConsumerConfiguration, java.lang.Cloneable

public class FileBasedEventConsumerConfiguration
extends BaseConfiguration
implements EventConsumerConfiguration

Conf for the event consumers based on xml marshalled files.

TODO: we may need another hierarchy level for a BaseEventConsumerConfiguration class

Author:
Simone Giannecchini, GeoSolutions

Field Summary
protected  java.util.List<ProgressListenerConfiguration> listenerConfigurations
          These configs are filled by the loader, dereferencing the listenersId.
 
Constructor Summary
protected FileBasedEventConsumerConfiguration(java.lang.String id, java.lang.String name, java.lang.String description)
          Default Constructor.
 
Method Summary
 void addListenerConfiguration(ProgressListenerConfiguration plc)
           
 FileBasedEventConsumerConfiguration clone()
           
 java.util.List<? extends ActionConfiguration> getActions()
          Getter for the consumer actions.
 java.util.List<ProgressListenerConfiguration> getListenerConfigurations()
           
 java.util.List<java.lang.String> getListenerIds()
           
 java.util.List<FileEventRule> getRules()
          Getter for the consumer rules.
 java.lang.String getWorkingDirectory()
          Getter for the configuring directory attribute.
 boolean isKeepContextDir()
           
 boolean isPerformBackup()
          Is the backup of the input data enabled?
 boolean isPreserveInput()
           
 void setActions(java.util.List<? extends ActionConfiguration> actions)
          Setter for the consumer actions.
 void setKeepContextDir(boolean keepContextDir)
           
 void setListenerId(java.util.List<java.lang.String> ids)
           
 void setPerformBackup(boolean performBackup)
          Setter for the perform backup option.
 void setPreserveInput(boolean preserveInput)
           
 void setRules(java.util.List<FileEventRule> rules)
          Setter for the consumer rules.
 void setWorkingDirectory(java.lang.String workingDirectory)
          Setter for the configuring directory attribute.
 
Methods inherited from class it.geosolutions.geobatch.catalog.impl.BaseConfiguration
getServiceID, isDirty, setDirty, setServiceID, toString
 
Methods inherited from class it.geosolutions.geobatch.catalog.impl.BaseIdentifiable
getDescription, getId, getName, setDescription, setId, setName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.geosolutions.geobatch.catalog.Configuration
getServiceID, isDirty, setDirty, setServiceID
 
Methods inherited from interface it.geosolutions.geobatch.catalog.Identifiable
getDescription, getId, getName, setDescription, setId, setName
 

Field Detail

listenerConfigurations

protected java.util.List<ProgressListenerConfiguration> listenerConfigurations
These configs are filled by the loader, dereferencing the listenersId.

Constructor Detail

FileBasedEventConsumerConfiguration

protected FileBasedEventConsumerConfiguration(java.lang.String id,
                                              java.lang.String name,
                                              java.lang.String description)
Default Constructor.

Method Detail

isKeepContextDir

public boolean isKeepContextDir()
Returns:
the keepContextDir

setKeepContextDir

public void setKeepContextDir(boolean keepContextDir)
Parameters:
keepContextDir - the keepContextDir to set

getActions

public java.util.List<? extends ActionConfiguration> getActions()
Getter for the consumer actions.

Specified by:
getActions in interface EventConsumerConfiguration
Returns:
actions

setActions

public void setActions(java.util.List<? extends ActionConfiguration> actions)
Setter for the consumer actions.

Specified by:
setActions in interface EventConsumerConfiguration
Parameters:
actions -

getRules

public java.util.List<FileEventRule> getRules()
Getter for the consumer rules.

Returns:
rules

setRules

public void setRules(java.util.List<FileEventRule> rules)
Setter for the consumer rules.

Parameters:
rules -

getWorkingDirectory

public java.lang.String getWorkingDirectory()
Getter for the configuring directory attribute.

Returns:
workingDirectory

setWorkingDirectory

public void setWorkingDirectory(java.lang.String workingDirectory)
Setter for the configuring directory attribute.

Parameters:
workingDirectory -

isPerformBackup

public boolean isPerformBackup()
Is the backup of the input data enabled?

Returns:
performBackup

setPerformBackup

public void setPerformBackup(boolean performBackup)
Setter for the perform backup option.

Parameters:
performBackup -

isPreserveInput

public boolean isPreserveInput()
Returns:

setPreserveInput

public void setPreserveInput(boolean preserveInput)
Parameters:
preserveInput -

getListenerIds

public java.util.List<java.lang.String> getListenerIds()
Specified by:
getListenerIds in interface EventConsumerConfiguration

setListenerId

public void setListenerId(java.util.List<java.lang.String> ids)

addListenerConfiguration

public void addListenerConfiguration(ProgressListenerConfiguration plc)
Specified by:
addListenerConfiguration in interface EventConsumerConfiguration

getListenerConfigurations

public java.util.List<ProgressListenerConfiguration> getListenerConfigurations()
Specified by:
getListenerConfigurations in interface EventConsumerConfiguration

clone

public FileBasedEventConsumerConfiguration clone()
Overrides:
clone in class BaseConfiguration


Copyright © 2008-2012 GeoSolutions. All Rights Reserved.