@Symbol(value="fileFingerprintStorage") @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @Extension(ordinal=-100.0) public class FileFingerprintStorage extends FingerprintStorage
Modifier and Type | Class and Description |
---|---|
static class |
FileFingerprintStorage.DescriptorImpl |
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
static String |
FINGERPRINTS_DIR_NAME |
Constructor and Description |
---|
FileFingerprintStorage() |
Modifier and Type | Method and Description |
---|---|
void |
delete(String id)
Deletes the Fingerprint with the given unique ID.
|
protected Fingerprint |
getFingerprint(Fingerprint fp) |
protected File |
getRootDir() |
boolean |
isReady()
Returns true if there's some data in the local fingerprint database.
|
void |
iterateAndCleanupFingerprints(TaskListener taskListener)
Perform Fingerprint cleanup.
|
static Fingerprint |
load(File file)
Load the Fingerprint stored inside the given file.
|
Fingerprint |
load(String id)
Load the Fingerprint with the given unique id.
|
protected Fingerprint |
loadFingerprint(File fingerprintFile) |
void |
save(Fingerprint fp)
Saves the given Fingerprint in local XML-based database.
|
static void |
save(Fingerprint fp,
File file)
Saves the given Fingerprint as XML inside file.
|
cleanFingerprint, get, getDescriptor, getFileFingerprintStorage
public static final String FINGERPRINTS_DIR_NAME
@CheckForNull public Fingerprint load(@NonNull String id) throws IOException
load
in class FingerprintStorage
IOException
- Load error@CheckForNull public static Fingerprint load(@NonNull File file) throws IOException
IOException
public void save(Fingerprint fp) throws IOException
save
in class FingerprintStorage
IOException
- Save errorpublic static void save(Fingerprint fp, File file) throws IOException
IOException
public void delete(String id) throws IOException
delete
in class FingerprintStorage
IOException
- Deletion errorpublic boolean isReady()
isReady
in class FingerprintStorage
public void iterateAndCleanupFingerprints(TaskListener taskListener)
iterateAndCleanupFingerprints
in class FingerprintStorage
protected Fingerprint loadFingerprint(File fingerprintFile) throws IOException
IOException
protected Fingerprint getFingerprint(Fingerprint fp) throws IOException
getFingerprint
in class FingerprintStorage
IOException
protected File getRootDir()
Copyright © 2004–2021. All rights reserved.