public void disableVM ( String hostname , long durationMillis ) throws IllegalStateException { logger . debug ( "Disable VM " + hostname + " for " + durationMillis + " millis" ) ; assignableVMs . disableUntil ( hostname , System . currentTimeMillis ( ) + durationMillis ) ; }
Disable the virtual machine with the specified hostname . The scheduler will not use disabled hosts for allocating resources to tasks .