|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.vremanagement.resourcemanager.impl.deployment.VirtualNode
public class VirtualNode
A target node for deployment and undeployment operations
| Nested Class Summary | |
|---|---|
static class |
VirtualNode.NoGHNFoundException
NoGHNFoundException exception |
| Method Summary | |
|---|---|
void |
deploy(GCUBEScope scope)
Sends a request to the physical node to deploy the active list of packages to add |
java.lang.String |
detectName()
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getID()
Gets the node ghnID |
java.util.Set<PackageInfo> |
getScheduledPackages()
Gets the packages scheduled for the next deployment on this node |
GCUBEScope |
getWorkingScope()
Gets the current scope used on this node |
int |
hashCode()
|
void |
isNotWorking()
Marks the node as not working node (usually called when a closed DeployerReport is received from the node) |
void |
setCallbackID(java.lang.String id)
|
void |
setPackagesToAdd(java.util.Set<PackageInfo> packages)
Sets the packages to remove in the next #deploy() invocation |
void |
setPackagesToRemove(java.util.Set<PackageInfo> packages)
Sets the packages to remove in the nect #undeploy() invocation |
void |
setWorkingScope(GCUBEScope scope)
Assigns a working scope to the node |
java.lang.String |
toString()
|
void |
undeploy(GCUBEScope scope)
Undeploys the packages from the node |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void setCallbackID(java.lang.String id)
public java.lang.String detectName()
throws VirtualNode.NoGHNFoundException
VirtualNode.NoGHNFoundExceptionpublic void setPackagesToAdd(java.util.Set<PackageInfo> packages)
#deploy() invocation
packages - the list of packagesT to addpublic java.lang.String getID()
public void deploy(GCUBEScope scope)
throws java.lang.Exception
VirtualNode.NoGHNFoundException - if the deployment fails
java.lang.Exception
public void undeploy(GCUBEScope scope)
throws java.lang.Exception
scope - the scope to use for the undeployment
VirtualNode.NoGHNFoundException - if the operation fails
java.lang.Exceptionpublic void isNotWorking()
DeployerReport is received from the node)
public void setPackagesToRemove(java.util.Set<PackageInfo> packages)
#undeploy() invocation
packages - the packages to remove from the nodepublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void setWorkingScope(GCUBEScope scope)
scope - the scope to setpublic java.util.Set<PackageInfo> getScheduledPackages()
public GCUBEScope getWorkingScope()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||