Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 265 for getNodes (0.39 sec)

  1. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/connection/UnparameterizedBuildController.java

        }
    
        @Override
        public <T> T getModel(Class<T> modelType) throws UnknownModelException {
            return getModel(null, modelType);
        }
    
        @Override
        public <T> T findModel(Class<T> modelType) {
            return findModel(null, modelType);
        }
    
        @Override
        public GradleBuild getBuildModel() {
            return getModel(null, GradleBuild.class);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 19 08:15:25 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  2. pkg/kubelet/container/testing/mock_runtime_cache.go

    }
    
    // GetPods mocks base method.
    func (m *MockRuntimeCache) GetPods(arg0 context.Context) ([]*container.Pod, error) {
    	m.ctrl.T.Helper()
    	ret := m.ctrl.Call(m, "GetPods", arg0)
    	ret0, _ := ret[0].([]*container.Pod)
    	ret1, _ := ret[1].(error)
    	return ret0, ret1
    }
    
    // GetPods indicates an expected call of GetPods.
    func (mr *MockRuntimeCacheMockRecorder) GetPods(arg0 any) *gomock.Call {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r18/UseOtherTypesToFetchProjectModel.java

            IdeaProject ideaProject = controller.getModel(IdeaProject.class);
            for (IdeaModule ideaModule : ideaProject.getModules()) {
                visit(ideaModule, controller, new HashMap<String, CustomModel>());
            }
    
            // Use an EclipseProject to reference a project
            EclipseProject eclipseProject = controller.getModel(EclipseProject.class);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/connection/BuildControllerWithoutParameterSupportTest.groovy

            def model = new Object()
            def modelType = Object
            def buildResult = Stub(BuildResult) {
                getModel() >> model
            }
    
            when:
            def result = controller.getModel(null, modelType, null, null)
    
            then:
            1 * delegate.getModel(null, {it.name == Object.name}) >> buildResult
            0 * delegate._
    
            and:
            result == model
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/GradleTaskGetGroupCrossVersionSpec.groovy

    task test1(group:'task group 1')
    task test2(group:'task group 2')
    '''
    
            when:
            def gradleProject = withConnection { ProjectConnection connection ->
                connection.getModel(GradleProject)
            }
    
            then:
            gradleProject != null
            gradleProject.tasks.findAll { it.name.startsWith('test') }.each {
                assert it.group == "task group ${it.name-'test'}"
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/connection/ParameterAwareBuildControllerAdapterTest.groovy

        def "unpacks unsupported model exception"() {
            def failure = new RuntimeException()
    
            given:
            _ * delegate.getModel(null, _, null) >> { throw new InternalUnsupportedModelException().initCause(failure) }
    
            when:
            controller.getModel(String)
    
            then:
            UnknownModelException e = thrown()
            e.message == /No model of type 'String' is available in this build./
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 19 08:15:25 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/BuildController.java

         * @throws UnknownModelException When the default project does not support the requested model.
         * @since 1.8
         */
        <T> T getModel(Class<T> modelType) throws UnknownModelException;
    
        /**
         * Fetches a snapshot of the model of the given type, if available.
         *
         * <p>See {@link #getModel(Class)} for more details.</p>
         *
         * @param modelType The model type.
         * @param <T> The model type.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 19 19:46:37 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/plugins/ide/tooling/r72/CompositeBuildCrossVersionSpec.groovy

    class CompositeBuildCrossVersionSpec extends ToolingApiSpecification {
        def "includes buildSrc builds in model"() {
            buildsWithBuildSrc()
    
            given:
            def model = withConnection {
                it.getModel(GradleBuild)
            }
    
            expect:
            model.includedBuilds.size() == 1
    
            def included = model.includedBuilds[0]
            included.buildIdentifier.rootDir == file("child")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/m8/BuildEnvironmentModelCrossVersionSpec.groovy

                "project.description = java.lang.management.ManagementFactory.runtimeMXBean.inputArguments.join('##')"
    
            when:
            BuildEnvironment env = withConnection { it.getModel(BuildEnvironment.class) }
            GradleProject project = withConnection { it.getModel(GradleProject.class) }
    
            then:
            def inputArgsInBuild = project.description.split('##') as List
            env.java.jvmArguments.each { inputArgsInBuild.contains(it) }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  10. pkg/kubelet/container/runtime_cache.go

    import (
    	"context"
    	"sync"
    	"time"
    )
    
    // RuntimeCache is in interface for obtaining cached Pods.
    type RuntimeCache interface {
    	GetPods(context.Context) ([]*Pod, error)
    	ForceUpdateIfOlder(context.Context, time.Time) error
    }
    
    type podsGetter interface {
    	GetPods(context.Context, bool) ([]*Pod, error)
    }
    
    // NewRuntimeCache creates a container runtime cache.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 09 04:03:51 UTC 2023
    - 2.9K bytes
    - Viewed (0)
Back to top