Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for addRelocation (0.4 sec)

  1. pkg/scheduler/framework/plugins/dynamicresources/structured/namedresources/namedresourcesmodel.go

    	}
    
    	for i := range resources.Instances {
    		m.Instances = append(m.Instances, InstanceAllocation{Instance: &resources.Instances[i]})
    	}
    }
    
    // AddAllocation may get called after AddResources to mark some resource
    // instances as allocated. The result parameter may be nil.
    func AddAllocation(m *Model, result *resourceapi.NamedResourcesAllocationResult) {
    	if result == nil {
    		return
    	}
    	for i := range m.Instances {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:26:16 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. platforms/ide/ide-native/src/main/java/org/gradle/ide/xcode/tasks/internal/XcodeWorkspaceFile.java

            super(transformer);
        }
    
        @Override
        protected String getDefaultResourceName() {
            return "default.xcworkspacedata";
        }
    
        public void addLocation(String location) {
            Map<String, Object> attributes = new HashMap<String, Object>();
            attributes.put("location", "absolute:" + location);
            getXml().appendNode("FileRef", attributes);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/dynamicresources/structuredparameters.go

    			}
    			resource := model[structured.NodeName][handle.DriverName]
    			for _, result := range structured.Results {
    				// Call AddAllocation for each known model. Each call itself needs to check for nil.
    				namedresourcesmodel.AddAllocation(&resource.NamedResources, result.NamedResources)
    			}
    		}
    	}
    
    	return model, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 22 09:03:22 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  4. platforms/ide/ide-native/src/main/java/org/gradle/ide/xcode/tasks/GenerateXcodeWorkspaceFileTask.java

        }
    
        @Override
        protected void configure(XcodeWorkspaceFile workspaceFile) {
            for (File xcodeProjectDir : xcodeProjectLocations) {
                workspaceFile.addLocation(xcodeProjectDir.getAbsolutePath());
            }
        }
    
        @Override
        protected XcodeWorkspaceFile create() {
            return new XcodeWorkspaceFile(getXmlTransformer());
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/dynamicresources/structured/namedresources/namedresourcesmodel_test.go

    		t.Run(name, func(t *testing.T) {
    			var actualModel Model
    			for _, resources := range tc.resources {
    				AddResources(&actualModel, resources)
    			}
    			for _, allocation := range tc.allocations {
    				AddAllocation(&actualModel, allocation)
    			}
    
    			require.Equal(t, tc.expectModel, actualModel)
    		})
    	}
    
    }
    
    func TestController(t *testing.T) {
    	filterAny := &resourceapi.NamedResourcesFilter{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 09:27:01 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top