Class AbstractJavaDataSetRegistrationDropboxV2

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isRetryFunctionDefined()
      A retry function is always defined.
      void postMetadataRegistration​(ch.systemsx.cisd.etlserver.registrator.DataSetRegistrationContext context)
      Default implementation is to do nothing.
      void postStorage​(ch.systemsx.cisd.etlserver.registrator.DataSetRegistrationContext context)
      Default implementation is to do nothing.
      void preMetadataRegistration​(ch.systemsx.cisd.etlserver.registrator.DataSetRegistrationContext context)
      Default implementation is to do nothing.
      void rollbackPreRegistration​(ch.systemsx.cisd.etlserver.registrator.DataSetRegistrationContext context, java.lang.Throwable throwable)
      Default implementation is to do nothing.
      boolean shouldRetryProcessing​(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
    • Constructor Detail

      • AbstractJavaDataSetRegistrationDropboxV2

        public AbstractJavaDataSetRegistrationDropboxV2()
    • Method Detail

      • postStorage

        public void postStorage​(ch.systemsx.cisd.etlserver.registrator.DataSetRegistrationContext context)
        Default implementation is to do nothing. Subclasses may override.
        Specified by:
        postStorage in interface IJavaDataSetRegistrationDropboxV2
        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:
        preMetadataRegistration in interface IJavaDataSetRegistrationDropboxV2
        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:
        postMetadataRegistration in interface IJavaDataSetRegistrationDropboxV2
        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:
        rollbackPreRegistration in interface IJavaDataSetRegistrationDropboxV2
        Parameters:
        context - Context of the registration. Offers access to the global state and persistent map.
        throwable - The throwable that triggered rollback.
      • shouldRetryProcessing

        public boolean shouldRetryProcessing​(ch.systemsx.cisd.etlserver.registrator.DataSetRegistrationContext context,
                                             java.lang.Exception problem)
                                      throws ch.systemsx.cisd.common.exceptions.NotImplementedException
        Default implementation is to not retry processing.
        Specified by:
        shouldRetryProcessing in interface IJavaDataSetRegistrationDropboxV2
        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