org.gcube.contentmanagement.timeseriesservice.impl.importer.state
Class ImportResource

java.lang.Object
  extended by org.gcube.common.core.utils.handlers.GCUBEServiceClientImpl
      extended by org.gcube.common.core.state.GCUBEStatefulResource<org.gcube.common.core.state.GCUBEWSResourceKey>
          extended by org.gcube.common.core.state.GCUBEWSResource
              extended by org.gcube.contentmanagement.timeseriesservice.impl.importer.state.ImportResource
All Implemented Interfaces:
org.gcube.common.core.utils.handlers.GCUBEServiceClient, org.globus.wsrf.PersistenceCallback, org.globus.wsrf.Resource, org.globus.wsrf.ResourceLifetime, org.globus.wsrf.ResourceProperties, org.globus.wsrf.TopicListAccessor

public class ImportResource
extends org.gcube.common.core.state.GCUBEWSResource


Nested Class Summary
 
Nested classes/interfaces inherited from class org.gcube.common.core.state.GCUBEStatefulResource
org.gcube.common.core.state.GCUBEStatefulResource.LOCK, org.gcube.common.core.state.GCUBEStatefulResource.TaskContext
 
Constructor Summary
ImportResource()
           
 
Method Summary
 java.lang.String getDataAsJson(Limit limit)
           
 java.util.Map<java.lang.String,int[]> getFieldLenght()
           
 java.lang.String getId()
          Returns the id.
 ImporterItem getImporterReference()
           
 java.lang.String[] getPropertyNames()
          
 SimpleTable getTable()
           
 java.lang.String[] getTableDefinition()
           
 void remove()
           
 void setFieldLenght(java.util.Map<java.lang.String,int[]> fieldLenght)
           
 void setId(java.lang.String id)
           
 void setTable(SimpleTable table)
           
 void setTableDefinition(java.lang.String[] columnDefinition)
           
 
Methods inherited from class org.gcube.common.core.state.GCUBEWSResource
getCurrentTime, getEPR, getPorttypeContext, getResourcePropertySet, getServiceContext, getTerminationTime, getTopicList, inScope, load, publish, setPortTypeContext, setTerminationTime, unpublish
 
Methods inherited from class org.gcube.common.core.state.GCUBEStatefulResource
getID, getLock, getScheduledTasks, getScope, launchTask, setID, setPersistenceDelegate, stopTask, store
 
Methods inherited from class org.gcube.common.core.utils.handlers.GCUBEServiceClientImpl
getPortTypeMap, setPortTypeMap
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.globus.wsrf.PersistenceCallback
store
 

Constructor Detail

ImportResource

public ImportResource()
Method Detail

getPropertyNames

public java.lang.String[] getPropertyNames()

Overrides:
getPropertyNames in class org.gcube.common.core.state.GCUBEWSResource

getId

public java.lang.String getId()
                       throws org.globus.wsrf.ResourceException
Returns the id.

Returns:
the id.
Throws:
org.globus.wsrf.ResourceException

setId

public void setId(java.lang.String id)
           throws org.globus.wsrf.ResourceException
Parameters:
id -
Throws:
org.globus.wsrf.ResourceException

getImporterReference

public ImporterItem getImporterReference()
                                  throws org.globus.wsrf.ResourceException
Throws:
org.globus.wsrf.ResourceException

remove

public void remove()
            throws org.globus.wsrf.ResourceException
Throws:
org.globus.wsrf.ResourceException

getTableDefinition

public java.lang.String[] getTableDefinition()

setTableDefinition

public void setTableDefinition(java.lang.String[] columnDefinition)

getDataAsJson

public java.lang.String getDataAsJson(Limit limit)
                               throws java.lang.Exception
Returns:
Throws:
java.lang.Exception

getFieldLenght

public java.util.Map<java.lang.String,int[]> getFieldLenght()

setFieldLenght

public void setFieldLenght(java.util.Map<java.lang.String,int[]> fieldLenght)

getTable

public SimpleTable getTable()
                     throws java.lang.Exception
Throws:
java.lang.Exception

setTable

public void setTable(SimpleTable table)