You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-users@jakarta.apache.org by Christoph Gernert <ch...@helmholtz-hzi.de> on 2011/08/03 12:06:56 UTC

Fwd: getSize of a JCS object

Hello,

The functions of the JCS object seem to be very similar to a Java HashMap.
I was starting to replace some of my HashMaps in the code and was facing
this problem. How can I get the current size of my JCS object?
It seems that there is no function for that. Maybe I missed something,
can someone please give me a hint.

Best regards,
Christoph

Helmholtz-Zentrum für Infektionsforschung GmbH | Inhoffenstraße 7 | 38124 Braunschweig | www.helmholtz-hzi.de

Vorsitzende des Aufsichtsrates: MinDir’in Bärbel Brumme-Bothe, Bundesministerium für Bildung und Forschung
Stellvertreter: MinDirig Heiko Gevers, Niedersächsisches Ministerium für Wissenschaft und Kultur
Geschäftsführung: Prof. Dr. Dirk Heinz; Ulf Richter, MBA
Gesellschaft mit beschränkter Haftung (GmbH)
Sitz der Gesellschaft: Braunschweig
Handelsregister: Amtsgericht Braunschweig, HRB 477

---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org


Re: Fwd: getSize of a JCS object

Posted by Christoph Gernert <ch...@helmholtz-hzi.de>.
Am 04/08/2011 09:17, schrieb Thomas Vandahl:
> On 03.08.11 12:06, Christoph Gernert wrote:
>> Hello,
>>
>> The functions of the JCS object seem to be very similar to a Java HashMap.
>> I was starting to replace some of my HashMaps in the code and was facing
>> this problem. How can I get the current size of my JCS object?
>> It seems that there is no function for that. Maybe I missed something,
>> can someone please give me a hint.
> You can use the group cache methods to achieve that.
>
> Bye, Thomas.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jcs-users-help@jakarta.apache.org
>
Thanks, that works excellent.

Christoph

Helmholtz-Zentrum für Infektionsforschung GmbH | Inhoffenstraße 7 | 38124 Braunschweig | www.helmholtz-hzi.de

Vorsitzende des Aufsichtsrates: MinDir’in Bärbel Brumme-Bothe, Bundesministerium für Bildung und Forschung
Stellvertreter: MinDirig Heiko Gevers, Niedersächsisches Ministerium für Wissenschaft und Kultur
Geschäftsführung: Prof. Dr. Dirk Heinz; Ulf Richter, MBA
Gesellschaft mit beschränkter Haftung (GmbH)
Sitz der Gesellschaft: Braunschweig
Handelsregister: Amtsgericht Braunschweig, HRB 477

---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org


Re: Fwd: getSize of a JCS object

Posted by Thomas Vandahl <tv...@apache.org>.
On 03.08.11 12:06, Christoph Gernert wrote:
> Hello,
> 
> The functions of the JCS object seem to be very similar to a Java HashMap.
> I was starting to replace some of my HashMaps in the code and was facing
> this problem. How can I get the current size of my JCS object?
> It seems that there is no function for that. Maybe I missed something,
> can someone please give me a hint.

You can use the group cache methods to achieve that.

Bye, Thomas.

---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org


Re: getSize of a JCS object

Posted by Rahul Akolkar <ra...@gmail.com>.
2011/8/3 Christoph Gernert <ch...@helmholtz-hzi.de>:
> Hello,
>
> The functions of the JCS object seem to be very similar to a Java HashMap.
> I was starting to replace some of my HashMaps in the code and was facing
> this problem. How can I get the current size of my JCS object?
> It seems that there is no function for that. Maybe I missed something,
> can someone please give me a hint.
>
<snip/>

JCS has moved to Apache Commons. You may use the shared user mailing
list of the Commons project to ask JCS related questions going
forward, see:

  http://commons.apache.org/mail-lists.html

-Rahul


> Best regards,
> Christoph
>
> Helmholtz-Zentrum für Infektionsforschung GmbH | Inhoffenstraße 7 | 38124
> Braunschweig | www.helmholtz-hzi.de
>
> Vorsitzende des Aufsichtsrates: MinDir’in Bärbel Brumme-Bothe,
> Bundesministerium für Bildung und Forschung
> Stellvertreter: MinDirig Heiko Gevers, Niedersächsisches Ministerium für
> Wissenschaft und Kultur
> Geschäftsführung: Prof. Dr. Dirk Heinz; Ulf Richter, MBA
> Gesellschaft mit beschränkter Haftung (GmbH)
> Sitz der Gesellschaft: Braunschweig
> Handelsregister: Amtsgericht Braunschweig, HRB 477
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org