org.gcube.data.tm.state
Class TBinderResource
java.lang.Object
org.gcube.common.core.utils.handlers.GCUBEServiceClientImpl
org.gcube.common.core.state.GCUBEStatefulResource<org.gcube.common.core.state.GCUBEWSResourceKey>
org.gcube.common.core.state.GCUBEWSResource
org.gcube.data.tm.state.TBinderResource
- 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 TBinderResource
- extends org.gcube.common.core.state.GCUBEWSResource
The singleton GCUBEWSResource of the T-Binder service.
- Author:
- Fabio Simeoni
| 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 |
| Fields inherited from class org.gcube.common.core.state.GCUBEStatefulResource |
logger, uuidGen |
| 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 |
TBinderResource
public TBinderResource()
initialise
protected void initialise(Object... args)
throws Exception,
IllegalArgumentException
-
- Specified by:
initialise in class org.gcube.common.core.state.GCUBEWSResource
- Throws:
Exception
IllegalArgumentException
getPropertyNames
public String[] getPropertyNames()
-
- Overrides:
getPropertyNames in class org.gcube.common.core.state.GCUBEWSResource
addActivation
public boolean addActivation(ActivationRecord record)
- Memorises the processing of an
ActivationRecord.
- Parameters:
record - the record
- Returns:
true if the record was never processed before,
false otherwise
knowsActivation
public boolean knowsActivation(ActivationRecord record)
- Indicates whether an activation record was previously processed.
- Parameters:
record - the record
- Returns:
true if the record was never processed before,
false otherwise
bind
public List<org.gcube.data.tm.stubs.SourceBinding> bind(String plugin,
Element request)
throws org.gcube.common.clients.exceptions.InvalidRequestException,
Exception
- Returns one or more
SourceBindings from client requests to a
plugin.
- Parameters:
plugin - the name of the pluginrequest - the request
- Returns:
- the bindings
- Throws:
org.gcube.common.clients.exceptions.InvalidRequestException - if the requests are malformed or unexpected
Exception - if the operation fails for any other error
deleteAccessors
public void deleteAccessors(String sourceId,
org.gcube.common.core.scope.GCUBEScope... scopes)
throws Exception
- Deletes all the T-Reader and T-Writers associated with a given source
and, optionally,in one or more scopes.
- Parameters:
sourceId - the source identifierscopes - the scopes. If omitted, the accessors are removed in all their scopes
- Throws:
UnsupportedOperationException - if the plugin does not support source deletion
Exception - if the operation fails for an unexpected error
getPlugin
public org.gcube.data.tmf.api.Plugin getPlugin(String name)
throws Exception
- Returns the context of a plugin with a given name.
- Parameters:
name - the name.
- Returns:
- the context, or
null if the plugin is unknown.
- Throws:
Exception
Copyright © 2012. All Rights Reserved.