org.gcube.opensearch.opensearchdatasource
Class OpenSearchDataSourceResourcePersistenceDelegate

java.lang.Object
  extended by org.gcube.common.core.persistence.GCUBEPersistenceDelegate<RESOURCEID,RESOURCE>
      extended by org.gcube.common.core.persistence.GCUBEFilePersistenceDelegate<org.gcube.common.core.state.GCUBEWSResourceKey,RESOURCE>
          extended by org.gcube.common.core.persistence.GCUBEWSFilePersistenceDelegate<OpenSearchDataSourceResource>
              extended by org.gcube.opensearch.opensearchdatasource.OpenSearchDataSourceResourcePersistenceDelegate

public class OpenSearchDataSourceResourcePersistenceDelegate
extends org.gcube.common.core.persistence.GCUBEWSFilePersistenceDelegate<OpenSearchDataSourceResource>

This class handles the storing/loading of resource state.

Author:
Vasilis Verroios, NKUA

Field Summary
 
Fields inherited from class org.gcube.common.core.persistence.GCUBEWSFilePersistenceDelegate
ctxt, WSRESOURCE_FILE_SUFFIX
 
Fields inherited from class org.gcube.common.core.persistence.GCUBEPersistenceDelegate
logger
 
Constructor Summary
OpenSearchDataSourceResourcePersistenceDelegate()
           
 
Method Summary
protected  void onLoad(OpenSearchDataSourceResource resource, ObjectInputStream ois)
           
protected  void onStore(OpenSearchDataSourceResource resource, ObjectOutputStream oos)
           
 
Methods inherited from class org.gcube.common.core.persistence.GCUBEWSFilePersistenceDelegate
getFileFromResource, getIDFromFileName, getSuffix, initialise
 
Methods inherited from class org.gcube.common.core.persistence.GCUBEFilePersistenceDelegate
getResourceIdentifiers, getStorageRoot, onLoad, onRemove, onStore
 
Methods inherited from class org.gcube.common.core.persistence.GCUBEPersistenceDelegate
load, remove, store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenSearchDataSourceResourcePersistenceDelegate

public OpenSearchDataSourceResourcePersistenceDelegate()
Method Detail

onLoad

protected void onLoad(OpenSearchDataSourceResource resource,
                      ObjectInputStream ois)
               throws Exception
Overrides:
onLoad in class org.gcube.common.core.persistence.GCUBEWSFilePersistenceDelegate<OpenSearchDataSourceResource>
Throws:
Exception

onStore

protected void onStore(OpenSearchDataSourceResource resource,
                       ObjectOutputStream oos)
                throws Exception
Overrides:
onStore in class org.gcube.common.core.persistence.GCUBEWSFilePersistenceDelegate<OpenSearchDataSourceResource>
Throws:
Exception


Copyright © 2013. All Rights Reserved.