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
 
Field Summary
protected static String RP_ID
           
protected static String[] RPNames
           
 
Fields inherited from class org.gcube.common.core.state.GCUBEStatefulResource
logger, uuidGen
 
Constructor Summary
ImportResource()
           
 
Method Summary
 String getDataAsJson(org.gcube.contentmanagement.timeseriesservice.stubs.types.Limit limit)
           
 Map<String,int[]> getFieldLenght()
           
 String getId()
          Returns the id.
 ImporterItem getImporterReference()
           
 String[] getPropertyNames()
          
 org.gcube.common.dbinterface.tables.SimpleTable getTable()
           
 String[] getTableDefinition()
           
protected  void initialise(Object... initParameters)
           
protected  void onRemove()
           
 void remove()
           
 void setFieldLenght(Map<String,int[]> fieldLenght)
           
 void setId(String id)
           
 void setTable(org.gcube.common.dbinterface.tables.SimpleTable table)
           
 void setTableDefinition(String[] columnDefinition)
           
 
Methods inherited from class org.gcube.common.core.state.GCUBEWSResource
getCurrentTime, getEPR, getPorttypeContext, getProperty, getPublisher, getResourcePropertySet, getServiceContext, getTerminationTime, getTopicList, getTopicNames, initialise, initialiseContainers, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.globus.wsrf.PersistenceCallback
store
 

Field Detail

RP_ID

protected static final String RP_ID
See Also:
Constant Field Values

RPNames

protected static String[] RPNames
Constructor Detail

ImportResource

public ImportResource()
Method Detail

getPropertyNames

public String[] getPropertyNames()

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

initialise

protected void initialise(Object... initParameters)
                   throws Exception
Specified by:
initialise in class org.gcube.common.core.state.GCUBEWSResource
Throws:
Exception

getId

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

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

setId

public void setId(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

onRemove

protected void onRemove()
                 throws org.globus.wsrf.ResourceException
Overrides:
onRemove in class org.gcube.common.core.state.GCUBEStatefulResource<org.gcube.common.core.state.GCUBEWSResourceKey>
Throws:
org.globus.wsrf.ResourceException

remove

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

getTableDefinition

public String[] getTableDefinition()

setTableDefinition

public void setTableDefinition(String[] columnDefinition)

getDataAsJson

public String getDataAsJson(org.gcube.contentmanagement.timeseriesservice.stubs.types.Limit limit)
                     throws Exception
Returns:
Throws:
Exception

getFieldLenght

public Map<String,int[]> getFieldLenght()

setFieldLenght

public void setFieldLenght(Map<String,int[]> fieldLenght)

getTable

public org.gcube.common.dbinterface.tables.SimpleTable getTable()
                                                         throws Exception
Throws:
Exception

setTable

public void setTable(org.gcube.common.dbinterface.tables.SimpleTable table)


Copyright © 2012. All Rights Reserved.