[jboss-as7-dev] Accessing subsystem runtime attributes

Francesco Marchioni marchioni.francesco at gmail.com
Mon May 9 08:35:57 EDT 2011


>There are two reason you don't get actual values:

>a) not the most recent AS7 build
>b) no data available

Thanks for your reply. I guess the former one, as attributes are mentioned
in your output, even if there are no metrics available for them. Will try
building a new AS trunk with the most recent sources.
Thanks
Francesco

2011/5/9 Heiko Braun <hbraun at redhat.com>

>
>
>
> There are two reason you don't get actual values:
>
> a) not the most recent AS7 build
> b) no data available
>
>
> This is what I get when building the recent master:
>
> [domain at localhost:9999 /]
> /profile=default/subsystem=datasources/data-source="java:/H2DS":read-resourc(include-runtime=true)
> {
>    "outcome" => "success",
>    "result" => {
>        "connection-url" => "jdbc:h2:mem:test;DB_CLOSE_DELAY=-1",
>        "driver-class" => "org.h2.Driver",
>        "jndi-name" => "java:/H2DS",
>        "driver" => "org.h2.Driver#1.2",
>        "pool-name" => "H2DS",
>        "use-java-context" => true,
>        "enabled" => true,
>         "pool-prefill" => false,
>         "pool-use-strict-min" => false,
>        "user-name" => "sa",
>        "password" => "sa",
>         "MaxWaitTime" => "no metrics available",
>        "ActiveCount" => "no metrics available",
>        "CreatedCount" => "no metrics available",
>        "MaxWaitCount" => "no metrics available",
>        "use-fast-fail" => undefined,
>        "background-validation" => undefined,
>        "max-pool-size" => undefined,
>        "PreparedStatementCacheMissCount" => "no metrics available",
>        "TotalBlockingTime" => "no metrics available",
>        "AverageCreationTime" => "no metrics available",
>        "PreparedStatementCacheAddCount" => "no metrics available",
>        "PreparedStatementCacheDeleteCount" => "no metrics available",
>        "PreparedStatementCacheHitCount" => "no metrics available",
>        "DestroyedCount" => "no metrics available",
>        "AverageBlockingTime" => "no metrics available",
>        "idle-timeout-minutes" => undefined,
>        "MaxCreationTime" => "no metrics available",
>        "TotalCreationTime" => "no metrics available",
>        "PreparedStatementCacheAccessCount" => "no metrics available",
>        "AvailableCount" => "no metrics available",
>         "blocking-timeout-wait-millis" => undefined,
>        "background-validation-minutes" => undefined,
>         "MaxUsedCount" => "no metrics available",
>        "min-pool-size" => undefined,
>        "TimedOut" => "no metrics available",
>        "PreparedStatementCacheCurrentSize" => "no metrics available"
>    },
>    "compensating-operation" => undefined
> }
>
>
> On May 9, 2011, at 2:10 PM, Francesco Marchioni wrote:
>
> > By using
> >
> /subsystem=datasources/data-source="java:/H2DS":read-resource(include-runtime=true)
> > produces the just the initial set of properties, though it may be that
> simply no runtime information is available at the moment......
> >
> > [localhost:9999 /]
> /subsystem=datasources/data-source="java:/H2DS":read-resource
> > (include-runtime=true)
> > {
> >     "outcome" => "success",
> >     "result" => {
> >         "connection-url" => "jdbc:h2:mem:test;DB_CLOSE_DELAY=-1",
> >         "driver-class" => "org.h2.Driver",
> >         "jndi-name" => "java:/H2DS",
> >         "driver" => "org.h2.Driver#1.2",
> >         "pool-name" => "H2DS",
> >         "use-java-context" => true,
> >         "enabled" => true,
> >         "pool-prefill" => true,
> >         "pool-use-strict-min" => false,
> >         "user-name" => "sa",
> >         "password" => "sa",
> >         "share-prepared-statements" => false,
> >         "background-validation" => false,
> >         "use-fast-fail" => false,
> >         "validate-on-match" => false,
> >         "idle-timeout-minutes" => undefined,
> >         "blocking-timeout-wait-millis" => undefined,
> >         "background-validation-minutes" => undefined,
> >         "min-pool-size" => undefined,
> >         "max-pool-size" => undefined
> >     },
> >     "compensating-operation" => undefined
> > }
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-as7-dev/attachments/20110509/6169f43f/attachment.html 


More information about the jboss-as7-dev mailing list