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:
- Observer
public class Serializer
- extends ScopeObserver
Serializer for ScopeState
- Author:
- Manuele Simi (ISTI-CNR)
| Fields inherited from class org.gcube.vremanagement.resourcemanager.impl.state.observers.ScopeObserver |
logger |
| Methods inherited from class org.gcube.vremanagement.resourcemanager.impl.state.observers.ScopeObserver |
update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Serializer
public Serializer()
scopeChanged
protected void scopeChanged(ScopeState scopeState)
- Serializes the notified list on the file system
- Specified by:
scopeChanged in class ScopeObserver
- Parameters:
scopeState - the list to serialize
store
public static void store(ScopeState scopeState)
throws IOException
- Throws:
IOException
load
public static void load(ScopeState scopeState,
org.gcube.common.core.scope.GCUBEScope scope)
throws IOException
- Loads the list of
ScopedResource from the local file system
- Parameters:
the - actual scope
- Throws:
IOException - if the list was not found on the file system
getSerializationFile
protected static File getSerializationFile(org.gcube.common.core.scope.GCUBEScope scope)
Copyright © 2012. All Rights Reserved.