public class TBinderResource
extends org.gcube.common.core.state.GCUBEWSResource
GCUBEWSResource of the T-Binder service.| Constructor and Description |
|---|
TBinderResource() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addActivation(ActivationRecord record)
Memorises the processing of an
ActivationRecord. |
List<org.gcube.data.tm.stubs.SourceBinding> |
bind(String plugin,
Element request)
Returns one or more
SourceBindings from client requests to a
plugin. |
void |
deleteAccessors(String sourceId,
org.gcube.common.core.scope.GCUBEScope... scopes)
Deletes all the T-Reader and T-Writers associated with a given source
and, optionally,in one or more scopes.
|
org.gcube.data.tmf.api.Plugin |
getPlugin(String name)
Returns the context of a plugin with a given name.
|
String[] |
getPropertyNames() |
protected void |
initialise(Object... args) |
boolean |
knowsActivation(ActivationRecord record)
Indicates whether an activation record was previously processed.
|
getCurrentTime, getEPR, getPorttypeContext, getProperty, getPublisher, getResourcePropertySet, getServiceContext, getTerminationTime, getTopicList, getTopicNames, initialise, initialiseContainers, inScope, load, publish, setPortTypeContext, setTerminationTime, unpublishgetID, getLock, getScheduledTasks, getScope, launchTask, onRemove, setID, setPersistenceDelegate, stopTask, storegetPortTypeMap, setPortTypeMapprotected void initialise(Object... args) throws Exception, IllegalArgumentException
initialise in class org.gcube.common.core.state.GCUBEWSResourceExceptionIllegalArgumentExceptionpublic String[] getPropertyNames()
getPropertyNames in class org.gcube.common.core.state.GCUBEWSResourcepublic boolean addActivation(ActivationRecord record)
ActivationRecord.record - the recordtrue if the record was never processed before,
false otherwisepublic boolean knowsActivation(ActivationRecord record)
record - the recordtrue if the record was never processed before,
false otherwisepublic List<org.gcube.data.tm.stubs.SourceBinding> bind(String plugin, Element request) throws org.gcube.data.tmf.api.exceptions.InvalidRequestException, Exception
SourceBindings from client requests to a
plugin.plugin - the name of the pluginrequest - the requestorg.gcube.data.tmf.api.exceptions.InvalidRequestException - if the requests are malformed or unexpectedException - if the operation fails for any other errorpublic void deleteAccessors(String sourceId, org.gcube.common.core.scope.GCUBEScope... scopes) throws Exception
sourceId - the source identifierscopes - the scopes. If omitted, the accessors are removed in all their scopesUnsupportedOperationException - if the plugin does not support source deletionException - if the operation fails for an unexpected errorCopyright © 2014. All Rights Reserved.