3 * Copyright © 2008 David Roden
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 package net.pterodactylus.fac.core;
23 * Data container that keeps statistics of an insert.
25 * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
29 /** The time the data was inserted. */
30 private long insertTime;
32 /** The URI the data generated. */
35 /** The time the data should be retrieved. */
36 private long checkTime;
38 /** Whether the data was already checked. */
39 private boolean checked;
41 /** Whether the data was successfully downloaded. */
42 private boolean successful;
45 * Returns the time the data was inserted.
47 * @return The time the data was inserted
49 public long getInsertTime() {
54 * Sets the time the data was inserted.
57 * The time the data was inserted
59 public void setInsertTime(long insertTime) {
60 this.insertTime = insertTime;
64 * Returns the URI generated by the data.
66 * @return The URI of the data
68 public String getURI() {
73 * Sets the URI generated by the data
78 public void setURI(String uri) {
83 * Returns the time the data should be checked.
85 * @return The time the data should be checked
87 public long getCheckTime() {
92 * Sets the time the data should be checked.
95 * The time the data should be checked
97 public void setCheckTime(long checkTime) {
98 this.checkTime = checkTime;
102 * Returns whether the data has already been checked, i.e. a check already
105 * @return <code>true</code> if the data was already checked,
106 * <code>false</code> otherwise
108 public boolean isChecked() {
113 * Sets whether the data has already been checked, i.e. a check already
117 * <code>true</code> if the data was already checked,
118 * <code>false</code> otherwise
120 public void setChecked(boolean checked) {
121 this.checked = checked;
125 * Returns whether the data was checked successfully.
127 * @return <code>true</code> if the data was checked successfully,
128 * <code>false</code> otherwise
130 public boolean isSuccessful() {
135 * Sets whether the data was checked successfully.
138 * <code>true</code> if the data was checked successfully,
139 * <code>false</code> otherwise
141 public void setSuccessful(boolean successful) {
142 this.successful = successful;