Interface Allocation
- All Superinterfaces:
Browsable, Extensible
Allocation represents allocated resources in a file system.
-
Method Summary
Modifier and TypeMethodDescriptiongetAgent()Gets the agent of the user.Gets the agentIdof the user.getAllocationRecord(Type allocationRecordType) Gets the allocation record corresponding to the givenAllocationrecordType.longGets the available number o files of this allocation.longGets the available space in bytes of this allocation.Gets the directory responsible for these usage stats.Gets the absolute path to the directory responsible for these usage stats.longGets the total number of files of this allocation.longGets the total space in bytes of this allocation.longGets the used number of files of this allocation.longGets the used space in bytes of this allocation.booleanTests if this allocation is assigned to a specific user.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.
-
Method Details
-
getDirectoryPath
String getDirectoryPath()Gets the absolute path to the directory responsible for these usage stats. The return may be a partition or volume containing the requested directory.- Returns:
- path name
- Compliance:
mandatory- This method must be implemented.
-
getDirectory
Directory getDirectory()Gets the directory responsible for these usage stats. The return may be a partition, quota controlled directory, or volume containing the requested directory.- Returns:
- directory
- Compliance:
mandatory- This method must be implemented.
-
isAssignedToUser
boolean isAssignedToUser()Tests if this allocation is assigned to a specific user.- Returns:
trueif this allocation is assigned to a specific user,falseif this allocation applied to all users- Compliance:
mandatory- This method must be implemented.
-
getAgentId
Id getAgentId()Gets the agentIdof the user.- Returns:
- the agent
Id - Throws:
IllegalStateException-isAssignedToUser()isfalse- Compliance:
mandatory- This method must be implemented.
-
getAgent
Gets the agent of the user.- Returns:
- the agent
- Throws:
IllegalStateException-isAssignedToUser()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getTotalSpace
long getTotalSpace()Gets the total space in bytes of this allocation.- Returns:
- number of bytes in this allocation
- Compliance:
mandatory- This method must be implemented.
-
getUsedSpace
long getUsedSpace()Gets the used space in bytes of this allocation.- Returns:
- number of used bytes in this allocation
- Compliance:
mandatory- This method must be implemented.
-
getAvailableSpace
long getAvailableSpace()Gets the available space in bytes of this allocation.- Returns:
- number of available bytes in this allocation
- Compliance:
mandatory- This method must be implemented.
-
getTotalFiles
long getTotalFiles()Gets the total number of files of this allocation.- Returns:
- number of files in this allocation
- Compliance:
mandatory- This method must be implemented.
-
getUsedFiles
long getUsedFiles()Gets the used number of files of this allocation.- Returns:
- number of used files in this allocation
- Compliance:
mandatory- This method must be implemented.
-
getAvailableFiles
long getAvailableFiles()Gets the available number o files of this allocation.- Returns:
- number of available files in this allocation
- Compliance:
mandatory- This method must be implemented.
-
getAllocationRecord
Gets the allocation record corresponding to the givenAllocationrecordType. This method is used to retrieve an object implementing the requested record. TheallocationRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(allocationRecordType)istrue.- Parameters:
allocationRecordType- the allocation record type- Returns:
- the allocation record
- Throws:
NullArgumentException-allocationRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(allocationRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-