Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #3510 (assigned)

Opened 13 years ago

Last modified 13 years ago

IRepository adjustments — at Version 2

Reported by: cxallan Owned by: cxallan
Priority: critical Milestone: OMERO-Beta4.2.1
Component: Services Version: n.a.
Keywords: n.a. Cc: jamoore, jburel
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: 2010-11-25 (20)

Description (last modified by jburel)

  • Removal / deprecation of disk space usage and free functionality that loops through all files in disk
  • Addition of new methods for retrieving actual size:
Map<Long, Long> getUserPixelsOnDiskUsage(Parameters p);

// If nothing return empty map
//
// p = omero.sys.ParametersI()
// p.page(offset, PAGE_SIZE)
// p.exp(userId) // mapping to p.details.owner.id comparison
// p.grp(groupId) // mapping to ctx['omero.group']
//
// p.grp() maps to -1 when the user is an administrator and no argument is passed
// p.exp() is not used if it is not provided
//
// Basic code that is being affected by Parameters is:
//
// Map<String, String> ctx = new HashMap<String, String>();
// ctx.put("omero.group", p.grp());
// p.grp(null);
// iQuery.findAllByQuery(
//     "select p from Pixels as p " +
//     "where p.details.owner.id = :experimenter" +  // optional
//     "order by p.pid", p, ctx);
//

Map<Long, Long> getPixelsOnDiskUsage(Set<Long> pixelsIds);

Requirement

It will be good to be able to display graphs for the following:

  • disk space used by a given user: Pass the user identifier, return the usage
  • disk space used by a given group: pass the group id, return a map: key=userID, value: usage
  • disk space for groups: return a map key=groupID value=usage (no breakdown per user this time)
  • disk space used by top user: pass the number of top users e.g. 5, 10 etc

Change History (2)

comment:1 Changed 13 years ago by cxallan

  • Owner set to cxallan
  • Status changed from new to assigned

comment:2 Changed 13 years ago by jburel

  • Description modified (diff)
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.67028 sec.)

We're Hiring!