question: public void disableVM ( String hostname , long durationMillis ) throws IllegalStateException { logger . info ( "Disable VM " + hostname + " for " + durationMillis + " millis" ) ; assignableVMs . disableUntil ( hostname , System . currentTimeMillis ( ) + durationMillis ) ; }
target:  Disable the virtual machine with the specified hostname. If the scheduler is not yet aware of the host with that hostname, it creates a new object for it, and therefore your disabling of it will be remembered when offers that concern that host come in later. The scheduler will not use disabled hosts for allocating resources to tasks.