fr.fastconnect.gigaspaces.datasource
Interface ExecutionFailureStrategy

All Known Implementing Classes:
SpaceStorageExecutionFailureStrategy

public interface ExecutionFailureStrategy

Defines a mechanism allowing to handle failure to delegate to a particular BulkDataPersister.executeBulk(List) implementation.


Method Summary
 void handleExecutionFailure(com.gigaspaces.datasource.BulkDataPersister bulkDataPersister, java.util.List<com.gigaspaces.datasource.BulkItem> bulkItems, com.gigaspaces.datasource.DataSourceException exception)
          Deals with the DataException thrown by a BulkDataPersister.executeBulk(List).
 void init(java.util.Properties properties)
          Allows the ExecutionFailureStrategy to be configured using the Properties object from com.gigaspaces.datasource.ManagedDataSource.ManagedDataSource#init(Properties).
 

Method Detail

init

void init(java.util.Properties properties)
          throws com.gigaspaces.datasource.DataSourceException
Allows the ExecutionFailureStrategy to be configured using the Properties object from com.gigaspaces.datasource.ManagedDataSource.ManagedDataSource#init(Properties).

Parameters:
properties - the Properties received by com.gigaspaces.datasource.ManagedDataSource.ManagedDataSource#init(Properties)
Throws:
com.gigaspaces.datasource.DataSourceException - if thrown is propagated to com.gigaspaces.datasource.ManagedDataSource.ManagedDataSource#init(Properties)

handleExecutionFailure

void handleExecutionFailure(com.gigaspaces.datasource.BulkDataPersister bulkDataPersister,
                            java.util.List<com.gigaspaces.datasource.BulkItem> bulkItems,
                            com.gigaspaces.datasource.DataSourceException exception)
                            throws java.lang.Exception
Deals with the DataException thrown by a BulkDataPersister.executeBulk(List).
If this method itself throws an exception then we delegate the call to CompositeBulkDataPersister#handleUnrecuperableException(BulkDataPersister, List).

Parameters:
bulkDataPersister - the persister used
bulkItems - the information received
exception - the Exception thrown by the BulkDataPersister.executeBulk(List) execution.
Throws:
java.lang.Exception - delegates failure to CompositeBulkDataPersister#handleUnrecuperableException(BulkDataPersister, List)


Copyright © 2007-2009 FastConnect. All Rights Reserved.