org.gcube.vremanagement.resourcemanager.impl.state.observers
Class Serializer
java.lang.Object
org.gcube.vremanagement.resourcemanager.impl.state.observers.ScopeObserver
org.gcube.vremanagement.resourcemanager.impl.state.observers.Serializer
- All Implemented Interfaces:
- java.util.Observer
public class Serializer
- extends ScopeObserver
Serializer for ScopeState
- Author:
- Manuele Simi (ISTI-CNR)
Methods inherited from class org.gcube.vremanagement.resourcemanager.impl.state.observers.ScopeObserver |
update |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
persistentList
public static final java.io.File persistentList
Serializer
public Serializer()
store
public static void store(ScopeState scopeState)
throws java.io.IOException
- Throws:
java.io.IOException
load
public static void load(ScopeState scopeState,
GCUBEScope scope)
throws java.io.IOException
- Loads the list of
ScopedResource
from the local file system
- Parameters:
the
- actual scope
- Throws:
java.io.IOException
- if the list was not found on the file system