Class: FileStore::MetaManager

Inherits:
Object
  • Object
show all
Defined in:
lib/filestore/meta_manager.rb

Overview

Base class for implementing a meta manager class. This class is used for storing and managing file meta data

Instance Method Summary collapse

Instance Method Details

#add_or_update(id, metaData) ⇒ Object

Adds/updates a dataset to/in the collection

Arguments: id: The key to identify the data to be deleted metaData: The actual meta data to store



47
48
# File 'lib/filestore/meta_manager.rb', line 47

def add_or_update(id, )
end

#get_data(id) ⇒ Object

Returns the data set identified by the given id

Arguments: id: The ID to be looked for

Returns: A hashset containing all stored meta data



22
23
# File 'lib/filestore/meta_manager.rb', line 22

def get_data(id)
end

#has_id?(id) ⇒ Boolean

Determines wether a given ID is already in use

Arguments: id: The ID to be tested

Returns:

  • (Boolean)


65
66
# File 'lib/filestore/meta_manager.rb', line 65

def has_id?(id)
end

#remove(id) ⇒ Object

Removes a dataset from the collection

Arguments: id: The key to identify the data to be deleted



30
31
# File 'lib/filestore/meta_manager.rb', line 30

def remove(id)
end

#restore(id) ⇒ Object

Restores a previously deleted meta data set

Arguments: id: The key to identify the data to be deleted



38
39
# File 'lib/filestore/meta_manager.rb', line 38

def restore(id)
end

#saveObject

Saves the meta data in the current state



52
53
# File 'lib/filestore/meta_manager.rb', line 52

def save
end

#shutdownObject

Shuts down the manager class and clears all used resources



57
58
# File 'lib/filestore/meta_manager.rb', line 57

def shutdown
end