Class FcrepoFixityConfig


  • @Configuration
    @Conditional(org.fcrepo.camel.fixity.FcrepoFixityConfig.FixityEnabled.class)
    public class FcrepoFixityConfig
    extends org.fcrepo.camel.common.config.BasePropsConfig
    A configuration class for the Fixity service
    Author:
    dbernstein
    • Field Summary

      • Fields inherited from class org.fcrepo.camel.common.config.BasePropsConfig

        DEFAULT_FCREPO_CAMEL_TOOLBOX_CONFIG_FILE_PROP_SOURCE, DEFAULT_FCREPO_HOME_VALUE, FCREPO_CAMEL_CONFIG_FILE_PROP_SOURCE, FCREPO_CAMEL_CONFIG_FILE_PROPERTY, FCREPO_CAMEL_TOOLBOX_HOME_PROPERTY
    • Method Detail

      • getInputStream

        public String getInputStream()
        The jms message stream for the fixity service
        Returns:
      • getFixityDelay

        public long getFixityDelay()
        Because fixity checking can put a significant load on a server, it can be convenient to introduce a delay between each fixity check. That delay is measured in milliseconds.
      • getFixitySuccess

        public String getFixitySuccess()
        It is also possible to trigger an action on success (by default, this is a no-op):
      • getFixityFailure

        public String getFixityFailure()
        Most importantly, it is possible to configure what should happen when a fixity check fails. In the default example below, the fixity output is written to a file in `/tmp/fixityErrors.log`. But this can be changed to send a message to an email address (`fixity.failure=smtp:admin@example.org?subject=Fixity`) or use just about any other camel component.
      • http

        @Bean(name="http")
        public org.apache.camel.component.http.HttpComponent http()
      • https

        @Bean(name="https")
        public org.apache.camel.component.http.HttpComponent https()
      • fixityRoute

        @Bean
        public org.apache.camel.builder.RouteBuilder fixityRoute()