public static void verify ( CommandExecutionContext executionContext , Component component ) throws CommandException { if ( executionContext != null && Constants . TARGET_INSTALLER . equalsIgnoreCase ( component . getInstallerName ( ) ) && executionContext . getMaxVm ( ) > 0 && executionContext . getMaxVm ( ) <= executionContext . getGlobalVmNumber ( ) . get ( ) && executionContext . isStrictMaxVm ( ) ) throw new CommandException ( "The maximum number of VM created by the autonomic has been reached." ) ; }
Verifies a new VM model can be created according to a given context .