Permalink
Browse files

Move store-specific stats to node/stats/store/

  • Loading branch information...
1 parent 7fb724b commit a59255dd9fe93b1203066dfcf1965db5a324d123 @toad toad committed Apr 14, 2012
@@ -32,10 +32,10 @@
import freenet.node.fcp.UploadDirRequestStatus;
import freenet.node.fcp.UploadFileRequestStatus;
import freenet.node.requests.RequestTracker;
-import freenet.node.stats.DataStoreInstanceType;
-import freenet.node.stats.DataStoreStats;
-import freenet.node.stats.StatsNotAvailableException;
-import freenet.node.stats.StoreAccessStats;
+import freenet.node.stats.store.DataStoreInstanceType;
+import freenet.node.stats.store.DataStoreStats;
+import freenet.node.stats.store.StatsNotAvailableException;
+import freenet.node.stats.store.StoreAccessStats;
import freenet.pluginmanager.PluginInfoWrapper;
import freenet.pluginmanager.PluginManager;
import freenet.support.BandwidthStatsContainer;
@@ -31,10 +31,10 @@
import freenet.node.RequestStarterGroup;
import freenet.node.Version;
import freenet.node.requests.RequestTracker;
-import freenet.node.stats.DataStoreInstanceType;
-import freenet.node.stats.DataStoreStats;
-import freenet.node.stats.StatsNotAvailableException;
-import freenet.node.stats.StoreAccessStats;
+import freenet.node.stats.store.DataStoreInstanceType;
+import freenet.node.stats.store.DataStoreStats;
+import freenet.node.stats.store.StatsNotAvailableException;
+import freenet.node.stats.store.StoreAccessStats;
import freenet.support.BandwidthStatsContainer;
import freenet.support.HTMLNode;
import freenet.support.SizeUtil;
View
@@ -4,13 +4,13 @@
/* Freenet 0.7 node. */
package freenet.node;
-import static freenet.node.stats.DataStoreKeyType.CHK;
-import static freenet.node.stats.DataStoreKeyType.PUB_KEY;
-import static freenet.node.stats.DataStoreKeyType.SSK;
-import static freenet.node.stats.DataStoreType.CACHE;
-import static freenet.node.stats.DataStoreType.CLIENT;
-import static freenet.node.stats.DataStoreType.SLASHDOT;
-import static freenet.node.stats.DataStoreType.STORE;
+import static freenet.node.stats.store.DataStoreKeyType.CHK;
+import static freenet.node.stats.store.DataStoreKeyType.PUB_KEY;
+import static freenet.node.stats.store.DataStoreKeyType.SSK;
+import static freenet.node.stats.store.DataStoreType.CACHE;
+import static freenet.node.stats.store.DataStoreType.CLIENT;
+import static freenet.node.stats.store.DataStoreType.SLASHDOT;
+import static freenet.node.stats.store.DataStoreType.STORE;
import java.io.BufferedReader;
import java.io.EOFException;
@@ -120,10 +120,10 @@
import freenet.node.requests.RequestTag;
import freenet.node.requests.RequestTracker;
import freenet.node.requests.SSKInsertSender;
-import freenet.node.stats.DataStoreInstanceType;
-import freenet.node.stats.DataStoreStats;
-import freenet.node.stats.NotAvailNodeStoreStats;
-import freenet.node.stats.StoreCallbackStats;
+import freenet.node.stats.store.DataStoreInstanceType;
+import freenet.node.stats.store.DataStoreStats;
+import freenet.node.stats.store.NotAvailNodeStoreStats;
+import freenet.node.stats.store.StoreCallbackStats;
import freenet.node.transport.DNSRequester;
import freenet.node.transport.NodeCrypto;
import freenet.node.transport.NodeCryptoConfig;
@@ -26,8 +26,8 @@
import freenet.node.requests.RequestTracker.CountedRequests;
import freenet.node.SecurityLevels.NETWORK_THREAT_LEVEL;
import freenet.node.requests.UIDTag;
-import freenet.node.stats.StatsNotAvailableException;
-import freenet.node.stats.StoreLocationStats;
+import freenet.node.stats.store.StatsNotAvailableException;
+import freenet.node.stats.store.StoreLocationStats;
import freenet.store.CHKStore;
import freenet.support.HTMLNode;
import freenet.support.Histogram2;
@@ -1,4 +1,4 @@
-package freenet.node.stats;
+package freenet.node.stats.store;
/**
* This class represents one instance of data store.
@@ -1,7 +1,7 @@
/* This code is part of Freenet. It is distributed under the GNU General
* Public License, version 2 (or at your option any later version). See
* http://www.gnu.org/ for further details of the GPL. */
-package freenet.node.stats;
+package freenet.node.stats.store;
/**
* enum for key types of existing data stores
@@ -1,7 +1,7 @@
/* This code is part of Freenet. It is distributed under the GNU General
* Public License, version 2 (or at your option any later version). See
* http://www.gnu.org/ for further details of the GPL. */
-package freenet.node.stats;
+package freenet.node.stats.store;
/**
* This interface represents the data we can publish on our stats page for a given instance of a data store.
@@ -1,7 +1,7 @@
/* This code is part of Freenet. It is distributed under the GNU General
* Public License, version 2 (or at your option any later version). See
* http://www.gnu.org/ for further details of the GPL. */
-package freenet.node.stats;
+package freenet.node.stats.store;
/**
* Enum for data store types
@@ -1,7 +1,7 @@
/* This code is part of Freenet. It is distributed under the GNU General
* Public License, version 2 (or at your option any later version). See
* http://www.gnu.org/ for further details of the GPL. */
-package freenet.node.stats;
+package freenet.node.stats.store;
/**
* This implementation is used for data stores that have no aggregated stats
@@ -1,7 +1,7 @@
/* This code is part of Freenet. It is distributed under the GNU General
* Public License, version 2 (or at your option any later version). See
* http://www.gnu.org/ for further details of the GPL. */
-package freenet.node.stats;
+package freenet.node.stats.store;
/**
* @author nikotyan
@@ -1,4 +1,4 @@
-package freenet.node.stats;
+package freenet.node.stats.store;
public abstract class StoreAccessStats {
@@ -1,7 +1,7 @@
/* This code is part of Freenet. It is distributed under the GNU General
* Public License, version 2 (or at your option any later version). See
* http://www.gnu.org/ for further details of the GPL. */
-package freenet.node.stats;
+package freenet.node.stats.store;
import freenet.store.StoreCallback;
@@ -1,7 +1,7 @@
/* This code is part of Freenet. It is distributed under the GNU General
* Public License, version 2 (or at your option any later version). See
* http://www.gnu.org/ for further details of the GPL. */
-package freenet.node.stats;
+package freenet.node.stats.store;
/**
* This interface represents aggregated stats for data store
@@ -40,7 +40,7 @@
import freenet.keys.KeyVerifyException;
import freenet.keys.SSKBlock;
import freenet.node.SemiOrderedShutdownHook;
-import freenet.node.stats.StoreAccessStats;
+import freenet.node.stats.store.StoreAccessStats;
import freenet.support.Fields;
import freenet.support.HexUtil;
import freenet.support.Logger;
@@ -4,7 +4,7 @@
import com.sleepycat.je.DatabaseException;
-import freenet.node.stats.StoreAccessStats;
+import freenet.node.stats.store.StoreAccessStats;
/**
* Datastore interface
@@ -4,7 +4,7 @@
import com.sleepycat.je.DatabaseException;
-import freenet.node.stats.StoreAccessStats;
+import freenet.node.stats.store.StoreAccessStats;
public class NullFreenetStore<T extends StorableBlock> implements FreenetStore<T> {
@@ -7,7 +7,7 @@
import com.sleepycat.je.DatabaseException;
import freenet.keys.KeyVerifyException;
-import freenet.node.stats.StoreAccessStats;
+import freenet.node.stats.store.StoreAccessStats;
import freenet.support.ByteArrayWrapper;
import freenet.support.LRUHashtable;
import freenet.support.Logger;
@@ -10,7 +10,7 @@
import com.sleepycat.je.DatabaseException;
import freenet.keys.KeyVerifyException;
-import freenet.node.stats.StoreAccessStats;
+import freenet.node.stats.store.StoreAccessStats;
import freenet.support.ByteArrayWrapper;
import freenet.support.LRUHashtable;
import freenet.support.LogThresholdCallback;
@@ -9,7 +9,7 @@
import freenet.crypt.DSAPublicKey;
import freenet.keys.KeyVerifyException;
-import freenet.node.stats.StoreAccessStats;
+import freenet.node.stats.store.StoreAccessStats;
/**
* @author toad
@@ -37,7 +37,7 @@
import freenet.l10n.NodeL10n;
import freenet.node.FastRunnable;
import freenet.node.SemiOrderedShutdownHook;
-import freenet.node.stats.StoreAccessStats;
+import freenet.node.stats.store.StoreAccessStats;
import freenet.node.useralerts.AbstractUserAlert;
import freenet.node.useralerts.UserAlert;
import freenet.node.useralerts.UserAlertManager;

0 comments on commit a59255d

Please sign in to comment.