public Fingerprint(@CheckForNull Run build, @Nonnull String fileName, @Nonnull byte[] md5sum) throws IOException { this(build==null ? null : new BuildPtr(build), fileName, md5sum); save(); }
/** * Records that a build of a job has used this file. */ public synchronized void add(@Nonnull String jobFullName, int n) throws IOException { addWithoutSaving(jobFullName, n); save(); }
/** * Update references to a renamed job in the fingerprint */ public synchronized void rename(String oldName, String newName) throws IOException { boolean touched = false; if (original != null) { if (original.getName().equals(oldName)) { original.setName(newName); touched = true; } } if (usages != null) { RangeSet r = usages.get(oldName); if (r != null) { usages.put(newName, r); usages.remove(oldName); touched = true; } } if (touched) { save(); } }
/** * Save the settings to a file. * @throws IOException Save error */ public synchronized void save() throws IOException { if(BulkChange.contains(this)) return; long start=0; if(logger.isLoggable(Level.FINE)) start = System.currentTimeMillis(); File file = getFingerprintFile(md5sum); save(file); SaveableListener.fireOnChange(this, getConfigFile(file)); if(logger.isLoggable(Level.FINE)) logger.fine("Saving fingerprint "+file+" took "+(System.currentTimeMillis()-start)+"ms"); }
logger.log(Level.FINE, "Saving trimmed {0}", getFingerprintFile(md5sum)); save();
public Fingerprint(Run build, String fileName, byte[] md5sum) throws IOException { this.original = build==null ? null : new BuildPtr(build); this.md5sum = md5sum; this.fileName = fileName; this.timestamp = new Date(); save(); }
public Fingerprint(Run build, String fileName, byte[] md5sum) throws IOException { this.original = build==null ? null : new BuildPtr(build); this.md5sum = md5sum; this.fileName = fileName; this.timestamp = new Date(); save(); }
public Fingerprint(@CheckForNull Run build, @Nonnull String fileName, @Nonnull byte[] md5sum) throws IOException { this(build==null ? null : new BuildPtr(build), fileName, md5sum); save(); }
/** * Records that a build of a job has used this file. */ public synchronized void add(@Nonnull String jobFullName, int n) throws IOException { addWithoutSaving(jobFullName, n); save(); }
public Fingerprint(Run build, String fileName, byte[] md5sum) throws IOException { this.original = build==null ? null : new BuildPtr(build); this.md5sum = md5sum; this.fileName = fileName; this.timestamp = new Date(); save(); }
public Fingerprint(Run build, String fileName, byte[] md5sum) throws IOException { this.original = build == null ? null : new BuildPtr(build); this.md5sum = md5sum; this.fileName = fileName; this.timestamp = new Date(); save(); }
public synchronized void save(@Nonnull final TriggerEntry entry) throws IOException, InterruptedException { entry.getFingerprint().save(); }
/** * Records that a build of a job has used this file. */ public synchronized void add(String jobFullName, int n) throws IOException { synchronized(usages) { RangeSet r = usages.get(jobFullName); if(r==null) { r = new RangeSet(); usages.put(jobFullName,r); } r.add(n); } save(); }
/** * Records that a build of a job has used this file. */ public synchronized void add(String jobFullName, int n) throws IOException { synchronized(usages) { RangeSet r = usages.get(jobFullName); if(r==null) { r = new RangeSet(); usages.put(jobFullName,r); } r.add(n); } save(); }
public void add(ContainerRecord r) throws IOException { for (ContainerRecord e : records) { if (e.equals(r)) return; } records.add(r); getFingerprint().save(); }
/** * Records that a build of a job has used this file. */ public synchronized void add(String jobFullName, int n) throws IOException { synchronized(usages) { RangeSet r = usages.get(jobFullName); if(r==null) { r = new RangeSet(); usages.put(jobFullName,r); } r.add(n); } save(); }
/** * Records that a build of a job has used this file. */ public synchronized void add(String jobFullName, int n) throws IOException { addWithoutSaving(jobFullName, n); getFingerprint().save(); }
/** * Records that a build of a job has used this file. */ public synchronized void add(String jobFullName, int n) throws IOException { synchronized (usages) { RangeSet r = usages.get(jobFullName); if (r == null) { r = new RangeSet(); usages.put(jobFullName, r); } r.add(n); } save(); }
public void add(ContainerRecord r) throws IOException { for (ContainerRecord e : records) { if (e.equals(r)) return; } records.add(r); getFingerprint().save(); }
/** * Records that a build of a job has used this file. */ public synchronized void add(String jobFullName, int n) throws IOException { addWithoutSaving(jobFullName, n); getFingerprint().save(); }