public interface Allocation extends Extensible, Browsable
Allocation
represents allocated resources in a file
system.
Modifier and Type | Method and Description |
---|---|
Agent |
getAgent()
Gets the agent of the user.
|
Id |
getAgentId()
Gets the agent
Id of the user. |
AllocationRecord |
getAllocationRecord(Type allocationRecordType)
Gets the allocation record corresponding to the given
Allocation record Type. |
long |
getAvailableFiles()
Gets the available number o files of this allocation.
|
long |
getAvailableSpace()
Gets the available space in bytes of this allocation.
|
Directory |
getDirectory()
Gets the directory responsible for these usage stats.
|
java.lang.String |
getDirectoryPath()
Gets the absolute path to the directory responsible for these usage
stats.
|
long |
getTotalFiles()
Gets the total number of files of this allocation.
|
long |
getTotalSpace()
Gets the total space in bytes of this allocation.
|
long |
getUsedFiles()
Gets the used number of files of this allocation.
|
long |
getUsedSpace()
Gets the used space in bytes of this allocation.
|
boolean |
isAssignedToUser()
Tests if this allocation is assigned to a specific user.
|
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
java.lang.String getDirectoryPath()
mandatory
- This method must be implemented. Directory getDirectory()
mandatory
- This method must be implemented. boolean isAssignedToUser()
true
if this allocation is assigned to a
specific user, false
if this allocation applied
to all usersmandatory
- This method must be implemented. Id getAgentId()
Id
of the user. Id
IllegalStateException
- isAssignedToUser()
is false
mandatory
- This method must be implemented. Agent getAgent() throws OperationFailedException
IllegalStateException
- isAssignedToUser()
is false
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. long getTotalSpace()
mandatory
- This method must be implemented. long getUsedSpace()
mandatory
- This method must be implemented. long getAvailableSpace()
mandatory
- This method must be implemented. long getTotalFiles()
mandatory
- This method must be implemented. long getUsedFiles()
mandatory
- This method must be implemented. long getAvailableFiles()
mandatory
- This method must be implemented. AllocationRecord getAllocationRecord(Type allocationRecordType) throws OperationFailedException
Allocation
record Type.
This method is used to
retrieve an object implementing the requested record. The
allocationRecordType
may be the Type
returned
in getRecordTypes()
or any of its parents in a
Type
hierarchy where
hasRecordType(allocationRecordType)
is true
.allocationRecordType
- the allocation record typeNullArgumentException
- allocationRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(allocationRecordType)
is false
mandatory
- This method must be implemented.