Examples of Service


Examples of com.cloud.network.Network.Service

        if (supportedServicesStr != null && !supportedServicesStr.isEmpty() && !networksToReturn.isEmpty()) {
            List<NetworkVO> supportedNetworks = new ArrayList<NetworkVO>();
            Service[] suppportedServices = new Service[supportedServicesStr.size()];
            int i = 0;
            for (String supportedServiceStr : supportedServicesStr) {
                Service service = Service.getService(supportedServiceStr);
                if (service == null) {
                    throw new InvalidParameterValueException("Invalid service specified " + supportedServiceStr);
                } else {
                    suppportedServices[i] = service;
                }
View Full Code Here

Examples of com.couchbase.client.core.service.Service

        if (request instanceof SignalFlush) {
            for (Service service : serviceRegistry.services()) {
                service.send(request);
            }
        } else {
            Service service = serviceRegistry.locate(request);
            if (service == null) {
                responseBuffer.publishEvent(ResponseHandler.RESPONSE_TRANSLATOR, request, request.observable());
            } else {
                service.send(request);
            }
        }
    }
View Full Code Here

Examples of com.dianping.cat.home.heavy.entity.Service

          Url url = call.findOrCreateUrl(key);
          updateUrl(url, logview, max);
        }
      } else {
        if (max > 10) {
          Service service = call.findOrCreateService(key);
          updateService(service, logview, max);
        }
      }
    } else if ("SQL".equals(type)) {
      HeavySql sql = m_report.getHeavySql();
      String key = m_currentDomain + ":" + m_currentName;
      if (m_currentType.equals("URL")) {
        if (max > 20) {
          Url url = sql.findOrCreateUrl(key);
          updateUrl(url, logview, max);
        }
      } else {
        if (max > 20) {
          Service service = sql.findOrCreateService(key);
          updateService(service, logview, max);
        }
      }
    } else if ("Cache".equals(type)) {
      HeavyCache cache = m_report.getHeavyCache();
      String key = m_currentDomain + ":" + m_currentName;
      if (m_currentType.equals("URL")) {
        if (max > 100) {
          Url url = cache.findOrCreateUrl(key);
          updateUrl(url, logview, max);
        }
      } else {
        if (max > 100) {
          Service service = cache.findOrCreateService(key);
          updateService(service, logview, max);
        }
      }
    }
  }
View Full Code Here

Examples of com.dubture.symfony.core.model.Service

   
    // show the id of the service in the proposal popup, so
    // the UsestatementInjector can inject to correct fully qualified name
    if (typeProposal.getModelElement() instanceof Service) {
     
      Service service = (Service) typeProposal.getModelElement();
           
      if (service.getId() != null)
        return service.getId();     
     
    }
   
    return super.createTypeProposalLabel(typeProposal);
   
View Full Code Here

Examples of com.dubture.symfony.index.model.Service

      String path = result.getString(1);
      String id = result.getString(2);
      String phpClass = result.getString(3);
     
      Service service = new Service(id, phpClass, path);
      return service;
    } catch(Exception e) {
      Logger.logException(e);
    }   
    return null;
View Full Code Here

Examples of com.expositds.ars.domain.order.Service

    if (source != null) {
      tmp = HibernateHelper.initializeAndUnproxy(source);
    }   

    if (tmp instanceof ServiceEntity) {
      Service service = new Service();
      service.setId(tmp.getId());
      service.setDescription(((ServiceEntity) tmp).getDescription());
      service.setElapsedTime(tmp.getElapsedTime());
      service.setNote(tmp.getNote());
      service.setTotal(tmp.getTotal());

      result = service;
    }

    if (tmp instanceof DetailReplacementEntity) {
View Full Code Here

Examples of com.facebook.swift.parser.model.Service

    }

    @Override
    public void visit(final Visitable visitable) throws IOException
    {
        final Service service = Service.class.cast(visitable);
        final ServiceContext serviceContext = contextGenerator.serviceFromThrift(service);

        for (ThriftMethod method: service.getMethods()) {
            final MethodContext methodContext = contextGenerator.methodFromThrift(method);
            serviceContext.addMethod(methodContext);

            for (final ThriftField field : method.getArguments()) {
                methodContext.addParameter(contextGenerator.fieldFromThrift(field));
View Full Code Here

Examples of com.google.common.util.concurrent.Service

    Scheduler scheduler = injector.getInstance(Scheduler.class);
    assertTrue(!scheduler.isStarted());

    boot();
    Service cronLifecycle = injector.getInstance(CronLifecycle.class);

    assertTrue(cronLifecycle.isRunning());
    assertTrue(scheduler.isStarted());

    shutdown.getValue().execute();

    assertTrue(!cronLifecycle.isRunning());
    assertTrue(scheduler.isShutdown());
  }
View Full Code Here

Examples of com.google.eclipse.protobuf.protobuf.Service

  // syntax = "proto2";
  //
  // service CallServer {}
  @Test public void should_return_name_of_Service() {
    Service service = xtext.find("CallServer", Service.class);
    String name = resolver.nameOf(service);
    assertThat(name, equalTo("CallServer"));
  }
View Full Code Here

Examples of com.google.gdata.client.Service

 
  @Override
  public void execute() throws Exception {
    MediaFileSource media = new MediaFileSource(new File(attachmentFile), attachmentMimeType);
   
    Service service = createService();
    Service.GDataRequest request = service.createRequest(GDataRequest.RequestType.INSERT,
        new URL(itemMediaUrl), new ContentType(attachmentMimeType));

    if (caption != null) {
      request.setHeader("Slug", caption);
    }
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.