futuregrid/virtual-cluster — Issue #2: Use a persistent object
Author: laszewsk
Created: 2012-02-22 11:58:28+00:00
State: open

Use a persistent object to manage the instances. This can be done in multiple ways. Pickle, or ZODB are choices. pickle has the advantage we do not have to introduce another dependency. ZODB has the advantage that objects can be made persistent without any work

we want a class object that manages a set of instances

if you do pickle you may do

class instances(...):

def create_instance(...)

def create_instances (n, ...)

def save(filename=....)

def load(filename=...)

if you use ZODB the save and load functions are eliminated while managing the persistance as part of the Object that is passed to the class