Class CleanupDatabaseJob

    • Constructor Detail

      • CleanupDatabaseJob

        public CleanupDatabaseJob()
    • Method Detail

      • beforeExecuteJob

        public boolean beforeExecuteJob()
        Description copied from class: JobDef
        Called before executeJob to prepare resources for executeJob method. Returns false if job does not need to run
        beforeExecuteJob in class JobDef
      • execute

        public void execute()
        Description copied from interface: IJob
        Actual implementation of the IJob. Is wrapped around a Locker, exceptions and statistics will be managed automatically.
      • getAllLockerDatasourceNames

        protected Set<String> getAllLockerDatasourceNames()
        Locate all Lockers, and find out which datasources are used.
        distinct list of all datasourceNames used by lockers
      • getAllMessageLogs

        protected List<nl.nn.adapterframework.scheduler.job.CleanupDatabaseJob.MessageLogObject> getAllMessageLogs()
      • setQueryTimeout

        public void setQueryTimeout​(int i)
        The number of seconds the database driver will wait for a statement to execute. If the limit is exceeded, a TimeoutException is thrown. 0 means no timeout
        Default value
      • getCleanUpIbisstoreQuery

        public String getCleanUpIbisstoreQuery​(String tableName,
                                               String keyField,
                                               String typeField,
                                               String expiryDateField,
                                               int maxRows,
                                               Dbms dbmsName)
      • getQueryTimeout

        public int getQueryTimeout()