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

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


            throw new NullPointerException(_MESSAGES.get("NullRemoteResource"));
       
        QName qname = getPropertyQName();
       
        Element[] here = null;
        ResourcePropertyCollection props = getWsResource().getPropertyCollection();
        here = props.getResourceProperty(qname);
       
        WsResourceClient otherResource = new WsResourceClient(epr);
        Element[] there = otherResource.getResourceProperty(qname);
       
        //
View Full Code Here


        _resource = resource;
       
        //
        // get the metadata for the metric
        //
        ResourcePropertyCollection props = _resource.getPropertyCollection();
        MetadataDescriptor metadata = props.getMetadata();

        if (!metadata.isReadOnlyExternal(name))
        {
            Object[] filler = { name };
            throw new RuntimeException(_MESSAGES.get("NotReadOnly", filler));
View Full Code Here

        //
        // this call will eventually result in a listener calling the
        // update() method below - we will then overwrite the values
        // of the date attributes
        //
        ResourcePropertyCollection props = getWsResource().getPropertyCollection();
        props.updateResourceProperty(getName(), new Object[]{ value });
       
        _resetAt = new Date();
        _lastUpdated = null;
        _hasBeenReset = true;
    }
View Full Code Here

        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

        // in this case, we have to determine if there IS a property
        // and it's null, or there is no property
        //
        if (value == null)
        {
            ResourcePropertyCollection props = getWsResource().getPropertyCollection();
           
            //
            // property is nillable - we say it exists. not 100% accurate,
            // but as close as we're going to get
            //
            if (props.getSchema().isNillable(name))
                return new Element[]{ XmlUtils.createElement(name) };
           
            //
            // not nillable - must not exist
            //
View Full Code Here

       
        //
        // tell WSRP container about us - all read/write requests for
        // our properties will now be sent to us
        //
        ResourcePropertyCollection props = getWsResource().getPropertyCollection();
        props.addCapability(this);
    }
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

            throw new NullPointerException(_MESSAGES.get("NullQuery"));
       
        //
        // get a copy of the whole ws-rp doc that we can evaluate against
        //
        ResourcePropertyCollection props = getWsResource().getPropertyCollection();
        Element wsrpDoc = props.getResourcePropertyDocument();
       
        QueryExpressionFactory factory = getQueryExpressionFactory();
        QueryExpression evaluator = factory.newInstance(dialect);
       
        return evaluator.evaluate(wsrpDoc, query);
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.