public class ScopedDeployedSoftware extends ScopedResource
ScopedResource.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 |
ScopedDeployedSoftware(String id,
org.gcube.common.core.scope.GCUBEScope scope) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToScope()
Adds the resource to the scope
|
protected void |
find()
Custom
|
List<Dependency> |
getLastMissingDependencies()
Gets the list of missing dependencies for the last (failed) deployment
|
List<Dependency> |
getLastResolvedDependencies()
Gets the list of resolved dependencies to be used in the next deployment
|
protected int |
getMaxFindAttempts()
Number of times the resource is searched in the IS before to declare it lost
|
List<Dependency> |
getMissingDependencies(String ghnName)
Gets the list of missing dependencies when the deployment was performed
on a specific node
|
List<Dependency> |
getResolvedDependencies(String ghnName)
Gets the list of resolved dependencies when the deployment was performed
on a specific node
|
String |
getRI()
Gets the RI generated by this software or null
|
GCUBEPackage |
getSourcePackage() |
String |
getTargetNodeID()
Gets the ID of the target gHN
|
String |
getTargetNodeName()
Gets the name of
VirtualNode where the service is actually deployed within this scope |
protected void |
removeFromScope()
Removes the resource from the scope
|
void |
scheduleDeploy(VirtualNode node)
Sets the GHN where the service will be deployed
|
void |
scheduleUndeploy(VirtualNode node)
Schedules the undeployment of an instance of this service from the node
|
void |
setCallbackID(String id)
Sets the callback ID from now on for all the service's operations
|
void |
setMissingDependencies(List<Dependency> dependencies)
Sets the list of missing dependencies for the next deployment
|
void |
setResolvedDependencies(List<Dependency> dependencies)
Sets the list of resolved dependencies to be used in the next deployment
|
void |
setRI(String ri)
Sets the RI generated by this software
|
void |
setSourcePackage(GCUBEPackage sourcePackage) |
doAction, equals, findResource, getAction, getErrorMessage, getHostedOn, getId, getJointTime, getLastModificationTime, getLogger, getScope, getStatus, getType, hashCode, isSuccess, noHopeForMe, setErrorMessage, setHostedON, setJointTime, setScope, setStatus, toStringpublic static final String TYPE
protected ScopedDeployedSoftware(String id, org.gcube.common.core.scope.GCUBEScope scope)
public void setSourcePackage(GCUBEPackage sourcePackage)
public GCUBEPackage getSourcePackage()
public List<Dependency> getResolvedDependencies(String ghnName)
ghnName - the ID of the nodepublic List<Dependency> getLastResolvedDependencies()
public void setResolvedDependencies(List<Dependency> dependencies)
dependencies - the resolved dependenciespublic List<Dependency> getMissingDependencies(String ghnName)
ghnName - the name of the nodepublic List<Dependency> getLastMissingDependencies()
public void setMissingDependencies(List<Dependency> dependencies)
dependencies - the missign dependenciesprotected void find()
throws Exception
ScopedResourcefind in class ScopedResourceScopedResource.ResourceNotFound - if it is impossible to locate the resourceExceptionprotected void addToScope()
throws ScopedResource.ResourceNotFound,
Exception
ScopedResourceaddToScope in class ScopedResourceScopedResource.ResourceNotFound - if the resource does not exist in the infrastructureException - if the operation failsprotected void removeFromScope()
throws ScopedResource.ResourceNotFound,
Exception
ScopedResourceremoveFromScope in class ScopedResourceScopedResource.ResourceNotFound - if the resource does not exist in the infrastructureException - if the operation failspublic void scheduleUndeploy(VirtualNode node) throws VirtualNode.NoGHNFoundException
node - the node from where to undeploy the serviceVirtualNode.NoGHNFoundExceptionException - if the operation failspublic void scheduleDeploy(VirtualNode node)
node - the target GHNpublic String getTargetNodeID()
public void setRI(String ri)
ri - the RI identifierpublic String getRI()
public void setCallbackID(String id) throws VirtualNode.NoGHNFoundException
id - the callback IDVirtualNode.NoGHNFoundExceptionpublic String getTargetNodeName()
VirtualNode where the service is actually deployed within this scopeVirtualNodeprotected int getMaxFindAttempts()
getMaxFindAttempts in class ScopedResourceCopyright © 2015. All Rights Reserved.