diff options
author | MW | 2007-06-14 12:27:36 +0000 |
---|---|---|
committer | MW | 2007-06-14 12:27:36 +0000 |
commit | 3aecb5437953c793212834e0e9426a4852d85458 (patch) | |
tree | a3d868c450467afee2f557ee85717d1269cf39d0 /OpenSim/OpenSim.GridInterfaces/Local/LocalAssetServer.cs | |
parent | * Applied Prebuild fixes to Sugilite (diff) | |
download | opensim-SC-3aecb5437953c793212834e0e9426a4852d85458.zip opensim-SC-3aecb5437953c793212834e0e9426a4852d85458.tar.gz opensim-SC-3aecb5437953c793212834e0e9426a4852d85458.tar.bz2 opensim-SC-3aecb5437953c793212834e0e9426a4852d85458.tar.xz |
Deleted IGridServer interface (and classes implementing that).
Diffstat (limited to 'OpenSim/OpenSim.GridInterfaces/Local/LocalAssetServer.cs')
-rw-r--r-- | OpenSim/OpenSim.GridInterfaces/Local/LocalAssetServer.cs | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/OpenSim/OpenSim.GridInterfaces/Local/LocalAssetServer.cs b/OpenSim/OpenSim.GridInterfaces/Local/LocalAssetServer.cs index ae394c4..70b14c2 100644 --- a/OpenSim/OpenSim.GridInterfaces/Local/LocalAssetServer.cs +++ b/OpenSim/OpenSim.GridInterfaces/Local/LocalAssetServer.cs | |||
@@ -66,16 +66,16 @@ namespace OpenSim.GridInterfaces.Local | |||
66 | this._assetRequests = new BlockingQueue<ARequest>(); | 66 | this._assetRequests = new BlockingQueue<ARequest>(); |
67 | yapfile = System.IO.File.Exists("assets.yap"); | 67 | yapfile = System.IO.File.Exists("assets.yap"); |
68 | 68 | ||
69 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.VERBOSE,"Local Asset Server class created"); | 69 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.VERBOSE, "Local Asset Server class created"); |
70 | try | 70 | try |
71 | { | 71 | { |
72 | db = Db4oFactory.OpenFile("assets.yap"); | 72 | db = Db4oFactory.OpenFile("assets.yap"); |
73 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.VERBOSE,"Db4 Asset database creation"); | 73 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.VERBOSE, "Db4 Asset database creation"); |
74 | } | 74 | } |
75 | catch (Exception e) | 75 | catch (Exception e) |
76 | { | 76 | { |
77 | db.Close(); | 77 | db.Close(); |
78 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.MEDIUM,"Db4 Asset server :Constructor - Exception occured"); | 78 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(LogPriority.MEDIUM, "Db4 Asset server :Constructor - Exception occured"); |
79 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, e.ToString()); | 79 | OpenSim.Framework.Console.MainConsole.Instance.WriteLine(OpenSim.Framework.Console.LogPriority.MEDIUM, e.ToString()); |
80 | } | 80 | } |
81 | if (!yapfile) | 81 | if (!yapfile) |
@@ -295,4 +295,18 @@ namespace OpenSim.GridInterfaces.Local | |||
295 | //info.loaded=true; | 295 | //info.loaded=true; |
296 | } | 296 | } |
297 | } | 297 | } |
298 | public class AssetUUIDQuery : Predicate | ||
299 | { | ||
300 | private LLUUID _findID; | ||
301 | |||
302 | public AssetUUIDQuery(LLUUID find) | ||
303 | { | ||
304 | _findID = find; | ||
305 | } | ||
306 | public bool Match(AssetStorage asset) | ||
307 | { | ||
308 | return (asset.UUID == _findID); | ||
309 | } | ||
310 | } | ||
311 | |||
298 | } | 312 | } |