public void disableVM(String hostname,long durationMillis) throws IllegalStateException {
  logger.info("Disable VM " + hostname + " for "+ durationMillis+ " millis");
  assignableVMs.disableUntil(hostname,System.currentTimeMillis() + durationMillis);
}

public void disableVM ( String hostname , long durationMillis ) throws IllegalStateException { logger . info ( "Disable VM " + hostname + " for " + durationMillis + " millis" ) ; assignableVMs . disableUntil ( hostname , System . currentTimeMillis ( ) + durationMillis ) ; }
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 .
