org.gcube.datatransfer.scheduler.impl.porttype
Class Resource

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.datatransfer.scheduler.impl.porttype.Resource
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 Resource
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
 
Fields inherited from class org.gcube.common.core.state.GCUBEStatefulResource
logger, uuidGen
 
Constructor Summary
Resource()
           
 
Method Summary
protected  void addVisit()
          Sets the number of client visits.
 String getName()
          Returns the client name.
protected  String[] getPropertyNames()
           
protected  String getSchedulerMessage()
           
 int getVisits()
          Returns the number of client visits.
 void initialise(Object... args)
          
 void setName(String name)
          Sets the client name.
protected  void setSchedulerMessage(String msg)
           
 void setVisit(int num)
           
 
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, onRemove, 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
 

Constructor Detail

Resource

public Resource()
Method Detail

initialise

public void initialise(Object... args)
                throws Exception

Specified by:
initialise in class org.gcube.common.core.state.GCUBEWSResource
Throws:
Exception

getVisits

public int getVisits()
Returns the number of client visits.

Returns:
the visits.

getName

public String getName()
Returns the client name.

Returns:
the name.

setName

public void setName(String name)
Sets the client name.


addVisit

protected void addVisit()
Sets the number of client visits. the visits.


setVisit

public void setVisit(int num)

setSchedulerMessage

protected void setSchedulerMessage(String msg)

getSchedulerMessage

protected String getSchedulerMessage()

getPropertyNames

protected String[] getPropertyNames()
Overrides:
getPropertyNames in class org.gcube.common.core.state.GCUBEWSResource


Copyright © 2012. All Rights Reserved.