Results 1 to 7 of 7
  1. #1
    mtz1406 is offline Member
    Join Date
    Aug 2008
    Location
    Riyadh - Saudi Arabia
    Posts
    15
    Rep Power
    0

    Default limit disk space for my customers accounts

    I provide a web service for my customers which they are schools.the service is like web CMS for each school. all these CMS are hosted on my server.what i want to do is limit the disk space for each customer and can be increased by request.
    thank you

  2. #2
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    When the customer logs in, determine the total of their file sizes. As they add content, check that adding the new content will not exceed their limit, preferably before they upload the data to you. Be careful about where you hold the total size, since the customer could log in multiple times and upload files at the same time.
    The Java Tutorial. Read it.

  3. #3
    mtz1406 is offline Member
    Join Date
    Aug 2008
    Location
    Riyadh - Saudi Arabia
    Posts
    15
    Rep Power
    0

    Default

    Let me clarify a point. the usage size can increase by more than one way:
    uploading file through FTP account (each customer has an ftp account) or through administration panel.
    store more data into the embed database.(each customer has embed database) (post more thread => the usage size will be increased).

    so i think storing the usage size does not help when they use their ftp accounts or post more thread.

    thank you friend

  4. #4
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    If you are simply letting them FTP content to you, then you can't limit them at the time. Simply monitor their usage periodically and notify them by whatever means that they are over the limit.
    The Java Tutorial. Read it.

  5. #5
    mtz1406 is offline Member
    Join Date
    Aug 2008
    Location
    Riyadh - Saudi Arabia
    Posts
    15
    Rep Power
    0

    Default

    O.K.

    how cpanel (web hosting control panel) limit the usage size for each hosted site? may the solution is what i need.
    what about 'disk quota'?

  6. #6
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    From the control panel, go back to what I suggested originally. As far as disk quotas, you can do that (although whatever process that puts the data into the databases you mentioned will have to monitor that). However, you have to look at customer service issues. If the customer suddenly cannot save any more data because they reached a limit, how will they respond?
    The Java Tutorial. Read it.

  7. #7
    mtz1406 is offline Member
    Join Date
    Aug 2008
    Location
    Riyadh - Saudi Arabia
    Posts
    15
    Rep Power
    0

    Default

    thank you

    do you have any idea about how manage the 'disk quota' from java?

Similar Threads

  1. API to create user accounts
    By amitnme in forum Advanced Java
    Replies: 1
    Last Post: 02-05-2010, 07:08 PM
  2. Replies: 0
    Last Post: 07-05-2009, 12:31 PM
  3. Limit of String
    By javaplus in forum New To Java
    Replies: 5
    Last Post: 11-19-2007, 04:48 AM
  4. Accounts of users
    By Eric in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 06-27-2007, 04:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •