Package io.jenkins.plugins.postgresql
Class PostgreSQLFingerprintStorage
java.lang.Object
hudson.model.AbstractDescribableImpl<FingerprintStorage>
jenkins.fingerprints.FingerprintStorage
io.jenkins.plugins.postgresql.PostgreSQLFingerprintStorage
- All Implemented Interfaces:
ExtensionPoint
,Describable<FingerprintStorage>
Pluggable external fingerprint storage for fingerprints into PostgreSQL.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deletes the fingerprint with the given id from the PostgreSQL instance.static PostgreSQLFingerprintStorage
get()
io.jenkins.plugins.postgresql.PostgreSQLFingerprintStorage.ConnectionSupplier
boolean
isReady()
Returns true if there are fingerprints associate with the instance ID inside PostgreSQL instance.void
iterateAndCleanupFingerprints
(TaskListener taskListener) Returns the fingerprint associated with the given unique id and the Jenkins instance ID, from the PostgreSQL instance.void
save
(Fingerprint fingerprint) Saves the given fingerprint inside the PostgreSQL instance.Methods inherited from class jenkins.fingerprints.FingerprintStorage
cleanFingerprint, getDescriptor, getFileFingerprintStorage, getFingerprint
-
Constructor Details
-
PostgreSQLFingerprintStorage
- Throws:
IOException
-
-
Method Details
-
get
-
getConnectionSupplier
public io.jenkins.plugins.postgresql.PostgreSQLFingerprintStorage.ConnectionSupplier getConnectionSupplier() -
save
Saves the given fingerprint inside the PostgreSQL instance.- Specified by:
save
in classFingerprintStorage
- Throws:
IOException
-
load
Returns the fingerprint associated with the given unique id and the Jenkins instance ID, from the PostgreSQL instance.- Specified by:
load
in classFingerprintStorage
- Throws:
IOException
-
delete
Deletes the fingerprint with the given id from the PostgreSQL instance.- Specified by:
delete
in classFingerprintStorage
- Throws:
IOException
-
isReady
public boolean isReady()Returns true if there are fingerprints associate with the instance ID inside PostgreSQL instance.- Specified by:
isReady
in classFingerprintStorage
-
iterateAndCleanupFingerprints
- Specified by:
iterateAndCleanupFingerprints
in classFingerprintStorage
-