Examples of Service


Examples of org.apache.etch.compiler.ast.Service

  }

  private void checkMsgParamFieldRefOrEnumItem( Message msg, Parameter param,
    Token arg, int argNo ) throws ParseException
  {
    Service service = msg.parent();
   
    StringTokenizer path = new StringTokenizer( arg.image, "." );
    String name = path.nextToken();
   
    Parameter p = msg.getParameter( name );
    if (p != null)
    {
      // it's a parameter, so type of p must be a struct...

      p = getField( service, p, path );
     
      if (p == null)
        throw new ParseException( String.format(
          "Authorize method %s arg %d name does not resolve to a field (%s) at line %d",
          method.image, argNo+1, arg, lineno() ) );
     
      Named<?> pt = p.type().getNamed( service );
      Named<?> paramType = param.type().getNamed( service );
      if (pt == paramType)
        return;

      throw typeMismatch( param, arg, argNo );
    }
   
    // it isn't a parameter, so it must be an enum...
   
    Named<?> named = service.get( name );
    if (named == null)
      throw new ParseException( String.format(
        "Authorize method %s arg %d name unknown (%s) at line %d",
        method.image, argNo+1, arg, lineno() ) );
   
View Full Code Here

Examples of org.apache.felix.ipojo.api.Service

    private PrimitiveComponentType createAProvider() {
        return new PrimitiveComponentType()
                .setBundleContext(context)
                .setClassName(FooImpl.class.getName())
                .setPublic(true)
                .addService(new Service()); // Provide the FooService
    }
View Full Code Here

Examples of org.apache.hadoop.gateway.services.Service

    public boolean validate() {
      return true;
    }

    protected Service getService(String serviceName) {
      Service service = null;

      return service;
    }
View Full Code Here

Examples of org.apache.hadoop.gateway.topology.Service

      e.printStackTrace(); // I18N not required.
    }

    Topology topology = new Topology();
    topology.setName( "test-cluster" );
    Service service = new Service();
    service.setRole( "WEBHDFS" );
    service.setUrl( "http://localhost:50070/test-service-url" );
    topology.addService( service );

    Provider provider = new Provider();
    provider.setRole( "authentication" );
    provider.setName( "generic" );
View Full Code Here

Examples of org.apache.hadoop.security.authorize.Service

 
  private static class TestPolicyProvider extends PolicyProvider {

    @Override
    public Service[] getServices() {
      return new Service[] { new Service(ACL_CONFIG, TestProtocol.class) };
    }
View Full Code Here

Examples of org.apache.hadoop.service.Service

  /**
   * Return the latest forked process service that ran
   * @return the forkes service
   */
  protected ForkedProcessService latestProcess() {
    Service current = getCurrentService();
    Service prev = getPreviousService();

    Service latest = current != null ? current : prev;
    if (latest instanceof ForkedProcessService) {
      return (ForkedProcessService) latest;
    } else {
      //its a composite object, so look inside it for a process
      if (latest instanceof Parent) {
View Full Code Here

Examples of org.apache.hadoop.yarn.service.Service

    ContainerManagerImpl containerManager =
        createContainerManager(context, exec, del, nodeStatusUpdater,
        this.containerTokenSecretManager, this.aclsManager, dirsHandler);
    addService(containerManager);

    Service webServer = createWebServer(context, containerManager
        .getContainersMonitor(), this.aclsManager, dirsHandler);
    addService(webServer);

    dispatcher.register(ContainerManagerEventType.class, containerManager);
    addService(dispatcher);
View Full Code Here

Examples of org.apache.isis.core.integtestsupport.legacy.Service

            for (final Service serviceAnnotation : serviceAnnotations) {
                addServiceRepresentedBy(serviceAnnotation, services);
            }
        }

        final Service serviceAnnotation = testClass.getAnnotation(Service.class);
        if (serviceAnnotation != null) {
            addServiceRepresentedBy(serviceAnnotation, services);
        }
    }
View Full Code Here

Examples of org.apache.isis.viewer.junit.Service

            for (final Service serviceAnnotation : serviceAnnotations) {
                addServiceRepresentedBy(serviceAnnotation, services);
            }
        }

        final Service serviceAnnotation = testClass.getAnnotation(Service.class);
        if (serviceAnnotation != null) {
            addServiceRepresentedBy(serviceAnnotation, services);
        }
    }
View Full Code Here

Examples of org.apache.juddi.portlets.client.model.Service

                 businessEntity.getBusinessKey(),
                 EntityForLang.getName(businessEntity.getName(),lang).getValue(),
                 EntityForLang.getDescription(businessEntity.getDescription(),lang).getValue());
             if (businessEntity.getBusinessServices()!=null) {
               for (BusinessService businessService : businessEntity.getBusinessServices().getBusinessService()) {
                 Service service = new Service(
                     businessService.getServiceKey(),
                     EntityForLang.getName(businessService.getName(),lang).getValue(),
                     EntityForLang.getDescription(businessService.getDescription(),lang).getValue());
                 business.getServices().add(service);
               }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.