Class HealthcheckFileWriter

  • All Implemented Interfaces:
    Sweepable

    @Component
    public class HealthcheckFileWriter
    extends Object
    implements Sweepable
    The purpose of this class is to write the healthcheck result to a file every minute. Nothing else This will allow services like docker to perform a healthcheck on services which are not listening to http (i.e. idm, groovy manager, etc)
    Author:
    lbornova
    • Constructor Detail

      • HealthcheckFileWriter

        public HealthcheckFileWriter()
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • sweep

        @Scheduled(fixedRateString="${org.openiam.health.check.sweeptime:30000}")
        public void sweep()
        Description copied from interface: Sweepable
        Placeholder for Spring to call via Quartz. Required for @Transactional sweeper methods.
        Specified by:
        sweep in interface Sweepable