/** * Suspends a virtual machine. * * @param virtualMachineId The virtual machine identifier * @param localControllerAddress The local controller address * @return true if everything ok, false otherwise */ private boolean suspendVirtualMachine( String virtualMachineId, NetworkAddress localControllerAddress) { Guard.check(virtualMachineId, localControllerAddress); log_.debug( String.format( "Sending request to suspend virtual machine: %s on local controller: %s", virtualMachineId, localControllerAddress.getAddress())); LocalControllerAPI communicator = CommunicatorFactory.newLocalControllerCommunicator(localControllerAddress); return communicator.suspendVirtualMachineOnMigration(virtualMachineId); }
/** * Copy constructor. * * @param originalAddress The original address */ public NetworkAddress(NetworkAddress originalAddress) { address_ = originalAddress.getAddress(); port_ = originalAddress.getPort(); }