Package org.apache.muse.ws.resource.properties

Examples of org.apache.muse.ws.resource.properties.ResourcePropertyCollection


        throws SoapFault
    {
        super.initialize();
       
        WsResource resource = getWsResource();
        ResourcePropertyCollection props = resource.getPropertyCollection();
        MetadataDescriptor metadata = props.getMetadata();
       
        //
        // load all of the metric data from the RMD
        //
        Iterator i = metadata.getPropertyNames().iterator();
       
        while (i.hasNext())
        {
            QName qname = (QName)i.next();
            String capability = metadata.getExtendedMetadata(qname, MuwsConstants.CAPABILITY_QNAME);
           
            //
            // a property is a metric IF it defines a Capability element in
            // its RMD definition with the Metrics capability URI
            //
            if (capability != null && capability.equals(MuwsConstants.METRICS_URI))
            {
                Metric metric = new SimpleMetric(qname, resource);
                _metricsByQName.put(qname, metric);
               
                //
                // on demand? update metadata before reads
                //
                if (metric.isOnDemand())
                    props.addReadListener(new MetricOnDemandListener(metric));
               
                //
                // add metric attributes for all reads
                //
                props.addReadListener(new MetricDecorationProvider(metric));
               
                //
                // update metadata whenever changes occur
                //
                props.addChangeListener(new MetricUpdateListener(metric));
               
                //
                // special case: counters that run on an interval can be
                // automated by starting a thread that increments the value
                // every N seconds
View Full Code Here


    }
   
    public Element[] getMultipleResourceProperties(QName[] qnames)
        throws InvalidResourcePropertyQNameFault, BaseFault
    {
        ResourcePropertyCollection props = getWsResource().getPropertyCollection();
        return props.getMultipleResourceProperties(qnames);
    }
View Full Code Here

    }

    public Element[] getResourceProperty(QName qname)
        throws InvalidResourcePropertyQNameFault, BaseFault
    {
        ResourcePropertyCollection props = getWsResource().getPropertyCollection();
        return props.getResourceProperty(qname);
    }
View Full Code Here

    }

    public Element getResourcePropertyDocument()
        throws BaseFault
    {
        ResourcePropertyCollection props = getWsResource().getPropertyCollection();
        return props.getResourcePropertyDocument();
    }
View Full Code Here

        //
        // for every property in the resource's ws-rp doc, create a property
        // change listener that will send out notifications for each change
        //
        WsResource resource = getWsResource();
        ResourcePropertyCollection props = resource.getPropertyCollection();
        Iterator i = props.getPropertyNames().iterator();
       
        while (i.hasNext())
        {
            QName name = (QName)i.next();
           
            addTopic(name);
            _allTopicNames.add(name);
           
            PropertyChangeListener listener = factory.newInstance(name, resource);
            props.addChangeListener(listener);
        }
       
        //
        // if the resource supports either WS-RL capability, add support
        // for the WS-RL termination topic
View Full Code Here

TOP

Related Classes of org.apache.muse.ws.resource.properties.ResourcePropertyCollection

Copyright © 2018 www.massapicom. 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.