pub struct ObjectTracker {
    pub(crate) object_id_generator: Mutex<StdRng>,
    pub(crate) object_map: DashMap<ObjectId, Arc<Object>>,
    pub(crate) version_manager: VersionManager,
}

Fields§

§object_id_generator: Mutex<StdRng>§object_map: DashMap<ObjectId, Arc<Object>>§version_manager: VersionManager

Implementations§

source§

impl ObjectTracker

source

pub fn new(client_id: u16) -> Option<Self>

source

pub(crate) fn generate_safe_object_id(&self) -> Option<ObjectId>

Generates an object ID for an application object. We currently reserve the lower 32 bits of the global address space for system-level objects and for objects that need to be “well-known” even before a subocomponent’s first initialization (like the KVS root object).

source

pub fn allocate( &self, size: usize, object_id: Option<ObjectId> ) -> Result<Arc<Object>, ObjectOperationError>

source

pub fn copy_underlying_object( &self, object: &Object, into_object: Option<ObjectId> ) -> Option<ObjectId>

source

pub fn open( &self, object_id: ObjectId ) -> Result<Arc<Object>, ObjectOperationError>

source

pub fn close(&self, object_id: ObjectId) -> Result<(), AccessError>

source

pub fn reload(&self, object_id: ObjectId) -> Result<(), ObjectOperationError>

source

pub fn get(&self, object_id: ObjectId) -> Option<Arc<Object>>

source

pub fn get_as_bytes(&self, object_id: ObjectId) -> Result<Vec<u8>, AccessError>

source

pub fn flush(&self, object_id: ObjectId) -> Result<(), AccessError>

source

pub fn get_backing_storage_path( &self, object_id: ObjectId ) -> Result<PathBuf, AccessError>

source

pub fn get_keys(&self) -> Vec<ObjectId>

source

pub fn object_is_local(&self, object_id: &ObjectId) -> bool

source

pub fn shutdown(&self)

source

pub fn drop_object(&self, object_id: ObjectId)

source

pub fn delete_object(&self, object_id: ObjectId)

source

pub fn push_initial_version( &self, object_id: ObjectId, object: MaterializedObjectVersion )

source

pub fn push_initial_version_by_id(&self, object_id: ObjectId)

source

pub fn create_materialized_ro_version(&self, object_id: ObjectId)

source

pub fn get_latest_committed( &self, object_id: ObjectId ) -> Option<Arc<MaterializedObjectVersion>>

source

pub fn get_at( &self, object_id: ObjectId, target_version: ObjectVersion ) -> Option<Arc<MaterializedObjectVersion>>

source

pub fn push_versions<F>( &self, log_entry: &TransactionLogEntry, should_ignore: Option<F> )where F: Fn(ObjectId) -> bool,

source

pub fn reset_object_directory(&self)

source

pub fn read_object_directory(&self)

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V