|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.vremanagement.resourcemanager.impl.resources.ScopedResource
org.gcube.vremanagement.resourcemanager.impl.resources.ScopedDeployedSoftware
public class ScopedDeployedSoftware
Models any kind of scoped deployed software
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.gcube.vremanagement.resourcemanager.impl.resources.ScopedResource |
|---|
ScopedResource.ResourceNotFound, ScopedResource.STATUS |
| Field Summary | |
|---|---|
static String |
TYPE
|
| Fields inherited from class org.gcube.vremanagement.resourcemanager.impl.resources.ScopedResource |
|---|
action, errorMessage, hostedOn, id, jointTime, lastModificationTime, logger, scope, status, success, type |
| Constructor Summary | |
|---|---|
protected |
ScopedDeployedSoftware(String id,
org.gcube.common.core.scope.GCUBEScope scope)
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.gcube.vremanagement.resourcemanager.impl.resources.ScopedResource |
|---|
doAction, equals, findResource, getAction, getErrorMessage, getHostedOn, getId, getJointTime, getLastModificationTime, getLogger, getScope, getStatus, getType, hashCode, isSuccess, noHopeForMe, setErrorMessage, setHostedON, setJointTime, setScope, setStatus, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String TYPE
| Constructor Detail |
|---|
protected ScopedDeployedSoftware(String id,
org.gcube.common.core.scope.GCUBEScope scope)
| Method Detail |
|---|
public void setSourcePackage(GCUBEPackage sourcePackage)
public GCUBEPackage getSourcePackage()
public List<Dependency> getResolvedDependencies(String ghnName)
ghnName - the ID of the node
public List<Dependency> getLastResolvedDependencies()
public void setResolvedDependencies(List<Dependency> dependencies)
dependencies - the resolved dependenciespublic List<Dependency> getMissingDependencies(String ghnName)
ghnName - the name of the node
public List<Dependency> getLastMissingDependencies()
public void setMissingDependencies(List<Dependency> dependencies)
dependencies - the missign dependencies
protected void find()
throws Exception
ScopedResource
find in class ScopedResourceScopedResource.ResourceNotFound - if it is impossible to locate the resource
Exception
protected void addToScope()
throws ScopedResource.ResourceNotFound,
Exception
ScopedResource
addToScope in class ScopedResourceScopedResource.ResourceNotFound - if the resource does not exist in the infrastructure
Exception - if the operation fails
protected void removeFromScope()
throws ScopedResource.ResourceNotFound,
Exception
ScopedResource
removeFromScope in class ScopedResourceScopedResource.ResourceNotFound - if the resource does not exist in the infrastructure
Exception - if the operation fails
public void scheduleUndeploy(VirtualNode node)
throws VirtualNode.NoGHNFoundException
node - the node from where to undeploy the service
VirtualNode.NoGHNFoundException
Exception - 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 ID
VirtualNode.NoGHNFoundExceptionpublic String getTargetNodeName()
VirtualNode where the service is actually deployed within this scope
VirtualNodeprotected int getMaxFindAttempts()
getMaxFindAttempts in class ScopedResource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||