<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Monitor Spaces disk size in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/monitor-spaces-disk-size/m-p/217764#M170894</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was looking through my code and found that the following might also work to retrieve usage information:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Long usage = (Long) nodeService.getProperty(nodeRef, ContentModel.PROP_SIZE_CURRENT);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;In my case, &lt;/SPAN&gt;&lt;EM&gt;nodeRef&lt;/EM&gt;&lt;SPAN&gt; was a Person noderef – not a space or content noderef.&amp;nbsp; But again, it looks like it might work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Darryl&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jun 2010 17:38:02 GMT</pubDate>
    <dc:creator>darryl_staflund</dc:creator>
    <dc:date>2010-06-30T17:38:02Z</dc:date>
    <item>
      <title>Monitor Spaces disk size</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/monitor-spaces-disk-size/m-p/217761#M170891</link>
      <description>Hi allWe are using now the new Alfresco V3.3. We have created four spaces defined to store four types of documentation.Also we would like to monitor every night the amount of MB of each of those spaces. Is there any way we can calculate the space of each space folder so we can send it by mail? Our i</description>
      <pubDate>Tue, 29 Jun 2010 14:42:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/monitor-spaces-disk-size/m-p/217761#M170891</guid>
      <dc:creator>jlabuelo</dc:creator>
      <dc:date>2010-06-29T14:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor Spaces disk size</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/monitor-spaces-disk-size/m-p/217762#M170892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't actually tried this on Spaces, but in theory it sounds good &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; If you take a look at the following service:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;org.alfresco.service.cmr.usage.UsageService&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;you will see the following method defined:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;public long getTotalDeltaSize(NodeRef usageNodeRef);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;If you pass in a node reference to the space in question, it should return back its size (in bytes, I believe.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know this works for documents as I have used it to generate reports, but I am not sure about spaces.&amp;nbsp; If it doesn't work for spaces, you can definitely iterate over the space's children and sum up their deltas to obtain a consumption estimate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Darryl&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 19:49:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/monitor-spaces-disk-size/m-p/217762#M170892</guid>
      <dc:creator>darryl_staflund</dc:creator>
      <dc:date>2010-06-29T19:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor Spaces disk size</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/monitor-spaces-disk-size/m-p/217763#M170893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Darry&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot!! Will give it a try and let you know how it goes&amp;nbsp; &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jun 2010 07:03:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/monitor-spaces-disk-size/m-p/217763#M170893</guid>
      <dc:creator>jlabuelo</dc:creator>
      <dc:date>2010-06-30T07:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor Spaces disk size</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/monitor-spaces-disk-size/m-p/217764#M170894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was looking through my code and found that the following might also work to retrieve usage information:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Long usage = (Long) nodeService.getProperty(nodeRef, ContentModel.PROP_SIZE_CURRENT);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;In my case, &lt;/SPAN&gt;&lt;EM&gt;nodeRef&lt;/EM&gt;&lt;SPAN&gt; was a Person noderef – not a space or content noderef.&amp;nbsp; But again, it looks like it might work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Darryl&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jun 2010 17:38:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/monitor-spaces-disk-size/m-p/217764#M170894</guid>
      <dc:creator>darryl_staflund</dc:creator>
      <dc:date>2010-06-30T17:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor Spaces disk size</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/monitor-spaces-disk-size/m-p/217765#M170895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was looking throw that code, and the result of &lt;/SPAN&gt;&lt;EM&gt;usage&lt;/EM&gt;&lt;SPAN&gt;, with Space as noderef or Document as noderef, is null. I think these classes are used for Person noderef.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To get the content size, you can try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContentData contentRef =&amp;nbsp; (ContentData )nodeService.getProperty(spaceNodeRef, ContentModel.PROP_CONTENT);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; long size = contentRef.getSize();&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;But if you want to know the total size of a space (files and sub-spaces), you must sum the size of all files (in that space and it subspaces).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my knowledge, if someone knows a good solution to get the size of spaces, please share with us.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cboita&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 16:32:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/monitor-spaces-disk-size/m-p/217765#M170895</guid>
      <dc:creator>cboita</dc:creator>
      <dc:date>2010-07-08T16:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor Spaces disk size</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/monitor-spaces-disk-size/m-p/217766#M170896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;check this topic: &lt;/SPAN&gt;&lt;A href="http://forums.alfresco.com/en/viewtopic.php?f=12&amp;amp;t=25627&amp;amp;start=0" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/en/viewtopic.php?f=12&amp;amp;t=25627&amp;amp;start=0&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 11:48:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/monitor-spaces-disk-size/m-p/217766#M170896</guid>
      <dc:creator>biersen</dc:creator>
      <dc:date>2010-07-13T11:48:33Z</dc:date>
    </item>
  </channel>
</rss>

