deltaspike-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DELTASPIKE-300) Basic MBean API/Extension to link CDI to JMX
Date Sun, 16 Dec 2012 16:12:13 GMT

     [ https://issues.apache.org/jira/browse/DELTASPIKE-300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Romain Manni-Bucau updated DELTASPIKE-300:
------------------------------------------

    Description: 
The idea is basically to be able to push a MBean froma CDI bean:

{code}
@MBean
    @Description("my mbean")
    @ApplicationScoped
    public static class MyMBean
    {
        private int counter = 0;

        @ManagedAttribute
        @Description("get counter")
        public int getCounter()
        {
            return counter;
        }

        @ManagedAttribute
        @Description("set counter")
        public void setCounter(final int counter)
        {
            this.counter = counter;
        }

        public void resetTo(final int value)
        {
            counter = value;
        }

        @ManagedOperation
        @Description("multiply counter")
        public int multiply(final int n)
        {
            return counter * n;
        }
    }
{code}

This jira is only for an initial version.

Next steps and discussion will be done on other jira.

  was:
The idea is basically to be able to push a MBean froma CDI bean:

{{code}}
@MBean
    @Description("my mbean")
    @ApplicationScoped
    public static class MyMBean
    {
        private int counter = 0;

        @ManagedAttribute
        @Description("get counter")
        public int getCounter()
        {
            return counter;
        }

        @ManagedAttribute
        @Description("set counter")
        public void setCounter(final int counter)
        {
            this.counter = counter;
        }

        public void resetTo(final int value)
        {
            counter = value;
        }

        @ManagedOperation
        @Description("multiply counter")
        public int multiply(final int n)
        {
            return counter * n;
        }
    }
{code}

This jira is only for an initial version.

Next steps and discussion will be done on other jira.

    
> Basic MBean API/Extension to link CDI to JMX
> --------------------------------------------
>
>                 Key: DELTASPIKE-300
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-300
>             Project: DeltaSpike
>          Issue Type: Bug
>            Reporter: Romain Manni-Bucau
>            Assignee: Romain Manni-Bucau
>             Fix For: 0.4-incubating
>
>
> The idea is basically to be able to push a MBean froma CDI bean:
> {code}
> @MBean
>     @Description("my mbean")
>     @ApplicationScoped
>     public static class MyMBean
>     {
>         private int counter = 0;
>         @ManagedAttribute
>         @Description("get counter")
>         public int getCounter()
>         {
>             return counter;
>         }
>         @ManagedAttribute
>         @Description("set counter")
>         public void setCounter(final int counter)
>         {
>             this.counter = counter;
>         }
>         public void resetTo(final int value)
>         {
>             counter = value;
>         }
>         @ManagedOperation
>         @Description("multiply counter")
>         public int multiply(final int n)
>         {
>             return counter * n;
>         }
>     }
> {code}
> This jira is only for an initial version.
> Next steps and discussion will be done on other jira.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message