Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 399 for servicestore (0.29 sec)

  1. pilot/pkg/serviceregistry/serviceentry/store.go

    		out = append(out, svcs...)
    	}
    	return model.SortServicesByCreationTime(out)
    }
    
    func (s *serviceStore) getServices(key types.NamespacedName) []*model.Service {
    	return s.servicesBySE[key]
    }
    
    func (s *serviceStore) deleteServices(key types.NamespacedName) {
    	delete(s.servicesBySE, key)
    }
    
    func (s *serviceStore) updateServices(key types.NamespacedName, services []*model.Service) {
    	s.servicesBySE[key] = services
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/serviceentry/store_test.go

    	gotInstances = store.getAll()
    	if len(gotInstances) != 0 {
    		t.Errorf("got unexpected instances %v", gotSeInstances)
    	}
    }
    
    func TestServiceStore(t *testing.T) {
    	store := serviceStore{
    		servicesBySE: map[types.NamespacedName][]*model.Service{},
    	}
    
    	expectedServices := []*model.Service{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. platforms/core-runtime/stdlib-java-extensions/src/main/java/org/gradle/internal/service/scopes/ServiceScope.java

     * for their scope and its children.
     *
     * @see Scope
     */
    @Retention(RetentionPolicy.RUNTIME)
    @Target(ElementType.TYPE)
    @Inherited
    public @interface ServiceScope {
    
        /**
         * One or more scopes in which the service is declared,
         * from the longest lifecycle to the shortest.
         */
        Class<? extends Scope>[] value();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/util/initsystem/initsystem_unix.go

    // OpenRCInitSystem defines openrc
    type OpenRCInitSystem struct{}
    
    // ServiceStart tries to start a specific service
    func (openrc OpenRCInitSystem) ServiceStart(service string) error {
    	args := []string{service, "start"}
    	return exec.Command("rc-service", args...).Run()
    }
    
    // ServiceStop tries to stop a specific service
    func (openrc OpenRCInitSystem) ServiceStop(service string) error {
    	args := []string{service, "stop"}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 03:15:07 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/util/initsystem/initsystem.go

    type InitSystem interface {
    	// EnableCommand returns a string describing how to enable a service
    	EnableCommand(service string) string
    
    	// ServiceStart tries to start a specific service
    	ServiceStart(service string) error
    
    	// ServiceStop tries to stop a specific service
    	ServiceStop(service string) error
    
    	// ServiceRestart tries to reload the environment and restart the specific service
    	ServiceRestart(service string) error
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 26 15:51:39 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/util/initsystem/initsystem_windows.go

    func (sysd WindowsInitSystem) ServiceRestart(service string) error {
    	if err := sysd.ServiceStop(service); err != nil {
    		return errors.Wrapf(err, "couldn't stop service %s", service)
    	}
    	if err := sysd.ServiceStart(service); err != nil {
    		return errors.Wrapf(err, "couldn't start service %s", service)
    	}
    
    	return nil
    }
    
    // ServiceStop tries to stop a specific service
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 08:56:16 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  7. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/service/ServiceScopeValidator.java

     * <p>
     * Only services that are annotated with {@link ServiceScope} are validated.
     */
    @NonNullApi
    class ServiceScopeValidator implements AnnotatedServiceLifecycleHandler {
    
        private static final List<Class<? extends Annotation>> SCOPE_ANNOTATIONS = Collections.<Class<? extends Annotation>>singletonList(ServiceScope.class);
    
        private final Class<? extends Scope> scope;
        private final boolean strict;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:17 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  8. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/service/ScopedServiceRegistryTest.groovy

            return new ScopedServiceRegistry(scope, strict, "test service registry")
        }
    
        @ServiceScope(Scope.BuildTree)
        static class BuildTreeScopedService {}
    
        @ServiceScope([Scope.Global, Scope.Build])
        static class GlobalAndBuildScopedService {}
    
        static class UnscopedService {}
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  9. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/service/ServiceRegistryBuilder.java

         * validate all registered services for being annotated with the given scope.
         * <p>
         * However, this still allows to register services without the
         * {@link org.gradle.internal.service.scopes.ServiceScope @ServiceScope} annotation.
         *
         * @see #scopeStrictly(Class)
         */
        public ServiceRegistryBuilder scope(Class<? extends Scope> scope) {
            this.scope = scope;
            this.strict = false;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/internal/scripts/ScriptFileResolverListeners.java

     * limitations under the License.
     */
    
    package org.gradle.internal.scripts;
    
    import org.gradle.internal.service.scopes.Scope;
    import org.gradle.internal.service.scopes.ServiceScope;
    
    @ServiceScope(Scope.Global.class)
    public interface ScriptFileResolverListeners {
    
        void addListener(ScriptFileResolvedListener scriptFileResolvedListener);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 1003 bytes
    - Viewed (0)
Back to top