public class MigrateVM extends Action implements VMEvent, RunningVMPlacement
Action.Hook
Constructor and Description |
---|
MigrateVM(VM v,
Node from,
Node to,
int start,
int end)
Make a new action.
|
Modifier and Type | Method and Description |
---|---|
boolean |
applyAction(Model i)
Make the VM running on the destination node
in the given model.
|
boolean |
equals(Object o) |
Node |
getDestinationNode()
Get the destination node for the VM.
|
Node |
getSourceNode()
Get the source node that is currently hosting the VM.
|
VM |
getVM()
Get the VM to involved in the action.
|
int |
hashCode() |
String |
pretty()
Pretty print of the action.
|
Object |
visit(ActionVisitor v)
Notify a visitor to visit the action.
|
addEvent, apply, applyEvents, getEnd, getEvents, getStart, toString
public Node getDestinationNode()
RunningVMPlacement
getDestinationNode
in interface RunningVMPlacement
public Node getSourceNode()
public VM getVM()
VMEvent
public boolean applyAction(Model i)
applyAction
in class Action
i
- the model to alter with the actiontrue
iff the VM is running on the destination nodepublic Object visit(ActionVisitor v)
Event
Copyright © 2015 University of Nice-Sophia Antipolis. All Rights Reserved.