|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.novell.service.file.nw.DirectorySpaceInformation
Provides support for NetWare file system directory attribute values and operations.
For the get and set methods that deal with blocks of volume data, the blocksize of a Volume now defaults to 64K when the Volume is created; however, this blocksize may be changed at create time because it is now a variable value. Previously the blocksize was set to be 4K, and was not a variable value.
This class results in a mutable object. For versitility, code block synchronization has been implemented in the various JNDI search and modify methods to provide for thread safe operation.
For multi-threaded applications, if a code segment of that application uses get methods of this class, and there is a potential of another thread randomly using corresponding set methods of this class, you should enclose the calls to the get methods of this class in a synchronized code block.
Also, if a code segment of a multi-threaded application uses set methods of this class, and there is a potential of another thread randomly using corresponding get methods of this class, you should enclose the calls to the set methods of this class in a synchronized code block.
Field Summary | |
static java.lang.String |
ATTRIBUTE_ID
Attribute ID of DirectorySpaceInformation. |
static java.lang.String |
AVAILABLEBLOCKS_FIELD
AvailableBlocks compare field. |
static java.lang.String |
AVAILABLEDIRENTRIES_FIELD
AvailableDirEntries compare field. |
static java.lang.String |
COMPARE_SYNTAX_STRING
Schema Syntax of DirectorySpaceInformation. |
static java.lang.String |
CURRENTUSE_FIELD
CurrentUse compare field. |
static java.lang.String |
MAXAVAILABLE_FIELD
MaxAvailable compare field. |
static java.lang.String |
NOTYETPURGEABLEBLOCKS_FIELD
NotYetPurgeableBlocks compare field. |
static java.lang.String |
PURGEABLEBLOCKS_FIELD
PurgeableBlocks compare field. |
static java.lang.String |
RESERVED_FIELD
Reserved compare field. |
static java.lang.String |
SCHEMA_BINDING_NAME
Schema Name of DirectorySpaceInformation. |
static java.lang.String |
SECTORSPERBLOCK_FIELD
SectorsPerBlock compare field. |
static java.lang.String |
TOTALBLOCKS_FIELD
TotalBlocks compare field. |
static java.lang.String |
TOTALDIRENTRIES_FIELD
TotalDirEntries compare field. |
static java.lang.String |
VOLNAME_FIELD
VolName compare field. |
Constructor Summary | |
DirectorySpaceInformation()
Constructs a default DirectorySpaceInformation object with no parameters. |
|
DirectorySpaceInformation(int totalBlocks,
int availableBlocks,
int purgeableBlocks,
int notYetPurgeableBlocks,
int totalDirEntries,
int availableDirEntries,
int reserved,
int sectorsPerBlock,
int maxAvailable,
int currentUse,
java.lang.String volName)
Constructs a DirectorySpaceInformation object with all possible state parameters and initializes the object to the values of these parameters. |
Method Summary | |
java.lang.Object |
clone()
Clones the current DirectorySpaceInformation object. |
void |
copy(DirectorySpaceInformation from)
Copies the CallsServiceRemote from object into this object. |
boolean |
equals(java.lang.Object obj)
Compares the input object against this object for equality. |
int |
getAvailableBlocks()
Returns the availableBlocks field of this object. |
int |
getAvailableDirEntries()
Returns the availableDirEntries field of this object. |
java.lang.String |
getCompareString()
Returns the current value of the compareString. |
int |
getCurrentUse()
Returns the currentUse field of this object. |
int |
getMaxAvailable()
Returns the maxAvailable field of this object. |
int |
getNotYetPurgeableBlocks()
Returns the notYetPurgeableBlocks field of this object. |
int |
getPurgeableBlocks()
Returns the purgeableBlocks field of this object. |
int |
getReserved()
Returns the reserved field of this object. |
com.novell.service.rfc1960.Rfc1960Parser |
getSearchStringParser()
Returns the RFC1960 search string parser for the compare string. |
int |
getSectorsPerBlock()
Returns the sectorsPerBlock field of this object. |
int |
getTotalBlocks()
Returns the totalBlocks field of this object. |
int |
getTotalDirEntries()
Gets the totalDirEntries field of this object. |
java.lang.String |
getVolName()
Returns the volNam field of this object. |
void |
setAvailableBlocks(int value)
Sets the availableBlocks field of this object. |
void |
setAvailableDirEntries(int value)
Sets the availableDirEntries field of this object. |
void |
setCompareString(java.lang.String compareString)
Sets the compare string value for the compare fields. |
void |
setCurrentUse(int value)
Sets the currentUse field of this object. |
void |
setMaxAvailable(int value)
Sets the maxAvailable field of this object. |
void |
setNotYetPurgeableBlocks(int value)
Sets the notYetPurgeableBlocks field of this object. |
void |
setPurgeableBlocks(int value)
Sets the purgeableBlocks field of this object. |
void |
setReserved(int value)
Sets the reserved field of this object. |
void |
setSectorsPerBlock(int value)
Sets the sectorsPerBlock field of this object. |
void |
setTotalBlocks(int value)
Sets the totalBlocks field of this object. |
void |
setTotalDirEntries(int value)
Sets the totalDirEntries field of this object. |
void |
setVolName(java.lang.String value)
Sets the volName field of this object. |
java.lang.String |
toString()
Returns a String representation of this object. |
Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String ATTRIBUTE_ID
(ATTRIBUTE_ID = "Directory Space Information")
public static final java.lang.String SCHEMA_BINDING_NAME
(SCHEMA_BINDING_NAME = ATTRIBUTE_ID + " Definition")
public static final java.lang.String COMPARE_SYNTAX_STRING
(COMPARE_SYNTAX_STRING = "(" + SearchStringComponent.EQUALS_STRING + "," + SearchStringComponent.PRESENT_STRING + "," + SearchStringComponent.SUBSTRING_STRING + ")")
public static final java.lang.String TOTALBLOCKS_FIELD
(TOTALBLOCKS_FIELD = "TotalBlocks")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String AVAILABLEBLOCKS_FIELD
(AVAILABLEBLOCKS_FIELD = "AvailableBlocks")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String PURGEABLEBLOCKS_FIELD
(PURGEABLEBLOCKS_FIELD = "PurgeableBlocks")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String NOTYETPURGEABLEBLOCKS_FIELD
(NOTYETPURGEABLEBLOCKS_FIELD = "NotYetPurgeableBlocks")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String TOTALDIRENTRIES_FIELD
(TOTALDIRENTRIES_FIELD = "TotalDirEntries")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String AVAILABLEDIRENTRIES_FIELD
(AVAILABLEDIRENTRIES_FIELD = "AvailableDirEntries")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String RESERVED_FIELD
(RESERVED_FIELD = "Reserved")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String SECTORSPERBLOCK_FIELD
(SECTORSPERBLOCK_FIELD = "SectorsPerBlock")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String VOLNAME_FIELD
(VOLNAME_FIELD = "VolName")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String MAXAVAILABLE_FIELD
(MAXAVAILABLE_FIELD = "MaxAvailable")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
public static final java.lang.String CURRENTUSE_FIELD
(CURRENTUSE_FIELD = "CurrentUse")
setCompareString(java.lang.String)
,
equals(java.lang.Object)
Constructor Detail |
public DirectorySpaceInformation()
public DirectorySpaceInformation(int totalBlocks, int availableBlocks, int purgeableBlocks, int notYetPurgeableBlocks, int totalDirEntries, int availableDirEntries, int reserved, int sectorsPerBlock, int maxAvailable, int currentUse, java.lang.String volName)
totalBlocks
- The totalBlocks data members value.availableBlocks
- The availableBlocks data members value.purgeableBlocks
- The purgeableBlocks data members value.notYetPurgeableBlocks
- The notYetPurgeableBlocks data members
value.totalDirEntries
- The totalDirEntries data members value.availableDirEntries
- The availableDirEntries data members value.reserved
- The reserved data members value.sectorsPerBlock
- The sectorsPerBlock data members value.maxAvailable
- The maxAvailable data members value.currentUse
- The currentUse data members value.volName
- The volName data members value.Method Detail |
public int getTotalBlocks()
TOTALBLOCKS_FIELD
public void setTotalBlocks(int value)
value
- The new totalBlocks value in blocksize.TOTALBLOCKS_FIELD
public int getAvailableBlocks()
The availableBlocks value is either the total available blocks on the Volume or the currently available amount in the directory if directory restrictions are in effect.
AVAILABLEBLOCKS_FIELD
public void setAvailableBlocks(int value)
value
- The new availableBlocks value in blocksize.getAvailableBlocks()
,
AVAILABLEBLOCKS_FIELD
public int getPurgeableBlocks()
PURGEABLEBLOCKS_FIELD
public void setPurgeableBlocks(int value)
value
- The new purgeableBlocks value in blocksize.PURGEABLEBLOCKS_FIELD
public int getNotYetPurgeableBlocks()
NOTYETPURGEABLEBLOCKS_FIELD
public void setNotYetPurgeableBlocks(int value)
value
- The new notYetPurgeableBlocks value in blocksize.NOTYETPURGEABLEBLOCKS_FIELD
public int getTotalDirEntries()
TOTALDIRENTRIES_FIELD
public void setTotalDirEntries(int value)
value
- The new totalDirEntries value.TOTALDIRENTRIES_FIELD
public int getAvailableDirEntries()
AVAILABLEDIRENTRIES_FIELD
public void setAvailableDirEntries(int value)
value
- The new availableDirEntries value.AVAILABLEDIRENTRIES_FIELD
public int getReserved()
RESERVED_FIELD
public void setReserved(int value)
value
- The new reserved value.RESERVED_FIELD
public int getSectorsPerBlock()
SECTORSPERBLOCK_FIELD
public void setSectorsPerBlock(int value)
value
- The new sectorsPerBlock value.SECTORSPERBLOCK_FIELD
public java.lang.String getVolName()
VOLNAME_FIELD
public void setVolName(java.lang.String value)
value
- The new volName value.VOLNAME_FIELD
public int getMaxAvailable()
The maxAvailable value is set to 0x7FFFFFFF if no directory restrictions are in place. If restrictions are in place, then this is the amount of restriction in 4K pieces. This value is not the same as availableBlocks; it represents the maximum amount of space assigned to a directory and not the amount of space currently available in the directory.
MAXAVAILABLE_FIELD
public void setMaxAvailable(int value)
value
- The new maxAvailable value in 4K pieces.MAXAVAILABLE_FIELD
public int getCurrentUse()
CURRENTUSE_FIELD
public void setCurrentUse(int value)
value
- The new currentUse value in 4K pieces.CURRENTUSE_FIELD
public void setCompareString(java.lang.String compareString)
The compare string uses the RFC1960 (LDAP) search string format, and is used to allow individual compares on the compare fields.
If the string passed in is not a valid RFC1960 formated string, this method will throw an IllegalArgumentException. If the compareString value is null, RFC1960 formated compares will be disabled.
The names of these fields have taken the names of their corresponding methods minus the get or set prefix. Given the following string:
"(&(Name=*printer*)(ObjectId>=2)(Rights>=128))" The equals method will return TRUE if the name contains the substring printer, the objectId is not 2, and the rights are set to be able to modify (TA_MODIFY). If the approximate operator type is used on the Rights field the various bits of the operand value are checked, and if any of them are set, equals will return TRUE. For example: "(Rights~=3) returns TRUE if either the TA_READ or TA_WRITE bits are set, regardless of what other bits might be set.
compareString
- The RFC1960 formated search string. NULL
disables this compare functionality.equals(java.lang.Object)
,
TOTALBLOCKS_FIELD
,
AVAILABLEBLOCKS_FIELD
,
PURGEABLEBLOCKS_FIELD
,
NOTYETPURGEABLEBLOCKS_FIELD
,
TOTALDIRENTRIES_FIELD
,
AVAILABLEDIRENTRIES_FIELD
,
RESERVED_FIELD
,
SECTORSPERBLOCK_FIELD
,
VOLNAME_FIELD
,
MAXAVAILABLE_FIELD
,
CURRENTUSE_FIELD
public java.lang.String getCompareString()
Trustee.setCompareString(java.lang.String)
public com.novell.service.rfc1960.Rfc1960Parser getSearchStringParser()
The Rfc1960Parser object is returned that was instantiated with the compareString last set by the setCompareString method.
public boolean equals(java.lang.Object obj)
If the input object has a RFC1960 compare string, this method will do the comparision based on the commands in the compare string. If the operationType is illegal for the data type being compared, an IllegalArmumentException will be thrown.
obj
- The object to compare.setCompareString(java.lang.String)
,
TOTALBLOCKS_FIELD
,
AVAILABLEBLOCKS_FIELD
,
PURGEABLEBLOCKS_FIELD
,
NOTYETPURGEABLEBLOCKS_FIELD
,
TOTALDIRENTRIES_FIELD
,
AVAILABLEDIRENTRIES_FIELD
,
RESERVED_FIELD
,
SECTORSPERBLOCK_FIELD
,
VOLNAME_FIELD
,
MAXAVAILABLE_FIELD
,
CURRENTUSE_FIELD
public java.lang.String toString()
The string returned is in the following format: "totalBlocks: n, availableBlocks: n, purgeableBlocks: n, notYetPurgeableBlocks: n, totalDirEntries: n, availableDirEntries: n, reserved: n, sectorsPerBlock: n, maxAvailable: n, currentUse n, volName: s, compareString: s".
public java.lang.Object clone()
Instantiates a new object of this type with all new references, but with the same values within those references.
public void copy(DirectorySpaceInformation from)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |