Class AbstractJavaDataSetRegistrationDropboxV2
- java.lang.Object
-
- ch.systemsx.cisd.etlserver.registrator.api.v2.AbstractJavaDataSetRegistrationDropboxV2
-
- All Implemented Interfaces:
ch.ethz.cisd.hotdeploy.Plugin,IJavaDataSetRegistrationDropboxV2
public abstract class AbstractJavaDataSetRegistrationDropboxV2 extends java.lang.Object implements IJavaDataSetRegistrationDropboxV2
An abstract superclass for V2 dropboxes implemented in java
-
-
Constructor Summary
Constructors Constructor Description AbstractJavaDataSetRegistrationDropboxV2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisRetryFunctionDefined()A retry function is always defined.voidpostMetadataRegistration(ch.systemsx.cisd.etlserver.registrator.DataSetRegistrationContext context)Default implementation is to do nothing.voidpostStorage(ch.systemsx.cisd.etlserver.registrator.DataSetRegistrationContext context)Default implementation is to do nothing.voidpreMetadataRegistration(ch.systemsx.cisd.etlserver.registrator.DataSetRegistrationContext context)Default implementation is to do nothing.voidrollbackPreRegistration(ch.systemsx.cisd.etlserver.registrator.DataSetRegistrationContext context, java.lang.Throwable throwable)Default implementation is to do nothing.booleanshouldRetryProcessing(ch.systemsx.cisd.etlserver.registrator.DataSetRegistrationContext context, java.lang.Exception problem)Default implementation is to not retry processing.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ch.systemsx.cisd.etlserver.registrator.api.v2.IJavaDataSetRegistrationDropboxV2
process
-
-
-
-
Method Detail
-
postStorage
public void postStorage(ch.systemsx.cisd.etlserver.registrator.DataSetRegistrationContext context)
Default implementation is to do nothing. Subclasses may override.- Specified by:
postStoragein interfaceIJavaDataSetRegistrationDropboxV2- Parameters:
context- Context of the registration. Offers access to the global state and persistent map.
-
preMetadataRegistration
public void preMetadataRegistration(ch.systemsx.cisd.etlserver.registrator.DataSetRegistrationContext context)
Default implementation is to do nothing. Subclasses may override.- Specified by:
preMetadataRegistrationin interfaceIJavaDataSetRegistrationDropboxV2- Parameters:
context- Context of the registration. Offers access to the global state and persistent map.
-
postMetadataRegistration
public void postMetadataRegistration(ch.systemsx.cisd.etlserver.registrator.DataSetRegistrationContext context)
Default implementation is to do nothing. Subclasses may override.- Specified by:
postMetadataRegistrationin interfaceIJavaDataSetRegistrationDropboxV2- Parameters:
context- Context of the registration. Offers access to the global state and persistent map.
-
rollbackPreRegistration
public void rollbackPreRegistration(ch.systemsx.cisd.etlserver.registrator.DataSetRegistrationContext context, java.lang.Throwable throwable)Default implementation is to do nothing. Subclasses may override.- Specified by:
rollbackPreRegistrationin interfaceIJavaDataSetRegistrationDropboxV2- Parameters:
context- Context of the registration. Offers access to the global state and persistent map.throwable- The throwable that triggered rollback.
-
isRetryFunctionDefined
public final boolean isRetryFunctionDefined()
A retry function is always defined.- Specified by:
isRetryFunctionDefinedin interfaceIJavaDataSetRegistrationDropboxV2- Returns:
- true shouldRetryProcessing is defined, false otherwise.
-
shouldRetryProcessing
public boolean shouldRetryProcessing(ch.systemsx.cisd.etlserver.registrator.DataSetRegistrationContext context, java.lang.Exception problem) throws ch.systemsx.cisd.common.exceptions.NotImplementedExceptionDefault implementation is to not retry processing.- Specified by:
shouldRetryProcessingin interfaceIJavaDataSetRegistrationDropboxV2- Parameters:
context- Context of the registration. Offers access to the global state and persistent map.problem- The exception that caused the registration to fail.- Returns:
- false
- Throws:
ch.systemsx.cisd.common.exceptions.NotImplementedException
-
-