public class SourceResource
extends org.gcube.common.core.state.GCUBELocalResource
implements org.gcube.data.tmf.api.SourceConsumer
GCUBELocalResource that models data sources.| Constructor and Description |
|---|
SourceResource() |
| Modifier and Type | Method and Description |
|---|---|
String |
getPluginName()
Returns the name of the associated plugin.
|
protected void |
initialise(String id,
Object... params) |
void |
onEvent(org.gcube.data.tmf.api.SourceEvent... event) |
protected void |
onRemove() |
void |
setPluginName(String n)
Sets the name of the associated plugin.
|
void |
setSource(org.gcube.data.tmf.api.Source source)
Sets the source.
|
org.gcube.data.tmf.api.Source |
source()
Returns the source.
|
addLink, getLinks, getServiceContext, removeLink, setLinks, setServiceContextgetID, getLock, getScheduledTasks, getScope, launchTask, setID, setPersistenceDelegate, stopTask, storeprotected void initialise(String id, Object... params) throws Exception
initialise in class org.gcube.common.core.state.GCUBELocalResourceExceptionpublic org.gcube.data.tmf.api.Source source()
public void setSource(org.gcube.data.tmf.api.Source source)
source - the sourcepublic void setPluginName(String n)
n - the name.public String getPluginName() throws org.globus.wsrf.ResourceException
org.globus.wsrf.ResourceExceptionpublic void onEvent(org.gcube.data.tmf.api.SourceEvent... event)
onEvent in interface org.gcube.data.tmf.api.SourceConsumerprotected void onRemove()
throws org.globus.wsrf.ResourceException
onRemove in class org.gcube.common.core.state.GCUBEStatefulResource<String>org.globus.wsrf.ResourceExceptionCopyright © 2014. All Rights Reserved.