Examples of ServiceData


Examples of com.dilanperera.rapidws.config.ServiceData

        // check whether the service has been mapped in configuration
        if (serviceDataMap.containsKey(serviceName))
        {
            // get service data from configuration mapping
            ServiceData serviceData = serviceDataMap.get(serviceName);

            // check whether the operation has been mapped in configuration
            if (serviceData.getOperations().containsKey(operationName))
            {
                // get operation data from configuration mapping
                OperationData operationData = serviceData.getOperations().get(operationName);

                try
                {
                    // create an instance of the operation handler setup in configuration
                    operationHandler = (OperationHandler)operationData.getClassType().newInstance();
                }
                catch (Exception ex)
                {
                  SimpleLogger.Write("Reflection error!");
                  SimpleLogger.Write(ex);

                      // setup the handler for unavailable operations as a default
                    operationHandler = new UnavailableOperationHandler();
                }
            }
            else
            {
              SimpleLogger.Write("Operation [" + operationName + "] in Service [" + serviceName + "] not mapped in configuration!");
              SimpleLogger.Write(String.valueOf(serviceData.getOperations().size()));

                // setup the handler for unavailable operations as a default
                operationHandler = new UnavailableOperationHandler();
            }
        }
View Full Code Here

Examples of org.apache.aries.jmx.codec.ServiceData

    /**
     * @see org.osgi.jmx.framework.ServiceStateMBean#getService(long)
     */
    public CompositeData getService(long serviceId) throws IOException {
        return new ServiceData(resolveService(bundleContext, serviceId)).toCompositeData();
    }
View Full Code Here

Examples of org.apache.aries.jmx.codec.ServiceData

        } catch (InvalidSyntaxException e) {
            throw new IllegalStateException("Failed to retrieve all service references", e);
        }
        if (allServiceReferences != null) {
            for (ServiceReference reference : allServiceReferences) {
                servicesTable.put(new ServiceData(reference).toCompositeData(serviceTypeItems));
            }
        }
        return servicesTable;
    }
View Full Code Here

Examples of org.apache.aries.jmx.codec.ServiceData

        } catch (InvalidSyntaxException e) {
            throw new IllegalStateException("Failed to retrieve all service references", e);
        }
        if (allServiceReferences != null) {
            for (ServiceReference reference : allServiceReferences) {
                servicesTable.put(new ServiceData(reference).toCompositeData());
            }
        }
        return servicesTable;
    }
View Full Code Here

Examples of org.apache.aries.jmx.codec.ServiceData

        } catch (InvalidSyntaxException e) {
            throw new IllegalStateException("Failed to retrieve all service references", e);
        }
        if (allServiceReferences != null) {
            for (ServiceReference reference : allServiceReferences) {
                servicesTable.put(new ServiceData(reference).toCompositeData());
            }
        }
        return servicesTable;
    }
View Full Code Here

Examples of org.apache.aries.jmx.codec.ServiceData

            } else {
                o = null;
            }
        } else if (adapter.equals(ServiceData.class)) {
            if (serviceReference != null) {
                o = new ServiceData(serviceReference);
            } else {
                o = ServiceData.from(rawServiceData);
            }
        } else if (adapter.equals(ServiceReference.class)) {
            if (serviceReference != null) {
View Full Code Here

Examples of org.apache.aries.jmx.codec.ServiceData

                idToServiceMap.clear();
            }

            for (final Object o : rawServiceData.values()) {
                final CompositeData composite = (CompositeData) o;
                final ServiceData service = ServiceData.from(composite);

                /*
                 * Get the service's properties from the JMX enabled runtime
                 */
                if (!mbeanProvider.isOpen()) {
                    return new Status(IStatus.WARNING, KarafWorkbenchActivator.PLUGIN_ID, "Connection to MBean server has been closed");
                }

                final ServiceItem serviceWrapper = new MBeanServiceItem(composite, mbeanProvider, idToBundleMap);

                synchronized (serviceSet) {
                    serviceSet.add(serviceWrapper);
                    idToServiceMap.put(service.getServiceId(), serviceWrapper);
                }

                monitor.worked(1);

                if (monitor.isCanceled()) {
View Full Code Here

Examples of org.apache.aries.jmx.codec.ServiceData

        } catch (InvalidSyntaxException e) {
            throw new IllegalStateException("Failed to retrieve all service references", e);
        }
        if (allServiceReferences != null) {
            for (ServiceReference reference : allServiceReferences) {
                servicesTable.put(new ServiceData(reference).toCompositeData());
            }
        }
        return servicesTable;
    }
View Full Code Here

Examples of org.apache.aries.jmx.codec.ServiceData

        } catch (InvalidSyntaxException e) {
            throw new IllegalStateException("Failed to retrieve all service references", e);
        }
        if (allServiceReferences != null) {
            for (ServiceReference reference : allServiceReferences) {
                servicesTable.put(new ServiceData(reference).toCompositeData());
            }
        }
        return servicesTable;
    }
View Full Code Here

Examples of org.cybergarage.upnp.xml.ServiceData

    try {
      Parser parser = UPnP.getXMLParser();
      Node scpdNode = parser.parse(scpdStr);
      if (scpdNode == null)
        return false;
      ServiceData data = getServiceData();
      data.setSCPDNode(scpdNode);
    }
    catch (ParserException e) {
      throw new InvalidDescriptionException(e);
    }
   
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.