org.gcube.informationsystem.glitebridge.kimpl
Class KCluster

java.lang.Object
  extended by org.gcube.informationsystem.glitebridge.resource.Cluster
      extended by org.gcube.informationsystem.glitebridge.kimpl.KCluster
All Implemented Interfaces:
KGLiteResourceImpl

public class KCluster
extends Cluster
implements KGLiteResourceImpl

Author:
Luca Frosini (ISTI-CNR)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.gcube.informationsystem.glitebridge.resource.Cluster
Cluster.CEStatusEnum, Cluster.JobStatusEnum, Cluster.LRMSTypeEnum
 
Constructor Summary
KCluster()
           
 
Method Summary
 java.io.InputStream getSchemaResource()
           
 void load(java.io.Reader reader, java.lang.String rootTag)
          Deserialises a GCUBEResourceImpl which implements a GCUBEResource from a serialisation.
 void store(java.io.Writer writer, java.lang.String rootTag)
          Serializes a GCUBEResourceImpl which implements a GCUBEResource.
 
Methods inherited from class org.gcube.informationsystem.glitebridge.resource.Cluster
getCluster, setCluster
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KCluster

public KCluster()
Method Detail

load

public void load(java.io.Reader reader,
                 java.lang.String rootTag)
          throws java.lang.Exception
Deserialises a GCUBEResourceImpl which implements a GCUBEResource from a serialisation.

Specified by:
load in interface KGLiteResourceImpl
Parameters:
reader - the Reader.
rootTag - START and END TAG
Throws:
java.lang.Exception - if could not be deserialised.

store

public void store(java.io.Writer writer,
                  java.lang.String rootTag)
           throws java.lang.Exception
Serializes a GCUBEResourceImpl which implements a GCUBEResource.

Specified by:
store in interface KGLiteResourceImpl
Parameters:
writer - the Writer which gives access to the serialisation.
rootTag - START and END TAG
Throws:
java.lang.Exception - if the GCUBEResourceImpl could not be serialised.

getSchemaResource

public java.io.InputStream getSchemaResource()
Specified by:
getSchemaResource in interface KGLiteResourceImpl
Returns:
InputStream