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 ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeletes the fingerprint with the given id from the PostgreSQL instance.static PostgreSQLFingerprintStorageget()io.jenkins.plugins.postgresql.PostgreSQLFingerprintStorage.ConnectionSupplierbooleanisReady()Returns true if there are fingerprints associate with the instance ID inside PostgreSQL instance.voiditerateAndCleanupFingerprints(TaskListener taskListener) Returns the fingerprint associated with the given unique id and the Jenkins instance ID, from the PostgreSQL instance.voidsave(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:
savein classFingerprintStorage- Throws:
IOException
-
load
Returns the fingerprint associated with the given unique id and the Jenkins instance ID, from the PostgreSQL instance.- Specified by:
loadin classFingerprintStorage- Throws:
IOException
-
delete
Deletes the fingerprint with the given id from the PostgreSQL instance.- Specified by:
deletein classFingerprintStorage- Throws:
IOException
-
isReady
public boolean isReady()Returns true if there are fingerprints associate with the instance ID inside PostgreSQL instance.- Specified by:
isReadyin classFingerprintStorage
-
iterateAndCleanupFingerprints
- Specified by:
iterateAndCleanupFingerprintsin classFingerprintStorage
-