Examples of Service


Examples of org.riftsaw.engine.Service

        if (re == null) {
            BPELLogger.ROOT_LOGGER.noServiceReferencesFoundForProcess(localProcessName.toString());
            return (null);
        }
       
        Service ret=re.getService(serviceName, portName, _serviceDomains.get(serviceName));
       
        if (ret == null) {
            BPELLogger.ROOT_LOGGER.noServiceFoundFor(serviceName.toString(), portName);
        }
       
View Full Code Here

Examples of org.rioproject.servicecore.Service

    }

    class FeederTask implements Runnable {
       
        public void run() {
            Service s = getService();
            if(s!=null) {
                try {
                    CalculablePatient c = checkAdd(s, "pulse", lastPulse);
                    if(c!=null) {
                        lastPulse = c;
View Full Code Here

Examples of org.rzo.yajsw.os.Service

  public boolean yajswUninstall(String name)
  {
    if (_services.get(name) != null && "Service".equals(_services.get(name).getWrapped()))
    {
      Service service = OperatingSystem.instance().serviceManagerInstance().getService(name);
      service.stop();
      return service.uninstall();
    }
    else
      return false;
  }
View Full Code Here

Examples of org.serviceconnector.service.Service

            }
            writer.writeEndElement();
            continue;
          }
          if (value instanceof Service) {
            Service service = (Service) value;
            writer.writeStartElement("service");
            writer.writeStartElement("name");
            writer.writeCData(service.getName());
            writer.writeEndElement();
            writer.writeEndElement();
            continue;
          }
          if (value instanceof Server) {
View Full Code Here

Examples of org.smslib.Service

      gateway.setInbound(true);
      gateway.setOutbound(true);
    //  gateway.getATHandler().setStorageLocations("SMMTMESR");

      service = new Service();
      service.addGateway( gateway );
      service.startService();

      //service.getSettings().SERIAL_POLLING = true;
      // service.getSettings().SERIAL_POLLING_INTERVAL = 30;
View Full Code Here

Examples of org.switchyard.Service

    public void testAccessAttachment() throws Exception {
        final Holder holder = new Holder();
        RulesComponentImplementationModel rci_model = (RulesComponentImplementationModel)new RulesSwitchYardScanner().scan(AccessAttachment.class).getImplementation();
        QName serviceName = new QName("AccessAttachment");
        RulesExchangeHandler handler = new RulesExchangeHandler(rci_model, serviceDomain, serviceName);
        Service service = serviceDomain.registerService(serviceName, JavaService.fromClass(AccessAttachment.class), handler);
        serviceDomain.registerServiceReference(service.getName(), service.getInterface(), service.getProviderHandler());
        handler.start();
        DataSource attachment = new TestDataSource("someAttach", "text/plain", "someAttachData");
        new Invoker(serviceDomain, serviceName).operation("process").attachment(attachment.getName(), attachment).sendInOnly(holder);
        handler.stop();
        Assert.assertEquals("someAttachData", holder.getValue());
View Full Code Here

Examples of org.switchyard.admin.Service

    @Override
    public ObjectName getService(String serviceName) {
        ObjectName name = null;
        if (serviceName != null) {
            Service service = _application.getService(QName.valueOf(serviceName));
            if (service != null) {
                name = MBeans.getObjectName(service);
            }
        }
        return name;
View Full Code Here

Examples of org.switchyard.component.bean.Service

    public ServiceInterface getInterface() {
        return JavaService.fromClass(_serviceMetadata.getServiceClass());
    }

    private String getServiceName(Class<?> beanClass) {
        Service service = beanClass.getAnnotation(Service.class);
        String name = Strings.trimToNull(service.name());
        if (name == null) {
            name = getServiceInterface(beanClass).getSimpleName();
        }
        return name;
    }
View Full Code Here

Examples of org.teleal.cling.model.meta.Service

    protected void ended(GENASubscription subscription,
        CancelReason reason, UpnpResponse responseStatus) {     

      if(device!=null && isConfigured()) {
        //rebooting the GENA subscription
        Service service = subscription.getService();     
        SonosPlayerSubscriptionCallback callback = new SonosPlayerSubscriptionCallback(service,interval);
        upnpService.getControlPoint().execute(callback);

      }
    }
View Full Code Here

Examples of org.vfny.geoserver.global.Service

            sendError(response, t);

            return;
        }

        Service s = null;

        if ("WFS".equals(serviceRequest.getService())) {
            s = serviceRequest.getWFS();
        } else {
            s = serviceRequest.getWMS();
        }

        try {
            // execute request
            LOGGER.finer("executing request");
            serviceResponse.execute(serviceRequest);
            LOGGER.finer("execution succeed");
        } catch (ServiceException serviceException) {
            LOGGER.warning("service exception while executing request: "
                + serviceRequest + "\ncause: " + serviceException.getMessage());
            serviceResponse.abort(s);
            sendError(response, serviceException);

            return;
        } catch (Throwable t) {
            //we can safelly send errors here, since we have not touched response yet
            serviceResponse.abort(s);
            sendError(response, t);

            return;
        }

        OutputStream strategyOuput = null;

        //obtain the strategy output stream
        try {
            LOGGER.finest("getting strategy output");
            strategyOuput = strategy.getDestination(response);
            LOGGER.finer("strategy output is: "
                + strategyOuput.getClass().getName());

            String mimeType = serviceResponse.getContentType(s.getGeoServer());
            LOGGER.fine("mime type is: " + mimeType);
            response.setContentType(mimeType);

            String encoding = serviceResponse.getContentEncoding();
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.