|
||||||||||
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.ScopedDeployedService
public final class ScopedDeployedService
Models a scoped GCUBEService
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.gcube.vremanagement.resourcemanager.impl.resources.ScopedResource |
---|
ScopedResource.ResourceNotFound, ScopedResource.STATUS |
Field Summary | |
---|---|
static java.lang.String |
TYPE
|
Method Summary | |
---|---|
java.util.List<Dependency> |
getLastMissingDependencies()
Gets the list of missing dependencies for the last (failed) deployment |
java.util.List<Dependency> |
getLastResolvedDependencies()
Gets the list of resolved dependencies to be used in the next deployment |
java.util.List<Dependency> |
getMissingDependencies(java.lang.String ghnid)
Gets the list of missing dependencies when the deployment was performed on a specific node |
java.util.List<VirtualNode> |
getNodes()
Gets the list of VirtualNode s where the service is actually deployed within this scope |
java.util.List<Dependency> |
getResolvedDependencies(java.lang.String ghnid)
Gets the list of resolved dependencies when the deployment was performed on a specific node |
Service |
getSourceService()
|
java.lang.String |
getTargetGHN()
Gets the ID of the target gHN |
java.lang.String |
getTargetGHNID()
Gets the ID of the target gHN |
void |
removeFromScope(java.lang.String ghnID)
Undeploys any instances of this service from the given gHN |
void |
scheduleUndeploy()
Schedules the undeployment of all the instances of this service from scope |
void |
scheduleUndeploy(VirtualNode node)
Schedules the undeployment of an instance of this service from the node |
void |
setCallbackID(java.lang.String id)
Sets the callback ID from now on for all the service's operations |
void |
setMissingDependencies(java.util.List<Dependency> dependencies)
Sets the list of missing dependencies for the next deployment |
void |
setResolvedDependencies(java.util.List<Dependency> dependencies)
Sets the list of resolved dependencies to be used in the next deployment |
void |
setRIonGHN(java.lang.String ri,
java.lang.String ghn)
|
void |
setSourceServiceName(Service service)
|
void |
setTargetGHN(VirtualNode node)
Sets the GHN where the service will be deployed |
Methods inherited from class org.gcube.vremanagement.resourcemanager.impl.resources.ScopedResource |
---|
doAction, equals, findResource, getAction, getErrorMessage, getHostedOn, getId, getJointTime, getLastModificationTime, getScope, getStatus, getType, hashCode, isSuccess, setErrorMessage, setHostedON, setJointTime, setStatus, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TYPE
Method Detail |
---|
public void setSourceServiceName(Service service)
public Service getSourceService()
public java.util.List<Dependency> getResolvedDependencies(java.lang.String ghnid)
ghnid
- the ID of the node
public java.util.List<Dependency> getLastResolvedDependencies()
public void setResolvedDependencies(java.util.List<Dependency> dependencies)
dependencies
- the resolved dependenciespublic java.util.List<Dependency> getMissingDependencies(java.lang.String ghnid)
ghnid
- the ID of the node
public java.util.List<Dependency> getLastMissingDependencies()
public void setMissingDependencies(java.util.List<Dependency> dependencies)
dependencies
- the missign dependenciespublic void scheduleUndeploy()
java.lang.Exception
- if the operation failspublic void scheduleUndeploy(VirtualNode node)
node
- the node from where to undeploy the service
java.lang.Exception
- if the operation failspublic void removeFromScope(java.lang.String ghnID) throws VirtualNode.NoGHNFoundException, java.lang.Exception
lastActivityOnGHN
- the id of the gHN from where to undeploy the service
java.lang.Exception
VirtualNode.NoGHNFoundException
public void setTargetGHN(VirtualNode node)
node
- the target GHNpublic java.lang.String getTargetGHNID()
public java.lang.String getTargetGHN()
public void setRIonGHN(java.lang.String ri, java.lang.String ghn)
public void setCallbackID(java.lang.String id)
id
- the callback IDpublic java.util.List<VirtualNode> getNodes()
VirtualNode
s where the service is actually deployed within this scope
VirtualNode
s
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |