it.geosolutions.geobatch.actions.tools.adapter
Class AdapterAction<T extends java.util.EventObject>

java.lang.Object
  extended by it.geosolutions.geobatch.catalog.impl.BaseIdentifiable
      extended by it.geosolutions.geobatch.flow.event.action.BaseAction<java.util.EventObject>
          extended by it.geosolutions.geobatch.actions.tools.adapter.AdapterAction<T>
All Implemented Interfaces:
EventAdapter<T>, Identifiable, Action<java.util.EventObject>, Job, ListenerRegistry<ProgressListener>, java.lang.Cloneable

public abstract class AdapterAction<T extends java.util.EventObject>
extends BaseAction<java.util.EventObject>
implements EventAdapter<T>

Author:
Carlo Cancellieri - carlo.cancellieri@geo-solutions.it This class define an abstraction layer to handle and transform the input EventObject to an output instance of a derived EventObject. This is done implementing the 'adapter()' method.

Field Summary
 
Fields inherited from class it.geosolutions.geobatch.flow.event.action.BaseAction
failIgnored, listenerForwarder
 
Constructor Summary
protected AdapterAction(ActionConfiguration configuration)
           
 
Method Summary
 java.util.Queue<java.util.EventObject> execute(java.util.Queue<java.util.EventObject> events)
          EXECUTE METHOD
 
Methods inherited from class it.geosolutions.geobatch.flow.event.action.BaseAction
addListener, destroy, getProgressListener, getRunningContext, isFailIgnored, isPaused, pause, pause, removeListener, resume, setFailIgnored, setRunningContext
 
Methods inherited from class it.geosolutions.geobatch.catalog.impl.BaseIdentifiable
clone, getDescription, getId, getName, setDescription, setId, setName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.geosolutions.geobatch.actions.tools.adapter.EventAdapter
adapter
 
Methods inherited from interface it.geosolutions.geobatch.catalog.Identifiable
getDescription, getId, getName, setDescription, setId, setName
 

Constructor Detail

AdapterAction

protected AdapterAction(ActionConfiguration configuration)
                 throws java.io.IOException
Throws:
java.io.IOException
Method Detail

execute

public java.util.Queue<java.util.EventObject> execute(java.util.Queue<java.util.EventObject> events)
                                               throws ActionException
EXECUTE METHOD

Specified by:
execute in interface Action<java.util.EventObject>
Throws:
ActionException


Copyright © 2008-2012 GeoSolutions. All Rights Reserved.