activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Shannon <christopher.l.shan...@gmail.com>
Subject Re: [DISCUSS] Human unit on broker.xml
Date Fri, 09 Dec 2016 17:23:34 GMT
5.x does it in MemoryPropertyEditor which is used by Xbean.  There's
nothing fancy, it just parses the values and does some multiplication.

https://github.com/apache/activemq/blob/master/activemq-broker/src/main/java/org/apache/activemq/util/MemoryPropertyEditor.java

On Fri, Dec 9, 2016 at 9:28 AM, Clebert Suconic
<clebert.suconic@gmail.com> wrote:
> I'm fine with manual parsing BTW. It seems easy enough :)
>
>
> But I was wondering about the details.
>
> On Fri, Dec 9, 2016 at 9:27 AM, Clebert Suconic
> <clebert.suconic@gmail.com> wrote:
>> We can look on the code of course. But what AMQ5 is using for that?
>> any library or that's manual parsing?
>>
>> On Thu, Dec 8, 2016 at 10:25 AM, Fabio Gomes dos Santos
>> <supergrilo@gmail.com> wrote:
>>> I've did some researches about that, and native class of java maybe
>>> satisfying the expectations:
>>>
>>> Example 1:
>>> http://stackoverflow.com/questions/16968587/java-convert-human-readable-size-to-bytes/33288820#33288820
>>>
>>> Example 2:
>>> http://codereview.stackexchange.com/questions/77697/convert-a-formatted-file-size-to-bytes
>>>
>>>
>>> 2016-12-08 12:55 GMT-02:00 Clebert Suconic <clebert.suconic@gmail.com>:
>>>
>>>> @Fabio do you know of any apache licensed libraries that can be used
>>>> for that? or we would need to make the calculation ourselves?
>>>>
>>>> I
>>>>
>>>> On Thu, Dec 8, 2016 at 9:46 AM, Andy Taylor <andy.tayls67@gmail.com>
>>>> wrote:
>>>> > good idea
>>>> >
>>>> > On 8 December 2016 at 11:52, Fabio Gomes dos Santos <
>>>> supergrilo@gmail.com>
>>>> > wrote:
>>>> >
>>>> >> Hi guys,
>>>> >>
>>>> >> I've opened ARTEMIS-873, and here ask "you what you think about
that
>>>> >> feature".
>>>> >> It's very annoying to be calculating bytes.
>>>> >>
>>>> >>
>>>> >> --
>>>> >> Fábio Santos
>>>> >> supergrilo@gmail.com
>>>> >> <http://br.linkedin.com/pub/f%C3%A1bio-santos/1b/20/422>
>>>> >>
>>>>
>>>>
>>>>
>>>> --
>>>> Clebert Suconic
>>>>
>>>
>>>
>>>
>>> --
>>> Fábio Santos
>>> supergrilo@gmail.com
>>> <http://br.linkedin.com/pub/f%C3%A1bio-santos/1b/20/422>
>>
>>
>>
>> --
>> Clebert Suconic
>
>
>
> --
> Clebert Suconic

Mime
View raw message