-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #138 from HermesGermany/next_minor
Prepare Release 2.3.0
- Loading branch information
Showing
25 changed files
with
621 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...in/java/com/hermesworld/ais/galapagos/adminjobs/impl/CleanupDeveloperCertificatesJob.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package com.hermesworld.ais.galapagos.adminjobs.impl; | ||
|
||
import com.hermesworld.ais.galapagos.adminjobs.AdminJob; | ||
import com.hermesworld.ais.galapagos.devcerts.DeveloperCertificateService; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.boot.ApplicationArguments; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
public class CleanupDeveloperCertificatesJob implements AdminJob { | ||
|
||
private final DeveloperCertificateService developerCertificateService; | ||
|
||
@Autowired | ||
public CleanupDeveloperCertificatesJob(DeveloperCertificateService developerCertificateService) { | ||
this.developerCertificateService = developerCertificateService; | ||
} | ||
|
||
@Override | ||
public String getJobName() { | ||
return "cleanup-developer-certificates"; | ||
} | ||
|
||
@Override | ||
public void run(ApplicationArguments allArguments) throws Exception { | ||
System.out.println(); | ||
System.out.println( | ||
"========================= Starting Cleanup of expired Developer Certificates on all Kafka clusters ========================"); | ||
System.out.println(); | ||
|
||
System.out.println("========================= Cleanup of total " | ||
+ developerCertificateService.clearExpiredDeveloperCertificatesOnAllClusters().get() | ||
+ " expired Developer Certificates on all Kafka clusters was successful ========================"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...n/java/com/hermesworld/ais/galapagos/devcerts/controller/DeveloperCertificateInfoDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.