public boolean disableVMByVMId ( String vmID , long durationMillis ) throws IllegalStateException { final String hostname = assignableVMs . getHostnameFromVMId ( vmID ) ; if ( hostname == null ) { return false ; } disableVM ( hostname , durationMillis ) ; return true ; }
Disable the virtual machine with the specified ID . The scheduler will not use disabled hosts for allocating resources to tasks .