Examples of Service


Examples of org.apache.stratos.manager.feature.dashbord.ui.beans.Service

   
      while (txElements.hasNext()) {
        OMElement txEle = txElements.next();
        data.addService(getService(txEle));
      }
      Service service = data.getService("manager");

//      Map<String, Story> stories = service.getStories();
//      System.out.println(stories.size());
//      int index = 1;
//      for (Map.Entry<String, Story> entry : stories.entrySet()) {
View Full Code Here

Examples of org.apache.stratos.messaging.domain.topology.Service

                        event.getClusterId(),
                        event.getMemberId()));
            }

            // Validate event against the existing topology
            Service service = topology.getService(event.getServiceName());
            if (service == null) {
                if (log.isWarnEnabled()) {
                    log.warn(String.format("Service does not exist: [service] %s", event.getServiceName()));
                }
                return false;
            }
            Cluster cluster = service.getCluster(event.getClusterId());
            if (cluster == null) {
                if (log.isWarnEnabled()) {
                    log.warn(String.format("Cluster does not exist: [service] %s [cluster] %s",
                            event.getServiceName(), event.getClusterId()));
                }
View Full Code Here

Examples of org.apache.tapestry.annotations.Service

    public void annotation_present()
    {
        Class objectType = Runnable.class;
        AnnotationProvider provider = mockAnnotationProvider();
        ObjectLocator locator = mockObjectLocator();
        Service service = newMock(Service.class);
        String serviceId = "JiffyPop";
        Runnable instance = mockRunnable();

        train_getAnnotation(provider, Service.class, service);

        expect(service.value()).andReturn(serviceId);

        train_getService(locator, serviceId, objectType, instance);

        replay();
View Full Code Here

Examples of org.apache.tapestry5.annotations.Service

    public void annotation_present()
    {
        Class objectType = Runnable.class;
        AnnotationProvider provider = mockAnnotationProvider();
        ObjectLocator locator = mockObjectLocator();
        Service service = newMock(Service.class);
        String serviceId = "JiffyPop";
        Runnable instance = mockRunnable();

        train_getAnnotation(provider, Service.class, service);

        expect(service.value()).andReturn(serviceId);

        train_getService(locator, serviceId, objectType, instance);

        replay();
View Full Code Here

Examples of org.apache.tools.ant.types.spi.Service

         * Write SPI Information to JAR. Workaround for ant 1.7 issue
         * writing service to the wrong directory.
         */
        private void writeServices(ZipOutputStream zOut) throws IOException {
            Iterator serviceIterator;
            Service service;

            serviceIterator = services.iterator();
            while (serviceIterator.hasNext()) {
                service = (Service) serviceIterator.next();
                //stolen from writeManifest
                super.zipFile(service.getAsStream(), zOut,
                        "META-INF/services/" + service.getType(),
                        System.currentTimeMillis(), null,
                        ZipFileSet.DEFAULT_FILE_MODE);
            }
        }
View Full Code Here

Examples of org.apache.tuscany.model.assembly.Service

        return ref;
    }

    public EntryPoint createEntryPoint(String entryPointName, ServiceContract serviceContract, Binding binding, String targetName) {
        // create and configure the exposed service
        Service service = createService();
        service.setName(entryPointName);
        service.setServiceContract(serviceContract);
        ConfiguredService configuredService = createConfiguredService();
        configuredService.setPort(service);

        // create and configure a reference to target
        Reference reference = createReference();
View Full Code Here

Examples of org.apache.tuscany.sca.assembly.Service

    /**
     * Convert a Java class to a service.
     */
    static Service service(final Class<?> c, final JavaInterfaceFactory jif, final AssemblyFactory af) throws InvalidInterfaceException {
        Service s = af.createService();
        s.setName(c.getSimpleName());
        s.setInterfaceContract(contract(c, jif));
        return s;
    }
View Full Code Here

Examples of org.apache.tuscany.sca.domain.model.Service

        } else {
            modifiedServiceName = serviceName;
        }
       
        // collect the service info
        Service service = domainModelFactory.createService();
        service.setServiceURI(modifiedServiceName);
        service.setServiceURL(URL);
        service.setServiceBinding(bindingName);
       
        // find the node
        Node node = domainModel.getNodes().get(nodeURI);
       
        if (node != null){
View Full Code Here

Examples of org.apache.tuscany.spi.component.Service

                throw e;
            }
            children.put(child.getName(), child);
        }
        if (child instanceof Service) {
            Service service = (Service) child;
            synchronized (services) {
                if (service.isSystem()) {
                    systemServices.add(service);
                } else {
                    services.add(service);
                }
            }
View Full Code Here

Examples of org.apache.uima.simpleserver.Service

            + " -- initialisation begins");
    this.baseWebappDirectory = new File(getServletContext().getRealPath(""));
    // File xsdFile = new File(baseWebappDirectory.getAbsoluteFile()
    // + "/schema/ResultSpecification.xsd");
    // server = new Server(xsdFile);
    this.server = new Service();
    this.initializationSuccessful = initServer();
    declareServletParameters();
  }
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.