aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/IAssetServer.cs
diff options
context:
space:
mode:
authorDiva Canto2009-08-10 07:13:13 -0700
committerDiva Canto2009-08-10 07:13:13 -0700
commit024755d8b7c96fc9a14b6ebbe40765533b685d94 (patch)
treeab4c3af4de5cf77e011b90a48b8cd90d5b5bfe8a /OpenSim/Framework/IAssetServer.cs
parentMore clean up from asset cache legacy. None of these classes are used anymore. (diff)
downloadopensim-SC_OLD-024755d8b7c96fc9a14b6ebbe40765533b685d94.zip
opensim-SC_OLD-024755d8b7c96fc9a14b6ebbe40765533b685d94.tar.gz
opensim-SC_OLD-024755d8b7c96fc9a14b6ebbe40765533b685d94.tar.bz2
opensim-SC_OLD-024755d8b7c96fc9a14b6ebbe40765533b685d94.tar.xz
Slowly working my way towards the elimination of IAssetServer and IAssetCache.
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/IAssetServer.cs104
1 files changed, 3 insertions, 101 deletions
diff --git a/OpenSim/Framework/IAssetServer.cs b/OpenSim/Framework/IAssetServer.cs
index 756ef8b..dbdf544 100644
--- a/OpenSim/Framework/IAssetServer.cs
+++ b/OpenSim/Framework/IAssetServer.cs
@@ -29,108 +29,10 @@ using OpenMetaverse;
29 29
30namespace OpenSim.Framework 30namespace OpenSim.Framework
31{ 31{
32 /// <summary> 32 ///// <summary>
33 /// Description of IAssetServer. 33 ///// Description of IAssetServer.
34 /// </summary> 34 ///// </summary>
35 public interface IAssetServer : IPlugin 35 public interface IAssetServer : IPlugin
36 { 36 {
37 void Initialise(ConfigSettings settings);
38 void Initialise(ConfigSettings settings, string url, string dir, bool test);
39 void Initialise(ConfigSettings settings, string url);
40
41 /// <summary>
42 /// Start the asset server
43 /// </summary>
44 void Start();
45
46 /// <summary>
47 /// Stop the asset server
48 /// </summary>
49 void Stop();
50
51 void SetReceiver(IAssetReceiver receiver);
52 void RequestAsset(UUID assetID, bool isTexture);
53 void StoreAsset(AssetBase asset);
54 void UpdateAsset(AssetBase asset);
55 } 37 }
56
57 /// <summary>
58 /// Implemented by classes which with to asynchronously receive asset data from the asset service
59 /// </summary>
60 /// <remarks>could change to delegate?</remarks>
61 public interface IAssetReceiver
62 {
63 /// <summary>
64 /// Call back made when a requested asset has been retrieved by an asset server
65 /// </summary>
66 /// <param name="asset"></param>
67 /// <param name="IsTexture"></param>
68 void AssetReceived(AssetBase asset, bool IsTexture);
69
70 /// <summary>
71 /// Call back made when an asset server could not retrieve a requested asset
72 /// </summary>
73 /// <param name="assetID"></param>
74 /// <param name="IsTexture"></param>
75 void AssetNotFound(UUID assetID, bool IsTexture);
76 }
77
78 public class AssetClientPluginInitialiser : PluginInitialiserBase
79 {
80 private ConfigSettings config;
81
82 public AssetClientPluginInitialiser (ConfigSettings p_sv)
83 {
84 config = p_sv;
85 }
86 public override void Initialise (IPlugin plugin)
87 {
88 IAssetServer p = plugin as IAssetServer;
89 p.Initialise (config);
90 }
91 }
92
93 public class LegacyAssetClientPluginInitialiser : PluginInitialiserBase
94 {
95 private ConfigSettings config;
96 private string assetURL;
97
98 public LegacyAssetClientPluginInitialiser (ConfigSettings p_sv, string p_url)
99 {
100 config = p_sv;
101 assetURL = p_url;
102 }
103 public override void Initialise (IPlugin plugin)
104 {
105 IAssetServer p = plugin as IAssetServer;
106 p.Initialise (config, assetURL);
107 }
108 }
109
110 public class CryptoAssetClientPluginInitialiser : PluginInitialiserBase
111 {
112 private ConfigSettings config;
113 private string assetURL;
114 private string currdir;
115 private bool test;
116
117 public CryptoAssetClientPluginInitialiser (ConfigSettings p_sv, string p_url, string p_dir, bool p_test)
118 {
119 config = p_sv;
120 assetURL = p_url;
121 currdir = p_dir;
122 test = p_test;
123 }
124 public override void Initialise (IPlugin plugin)
125 {
126 IAssetServer p = plugin as IAssetServer;
127 p.Initialise (config, assetURL, currdir, test);
128 }
129 }
130
131 public interface IAssetPlugin
132 {
133 IAssetServer GetAssetServer();
134 }
135
136} 38}