Andrea has already answered some of the questions.  Just to narrow
down some points....

On Mon, Mar 16, 2009 at 2:12 PM, SARA1232007 <[email protected]> wrote:
>
> Hi,
>
> I have following quesiton about  Muse Capabilities:
>
> 1. I guess the function of muse configuration capability can be done by
> WS-ResourceProperties SetResourceProperty and GetResourceProperty, that's
> why muse configuration capability do nothing.
> What I don't understand is then what can muse configuration capability do?

All of the base capabilities are based upon the MUWS and WSDM specs.
Custom capabilities are composable and an appropriate level of
functionality per logical capability.

> 2. the shutdown() operation performed by SimpleResource do two things: call
> prepareShutdown() by each of its capabilities, then call shutdown() by each
> of its capabilities, and at last removeResource from ResourceManager. In
> AbstractCapability.java,  prepareShutdown() does nothing, and shutdown()
> only change the value of _hasBeenShutdown flag. What is Is _hasBeenShutdown
> used for? Is _hasBeenShutdown flag be check before each invocation of a
> capability? And more important, how does muse release the resources occupied
> by Resouce and capabilities?

They have some usage in the 2.2.1 code base, and will have further use
in 2.3.0 allowing for restarts.

> 3. Almost every WSDM capability has a PROPERTIES field to present
> propertyQNames. How is it initialized? What value will propertyQNames for
> each WSDM capability to take?

It is initialised by the standard java mechanism for statics and arrays:

    private static final QName[] _PROPERTIES = new QName[]
    {
        new QName(NAMESPACE_URI, "CPUload", PREFIX),
        new QName(NAMESPACE_URI, "FrameDropping", PREFIX)
    };

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to