diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Grid/AssetInventoryServer/Plugins/NullMetrics.cs (renamed from OpenSim/Grid/AssetInventoryServer/Extensions/NullMetrics.cs) | 48 |
1 files changed, 37 insertions, 11 deletions
diff --git a/OpenSim/Grid/AssetInventoryServer/Extensions/NullMetrics.cs b/OpenSim/Grid/AssetInventoryServer/Plugins/NullMetrics.cs index ba190c1..86ae5cd 100644 --- a/OpenSim/Grid/AssetInventoryServer/Extensions/NullMetrics.cs +++ b/OpenSim/Grid/AssetInventoryServer/Plugins/NullMetrics.cs | |||
@@ -28,12 +28,11 @@ | |||
28 | */ | 28 | */ |
29 | 29 | ||
30 | using System; | 30 | using System; |
31 | using ExtensionLoader; | ||
32 | using OpenMetaverse; | 31 | using OpenMetaverse; |
33 | 32 | ||
34 | namespace OpenSim.Grid.AssetInventoryServer.Extensions | 33 | namespace OpenSim.Grid.AssetInventoryServer.Plugins |
35 | { | 34 | { |
36 | public class NullMetrics : IExtension<AssetInventoryServer>, IMetricsProvider | 35 | public class NullMetrics : IMetricsProvider |
37 | { | 36 | { |
38 | AssetInventoryServer server; | 37 | AssetInventoryServer server; |
39 | 38 | ||
@@ -41,14 +40,7 @@ namespace OpenSim.Grid.AssetInventoryServer.Extensions | |||
41 | { | 40 | { |
42 | } | 41 | } |
43 | 42 | ||
44 | public void Start(AssetInventoryServer server) | 43 | #region IMetricsProvider implementation |
45 | { | ||
46 | this.server = server; | ||
47 | } | ||
48 | |||
49 | public void Stop() | ||
50 | { | ||
51 | } | ||
52 | 44 | ||
53 | public void LogAssetMetadataFetch(string extension, BackendResponse response, UUID assetID, DateTime time) | 45 | public void LogAssetMetadataFetch(string extension, BackendResponse response, UUID assetID, DateTime time) |
54 | { | 46 | { |
@@ -120,5 +112,39 @@ namespace OpenSim.Grid.AssetInventoryServer.Extensions | |||
120 | Logger.Log.DebugFormat("[{0}] InventoryPurgeFolder(): OwnerID: {1}, FolderID: {2}, Response: {3}", extension, | 112 | Logger.Log.DebugFormat("[{0}] InventoryPurgeFolder(): OwnerID: {1}, FolderID: {2}, Response: {3}", extension, |
121 | owner, response); | 113 | owner, response); |
122 | } | 114 | } |
115 | |||
116 | #endregion IMetricsProvider implementation | ||
117 | |||
118 | #region IPlugin implementation | ||
119 | |||
120 | public void Initialise(AssetInventoryServer server) | ||
121 | { | ||
122 | this.server = server; | ||
123 | } | ||
124 | |||
125 | /// <summary> | ||
126 | /// <para>Initialises metrics interface</para> | ||
127 | /// </summary> | ||
128 | public void Initialise() | ||
129 | { | ||
130 | this.server = null; | ||
131 | } | ||
132 | |||
133 | public void Dispose() | ||
134 | { | ||
135 | } | ||
136 | |||
137 | public string Version | ||
138 | { | ||
139 | // TODO: this should be something meaningful and not hardcoded? | ||
140 | get { return "0.1"; } | ||
141 | } | ||
142 | |||
143 | public string Name | ||
144 | { | ||
145 | get { return "AssetInventoryServer Null Metrics"; } | ||
146 | } | ||
147 | |||
148 | #endregion IPlugin implementation | ||
123 | } | 149 | } |
124 | } | 150 | } |