UNICORE Resource Broker NJS Plugin
1.5α1

org.eurogrid.broker.server
Class DiskQuota

java.lang.Object
  |
  +--org.eurogrid.broker.server.DiskQuota
All Implemented Interfaces:
Serializable

public class DiskQuota
extends Object
implements Serializable

Quota information about one location in a directory hierarchy.

Author:
Donal K. Fellows
See Also:
LocalResourceChecker, Serialized Form

Field Summary
 boolean filesDefined
          Has a quota been set on file numbers?
 int filesMax
          What is the maximum number of files that may be created (in this location)?
 int filesUsed
          How many files have been created (in this location)?
 String location
          Where is this quota referring to?
 boolean spaceDefined
          Has a quota been set on disk space?
 long spaceMax
          What is the maximum amount of space (in this location) that may be contained in files?
 int spaceUnits
          How many bytes do each of the space units refer to?
 long spaceUsed
          How much space is actually being used by files (in this location)?
 
Constructor Summary
DiskQuota()
           
 
Method Summary
 boolean equals(Object o)
          Equality operation on DiskQuota objects.
 int hashCode()
          Hash function for DiskQuota objects.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filesDefined

public boolean filesDefined
Has a quota been set on file numbers? Is there any meaning to the other files* fields?


filesMax

public int filesMax
What is the maximum number of files that may be created (in this location)?


filesUsed

public int filesUsed
How many files have been created (in this location)?


location

public String location
Where is this quota referring to?


spaceDefined

public boolean spaceDefined
Has a quota been set on disk space? Is there any meaning to the other space* fields?


spaceMax

public long spaceMax
What is the maximum amount of space (in this location) that may be contained in files?


spaceUnits

public int spaceUnits
How many bytes do each of the space units refer to?


spaceUsed

public long spaceUsed
How much space is actually being used by files (in this location)?

Constructor Detail

DiskQuota

public DiskQuota()
Method Detail

equals

public boolean equals(Object o)
Equality operation on DiskQuota objects. Two disk quotas are equal if they have the same location (i.e. location acts as a primary key, to use database terminology); the other fields are just "payload".

Overrides:
equals in class Object

hashCode

public int hashCode()
Hash function for DiskQuota objects. Two disk quotas are guaranteed to have the same hash code if they are equal; no other guarantees are made.

Overrides:
hashCode in class Object

UNICORE Resource Broker NJS Plugin
1.5α1

Submit a bug or feature
Copyright © 2002-2004 University of Manchester, U.K. See license.terms for details.