public final class ScopedRunningInstance extends ScopedResource
GCUBERunningInstanceScopedResource.ResourceNotFound, ScopedResource.STATUS| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE |
action, errorMessage, hostedOn, id, jointTime, lastModificationTime, logger, scope, status, success, type| Modifier | Constructor and Description |
|---|---|
protected |
ScopedRunningInstance(String id,
org.gcube.common.core.scope.GCUBEScope scope,
String... hostedOn) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToScope()
Adds the RI to the scope
|
protected void |
find()
Custom
|
String |
getHostedOn() |
protected int |
getMaxFindAttempts()
Number of times the resource is searched in the IS before to declare it lost
|
GCUBEPackage |
getSourcePackage()
Gets the package that generated this instance
|
protected String |
getSourceServiceClass() |
protected String |
getSourceServiceName() |
boolean |
isUndeployNeeded() |
protected void |
removeFromScope()
Removes the RI from the scope
|
void |
reportFailureOnSourceService(String message,
Exception e) |
void |
wasSuccessful() |
doAction, equals, findResource, getAction, getErrorMessage, getId, getJointTime, getLastModificationTime, getLogger, getScope, getStatus, getType, hashCode, isSuccess, noHopeForMe, setErrorMessage, setHostedON, setJointTime, setScope, setStatus, toStringpublic static final String TYPE
protected void find()
throws Exception
ScopedResourcefind in class ScopedResourceScopedResource.ResourceNotFound - if it is impossible to locate the resourceExceptionprotected void addToScope()
throws ScopedResource.ResourceNotFound,
Exception
addToScope in class ScopedResourceException - if it is not possible to add the resourceScopedResource.ResourceNotFound - if the resource does not exist in the infrastructureprotected void removeFromScope()
throws ScopedResource.ResourceNotFound,
ServiceNotFoundException,
Exception
removeFromScope in class ScopedResourceException - if it is not possible to remove the resourceScopedResource.ResourceNotFound - if the resource does not exist in the infrastructureServiceNotFoundExceptionprotected String getSourceServiceClass()
protected String getSourceServiceName()
public boolean isUndeployNeeded()
throws ScopedResource.ResourceNotFound
ScopedResource.ResourceNotFoundpublic String getHostedOn()
getHostedOn in class ScopedResourcepublic void wasSuccessful()
protected int getMaxFindAttempts()
getMaxFindAttempts in class ScopedResourcepublic GCUBEPackage getSourcePackage() throws ServiceNotFoundException
ServiceNotFoundException - if the service is not foundCopyright © 2014. All Rights Reserved.