org.gcube.common.resources.kxml.runninginstance
Class KGCUBERunningInstance
java.lang.Object
org.gcube.common.core.resources.GCUBEResource
org.gcube.common.core.resources.GCUBERunningInstance
org.gcube.common.resources.kxml.runninginstance.KGCUBERunningInstance
- All Implemented Interfaces:
- GCUBEResourceImpl
public class KGCUBERunningInstance
- extends GCUBERunningInstance
- implements GCUBEResourceImpl
An implementation of GCUBERunningInstance based on KXml parser.
- Author:
- Fabio Simeoni (University of Strathclyde), Andrea Manzi (ISTI-CNR)
| Methods inherited from class org.gcube.common.core.resources.GCUBERunningInstance |
equals, getAccessPoint, getAccounting, getDeploymentData, getDescription, getGHNID, getInstanceVersion, getLastResourceVersion, getPlatform, getRIEquivalenceFunctions, getRunningInstanceSecurity, getServiceClass, getServiceID, getServiceName, getSpecificData, setAccessPoint, setAccounting, setDeploymentData, setDescription, setGHNID, setInstanceVersion, setPlatform, setServiceClass, setServiceID, setServiceName, setSpecificData |
| Methods inherited from class org.gcube.common.core.resources.GCUBEResource |
addScope, getID, getResourceVersion, getScopes, getType, inScope, removeScope, setID, setLogger, setResourceVersion, subscribeResourceEvents, validateAddScopes, validateRemoveScopes |
KGCUBERunningInstance
public KGCUBERunningInstance()
load
public void load(Reader reader)
throws Exception
- Description copied from class:
GCUBEResource
- Deserialise the state of the resource from an existing serialisation.
The operations is destructive with respect to the current state of the resource.
- Specified by:
load in class GCUBEResource
- Parameters:
reader - the Reader which exposes the serialisation.
- Throws:
UnsupportedOperationException - if this operation is not supported by implementation.
Exception - if the operation is supported but could not complete successfully.
store
public void store(Writer writer)
throws Exception
- Description copied from class:
GCUBEResource
- Serialise the current state of the resource.
- Specified by:
store in class GCUBEResource
- Parameters:
writer - the Writer which exposes the serialisation.
- Throws:
UnsupportedOperationException
Exception - if the operation is supported but could not complete successfully.
getSchemaResource
public InputStream getSchemaResource()
- Specified by:
getSchemaResource in interface GCUBEResourceImpl
load
public void load(org.kxml2.io.KXmlParser parser)
throws Exception
- Specified by:
load in interface GCUBEResourceImpl
- Throws:
Exception
store
public void store(org.kxml2.io.KXmlSerializer serializer)
throws Exception
- Specified by:
store in interface GCUBEResourceImpl
- Throws:
Exception
main
public static void main(String[] args)
Copyright © 2012. All Rights Reserved.