Examples of ServiceInfo


Examples of net.jini.lookup.entry.ServiceInfo

                             ("net.jini.lookup.entry.ServiceInfo.model",
                              "");
        String serialNumber = config.getStringConfigVal
                             ("net.jini.lookup.entry.ServiceInfo.serialNumber",
                              "");
        return new ServiceInfo(name,manufacturer,vendor,version,
                               model,serialNumber);
    }//end getServiceInfoEntryFromConfig
View Full Code Here

Examples of objot.service.ServiceInfo

  @Override
  protected ServiceInfo getInfo(String n, String cla, String m) throws Exception
  {
    if (dataTest && "test".equals(cla))
      return new ServiceInfo(codec, n, ModelsCreate.CREATE);
    ServiceInfo inf = super.getInfo(n, Class2.packageName(Do.class) + '.' + cla, m);
    return inf != null && inf.meth.isAnnotationPresent(Do.Service.class) ? inf : null;
  }
View Full Code Here

Examples of org.apache.activemq.jmdns.ServiceInfo

    }

    public void stop() {
        if (jmdns != null) {
            for (Iterator<ServiceInfo> iter = serviceInfos.iterator(); iter.hasNext();) {
                ServiceInfo si = iter.next();
                jmdns.unregisterService(si);
            }

            // Close it down async since this could block for a while.
            final JmDNS closeTarget = jmdns;
View Full Code Here

Examples of org.apache.ambari.server.state.ServiceInfo

      String stackVersion = clusterInfo.get("stackVersion");

      List<ClusterServiceEntity> clusterServiceEntities = clusterServiceDAO.findAll();
      for (final ClusterServiceEntity clusterServiceEntity : clusterServiceEntities) {
        String serviceName = clusterServiceEntity.getServiceName();
        ServiceInfo serviceInfo = null;
        try {
          serviceInfo = ambariMetaInfo.getService(stackName, stackVersion, serviceName);
        } catch (AmbariException e) {
          LOG.error("Service " + serviceName + " not found for " + stackName + stackVersion);
          continue;
        }
        List<String> configTypes = serviceInfo.getConfigDependencies();
        if (configTypes != null) {
          for (String configType : configTypes) {
            if (configType.contains(log4jConfigTypeContains)) {
              ClusterConfigEntityPK configEntityPK = new ClusterConfigEntityPK();
              configEntityPK.setClusterId(clusterId);
              configEntityPK.setType(configType);
              configEntityPK.setTag(defaultVersionTag);
              ClusterConfigEntity configEntity = clusterDAO.findConfig(configEntityPK);

              if (configEntity == null) {
                String filename = configType + ".xml";
                Map<String, String> properties = new HashMap<String, String>();
                for (PropertyInfo propertyInfo : serviceInfo.getProperties()) {
                  if (filename.equals(propertyInfo.getFilename())) {
                    properties.put(propertyInfo.getName(), propertyInfo.getValue());
                  }
                }
                if (!properties.isEmpty()) {
View Full Code Here

Examples of org.apache.axis.wsdl.wsdl2ws.info.ServiceInfo

                        targetEngine,
                        transportURI,
                        targetEndpointURI,
                        targetNameSpaceOfWSDL,
                        security),
                    new ServiceInfo(servicename, qualifiedServiceName, methods),
                    typeMap));
        if (wsg == null)
            throw new WrapperFault("does not support the option combination");
        if(verbose){
          Iterator it = typeMap.getTypes().iterator();
View Full Code Here

Examples of org.apache.commons.discovery.ServiceInfo

       
        ServiceInfo[] infoArray = discovery.findServices(name);
       
        if ( infoArray != null && infoArray.length > 0 ) {
            for (int i = 0; i < infoArray.length; i++ ) {
                ServiceInfo info = infoArray[i];
                try {               
                    Class typeClass = info.getLoader().loadClass( info.getImplName() );
                    if ( typeClass != null ) {
                        return newInstance(uri, typeClass);
                    }
                }
                catch (Exception e) {
                    log.error( "Could not load service: " + info.getImplName()
                       + " with loader: " + info.getLoader()
                   );
                }
            }
        }
        else {
View Full Code Here

Examples of org.apache.cxf.service.model.ServiceInfo

            Map<String, Element> schemas = (Map<String, Element>)serviceList.get(0)
                .getProperty(WSDLServiceBuilder.WSDL_SCHEMA_ELEMENT_LIST);
            if (schemas == null) {
                schemas = new java.util.HashMap<String, Element>();
                ServiceInfo serviceInfo = serviceList.get(0);
                for (SchemaInfo schemaInfo : serviceInfo.getSchemas()) {
                    if (schemaInfo.getElement() != null && schemaInfo.getSystemId() == null) {
                        String sysId = schemaInfo.getElement().getAttribute("targetNamespce");
                        if (sysId == null) {
                            sysId = serviceInfo.getTargetNamespace();
                        }
                        schemas.put(sysId, schemaInfo.getElement());
                    }
                    if (schemaInfo.getElement() != null && schemaInfo.getSystemId() != null) {
                        schemas.put(schemaInfo.getSystemId(), schemaInfo.getElement());
View Full Code Here

Examples of org.apache.cxf.service.model.ServiceInfo

        Map<String, Element> schemas = (Map<String, Element>)serviceList.get(0)
            .getProperty(WSDLServiceBuilder.WSDL_SCHEMA_ELEMENT_LIST);
        if (schemas == null) {
            schemas = new java.util.HashMap<String, Element>();
            ServiceInfo serviceInfo = serviceList.get(0);
            for (SchemaInfo schemaInfo : serviceInfo.getSchemas()) {
                if (schemaInfo.getElement() != null && schemaInfo.getSystemId() == null) {
                    String sysId = schemaInfo.getElement().getAttribute("targetNamespce");
                    if (sysId == null) {
                        sysId = serviceInfo.getTargetNamespace();
                    }
                    if (sysId != null) {
                        schemas.put(sysId, schemaInfo.getElement());
                    }
                }
View Full Code Here

Examples of org.apache.cxf.service.model.ServiceInfo

        
        JAXBDataBinding databinding = new JAXBDataBinding();
        databinding.setContext(context);
        svc.setDataBinding(databinding);

        ServiceInfo svcfo = client.getEndpoint().getEndpointInfo().getService();

        // Setup the new classloader!
        Thread.currentThread().setContextClassLoader(cl);

        TypeClassInitializer visitor = new TypeClassInitializer(svcfo, intermediateModel);
View Full Code Here

Examples of org.apache.cxf.service.model.ServiceInfo

        CorbaConduit conduit = setupCorbaConduit(false);           
        CorbaMessage message = control.createMock(CorbaMessage.class);
        Exchange exchange = control.createMock(Exchange.class);
        EasyMock.expect(message.getExchange());
        EasyMock.expectLastCall().andReturn(exchange);       
        ServiceInfo service = control.createMock(ServiceInfo.class);
        EasyMock.expect(exchange.get(ServiceInfo.class)).andReturn(service);
        List<CorbaTypeMap> list = control.createMock(List.class);
        List<CorbaTypeMap> typeMaps = control.createMock(List.class);
        EasyMock.expect(service.getExtensors(CorbaTypeMap.class)).andReturn(list);               
       
        OperationType opType = control.createMock(OperationType.class);
        conduit.getArguments(message);
        EasyMock.expectLastCall().andReturn(null)
        conduit.getReturn(message);
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.