From 0e16488ca8898de80b8e169d03a78c64a9e26816 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Fri, 28 Mar 2008 15:05:06 +0000 Subject: * Introduced base abstract provider class for GridData --- OpenSim/Framework/Data.DB4o/DB4oGridData.cs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'OpenSim/Framework/Data.DB4o') diff --git a/OpenSim/Framework/Data.DB4o/DB4oGridData.cs b/OpenSim/Framework/Data.DB4o/DB4oGridData.cs index 9320ef9..31b13e3 100644 --- a/OpenSim/Framework/Data.DB4o/DB4oGridData.cs +++ b/OpenSim/Framework/Data.DB4o/DB4oGridData.cs @@ -34,7 +34,7 @@ namespace OpenSim.Framework.Data.DB4o /// /// A grid server storage mechanism employing the DB4o database system /// - internal class DB4oGridData : IGridData + internal class DB4oGridData : GridDataBase { /// /// The database manager object @@ -44,7 +44,7 @@ namespace OpenSim.Framework.Data.DB4o /// /// Called when the plugin is first loaded (as constructors are not called) /// - public void Initialise() + override public void Initialise() { manager = new DB4oGridManager("gridserver.yap"); } @@ -57,7 +57,7 @@ namespace OpenSim.Framework.Data.DB4o /// maximum X coordinate /// maximum Y coordinate /// An array of region profiles - public RegionProfileData[] GetProfilesInRange(uint a, uint b, uint c, uint d) + override public RegionProfileData[] GetProfilesInRange(uint a, uint b, uint c, uint d) { return null; } @@ -67,7 +67,7 @@ namespace OpenSim.Framework.Data.DB4o /// /// The handle to search for /// A region profile - public RegionProfileData GetProfileByHandle(ulong handle) + override public RegionProfileData GetProfileByHandle(ulong handle) { lock (manager.simProfiles) { @@ -87,7 +87,7 @@ namespace OpenSim.Framework.Data.DB4o /// /// The region ID code /// A region profile - public RegionProfileData GetProfileByLLUUID(LLUUID uuid) + override public RegionProfileData GetProfileByLLUUID(LLUUID uuid) { lock (manager.simProfiles) { @@ -98,7 +98,7 @@ namespace OpenSim.Framework.Data.DB4o "). Total Registered Regions: " + manager.simProfiles.Count); } - public RegionProfileData GetProfileByString(string regionName) + override public RegionProfileData GetProfileByString(string regionName) { throw new Exception("GetProfileByString Not supported in DB4oGridData"); //return null; @@ -109,7 +109,7 @@ namespace OpenSim.Framework.Data.DB4o /// /// The profile to add /// A dataresponse enum indicating success - public DataResponse AddProfile(RegionProfileData profile) + override public DataResponse AddProfile(RegionProfileData profile) { lock (manager.simProfiles) { @@ -131,7 +131,7 @@ namespace OpenSim.Framework.Data.DB4o /// The location the region is logging into (unused in Db4o) /// The shared secret /// Authenticated? - public bool AuthenticateSim(LLUUID uuid, ulong handle, string key) + override public bool AuthenticateSim(LLUUID uuid, ulong handle, string key) { if (manager.simProfiles[uuid].regionRecvKey == key) return true; @@ -141,7 +141,7 @@ namespace OpenSim.Framework.Data.DB4o /// /// Shuts down the database /// - public void Close() + override public void Close() { manager = null; } @@ -160,7 +160,7 @@ namespace OpenSim.Framework.Data.DB4o /// Returns the providers name /// /// The name of the storage system - public string getName() + override public string getName() { return "DB4o Grid Provider"; } @@ -169,12 +169,12 @@ namespace OpenSim.Framework.Data.DB4o /// Returns the providers version /// /// The version of the storage system - public string getVersion() + override public string getVersion() { return "0.1"; } - public ReservationData GetReservationAtPoint(uint x, uint y) + override public ReservationData GetReservationAtPoint(uint x, uint y) { return null; } -- cgit v1.1