OpenAFS
OpenAFS distributed network file system
AFSPropertyManager Class Reference

AFS Manage Class This class manage the openafs param for celldbserv, cache param, group creation, get and release token More...

#import <AFSPropertyManager.h>

Public Member Functions

(id) - init
 (brief description) (comprehensive description)
(id) - initWithAfsPath:
 initWithAfsPath (description) (description)
(void) - dealloc
 (brief description) (comprehensive description)
(NSMutableArray *) - getCellList
 (brief description) (comprehensive description)
(NSArray *) - getAllCellsName
 (brief description) (comprehensive description)
(NSArray *) - getUserDefaultForTokenCells
 (brief description) (comprehensive description)
(NSArray *) - getDefaultForTokenCellsName
 (brief description) (comprehensive description)
(NSString *) - getDefaultCellName
 (brief description) (comprehensive description)
(void) - setDefaultCellByName:
 setDefaultCellByName set the cell named "name" to be se user default first clean the last one selected as default and then set the cell named "name" as default user cell
(void) - setCellName:
 (brief description) (comprehensive description)
(void) - setPath:
 setPath Imposta Path Imposta il path dove e' installato afs, in modo da leggere e scrivere le configurazioni
(NSString *) - path
 path Return the afs base Return the Afs base installation path
(int) - statCacheEntry
 statCacheEntry get the afs number of state cache entry
(void) - setStatCacheEntry:
 setStatCacheEntry Set the afs number of state cache entry
(int) - dCacheDim
 dCacheDim return the dCacheDim param value for cache manager
(void) - setDCacheDim:
 setDCacheDim set the setDCacheDim value for cache manager param <#(description)#>
(int) - cacheDimension
 cacheDimension return the max size of the cache
(void) - setCacheDimension:
 setCacheDimension Set the max cache dimension
(int) - daemonNumber
 daemonNumber Return the number of daemon for the cache manager
(void) - setDaemonNumber:
 setDaemonNumber Set the daemon numbero for the cache manager
(NSString *) - afsRootMountPoint
 afsRootMountPoint Return the path where afs root volume will be mounted
(void) - setAfsRootMountPoint:
 setAfsRootMountPoint Set the AFS mount point
(int) - nVolEntry
 nVolEntry Return the nVolEntry for cache manager
(void) - setNVolEntry:
 setNVolEntry Set the nVolEntry parameter for cache manager
(bool) - dynRoot
 dynRoot Return the DynRoot parametr for cache manager
(void) - setDynRoot:
 setDynRoot Set the DynRoot flag value for cache manager
(bool) - afsDB
 afsDB Get the afsdb flag value for cache manager
(void) - setAfsDB:
 setAfsDB Set the flag value for afsdb cache manager
(bool) - verbose
 verbose
(void) - setVerbose:
 setVerbose
(int) - readCacheInfo:
 readCacheInfo Read the cache info The cache info is read from the file pointed by filePath param
(int) - writeCacheInfo:
 writeCacheInfo Write the cache info down the file
(void) - readAfsdOption:
 readAfsdOption Read the afs option Read the afs option checking firt the afs version so it can read the old afsd.option or afs.conf file.
(int) - readOldAfsdOption:
 readOldAfsdOption Read the afsd.option file Read the old afsd.option style afsd option file.
(int) - readAFSDParamLineContent:
 readAFSDParamLineContent Try to decode one line of afsd.option or afs.conf
(int) - readNewAfsdOption:
 readNewAfsdOption Read the new afs.conf file format Scann every line f the afs.conf file ad for each one call the readAFSDParamLineContent with it's content
(int) - writeAfsdOption:
 writeAfsdOption <#(description)#> <#(description)#>
(int) - writeOldAfsdOption:
 writeOldAfsdOption Write the cache manager parameter to file First chech the version of afs installed then choice to save old o new file version(afsd.option or afs.conf)
(int) - writeNewAfsdOption:
 writeNewAfsdOption Write the cache parameter to a file with the new format
(NSString *) - getAfsVersion
 getAfsVersion Return the string representing the afs version
(int) - getAfsMajorVersionVersion
 getAfsMajorVersionVersion Return the major version of afs Major.x.x
(int) - getAfsMinorVersionVersion
 getAfsMinorVersionVersion Return the major version of afs x.Minor.x
(int) - getAfsPatchVersionVersion
 getAfsPatchVersionVersion Return the major version of afs x.x.Patch
(void) - clearConfiguration
 clearConfiguration Clear all structure or array that contain value for afs client setting(cells cache param etch)
(void) - exceptionOnInvalidPath
 exceptionOnInvalidPath Check the validity of afs path If the installationPath variable don't point to a valid path, will be fired an NSException
(void) - loadConfiguration
 loadConfiguration load the all afs configuration (ThisCell & CellServDB & cache parameter)
(void) - readCellInfo:
 readCellInfo Read the Main Cell Name
(void) - readCellDB:
 readCellDB Read the CellServDB File Read the file of all cellservbd ad make the NSArray containing a DBCellElement for aech cell found
(NSArray *) - readTheseCell:
 readTheseCell Read the "These Cell" Read the "These Cell" file that contains all the cell from which the user want to get the token
(void) - shutdown
 shutdown Stop The AFS
(void) - startup
(void) - scanIpForCell:allIP:
(void) - backupConfigurationFiles
(void) - backupFile:
(void) - saveConfigurationFiles:
(void) - saveCacheConfigurationFiles:
(void) - installConfigurationFile:destPath:
(NSArray *) - getTokenList
(BOOL) - checkAfsStatus
(BOOL) - checkAfsStatusForStartup
(void) - klog:uPwd:cell:
(void) - aklog:noKerberosCall:
(void) - getTokens:usr:pwd:
(void) - unlog:
(NSString *) - makeChaceParamString
(BOOL) - useAfsdConfConfigFile

Protected Attributes

NSString * installationPath
NSString * cellName
NSMutableArray * cellList
NSArray * userDefaultCellArray
NSString * afsRootMountPoint
int statCacheEntry
int dCacheDim
int cacheDimension
int daemonNumber
int nVolEntry
bool dynRoot
bool afsDB
bool verbose
FileUtilfutil
BOOL useAfsdConfVersion

Detailed Description

AFS Manage Class This class manage the openafs param for celldbserv, cache param, group creation, get and release token


Member Function Documentation

- (bool) afsDB

afsDB Get the afsdb flag value for cache manager

Returns:
Return the value of the flag
- (NSString*) afsRootMountPoint

afsRootMountPoint Return the path where afs root volume will be mounted

Returns:
AFS mount point
- (int) cacheDimension

cacheDimension return the max size of the cache

Returns:
Cache dimension
- (int) daemonNumber

daemonNumber Return the number of daemon for the cache manager

Returns:
Number of daemon
- (int) dCacheDim

dCacheDim return the dCacheDim param value for cache manager

Returns:
dCacheDim value
- (bool) dynRoot

dynRoot Return the DynRoot parametr for cache manager

Returns:
dynRoot parameter value
- (int) getAfsMajorVersionVersion

getAfsMajorVersionVersion Return the major version of afs Major.x.x

Returns:
- (int) getAfsMinorVersionVersion

getAfsMinorVersionVersion Return the major version of afs x.Minor.x

Returns:
- (int) getAfsPatchVersionVersion

getAfsPatchVersionVersion Return the major version of afs x.x.Patch

Returns:
- (NSString *) getAfsVersion

getAfsVersion Return the string representing the afs version

Returns:
The Enteir string returned from the call of fs -version
- (id) initWithAfsPath: (NSString*)  path

initWithAfsPath (description) (description)

Parameters:
pathPath di installazione afs
Returns:
Istanza della classe di gestione delle propieta' afs
- (int) nVolEntry

nVolEntry Return the nVolEntry for cache manager

Returns:
value for nVolEntry cache parameter
- (void) readAfsdOption: (NSString*)  filePath

readAfsdOption Read the afs option Read the afs option checking firt the afs version so it can read the old afsd.option or afs.conf file.

If any error accour an NSException wil be trown

Parameters:
filePathfile where the parameter are store for default afsd.option or afs.conf
- (int) readAFSDParamLineContent: (NSString*)  paramLine

readAFSDParamLineContent Try to decode one line of afsd.option or afs.conf

Parameters:
paramLineone line of file afsd.option(the only one that is present) os afs.conf
- (int) readCacheInfo: (NSString*)  filePath

readCacheInfo Read the cache info The cache info is read from the file pointed by filePath param

Parameters:
filePathfile location for the CacheInfo
- (int) readNewAfsdOption: (NSString*)  filePath

readNewAfsdOption Read the new afs.conf file format Scann every line f the afs.conf file ad for each one call the readAFSDParamLineContent with it's content

Parameters:
filePathpath of the new file with afs.conf file format
- (int) readOldAfsdOption: (NSString*)  filePath

readOldAfsdOption Read the afsd.option file Read the old afsd.option style afsd option file.

If any error accour an NSException wil be trown22

Parameters:
filePathfile path to afsd.option like file
Returns:
<#(description)#>
- (NSArray *) readTheseCell: (NSString*)  configFile

readTheseCell Read the "These Cell" Read the "These Cell" file that contains all the cell from which the user want to get the token

Parameters:
configFileTheseCell file path
Returns:
NSAray with the cells name
- (void) setAfsDB: (bool)  flag

setAfsDB Set the flag value for afsdb cache manager

Parameters:
flagAfsDB state (enable/disable)
- (void) setAfsRootMountPoint: (NSString*)  mountPoint

setAfsRootMountPoint Set the AFS mount point

Parameters:
mountPointAFS mount point
- (void) setCacheDimension: (int)  cacheDim

setCacheDimension Set the max cache dimension

Parameters:
cacheDimMAx Chace dimension
- (void) setDaemonNumber: (int)  dNumber

setDaemonNumber Set the daemon numbero for the cache manager

Parameters:
dNumbernumber of daemon
- (void) setDCacheDim: (int)  dcacheDim

setDCacheDim set the setDCacheDim value for cache manager param <#(description)#>

Parameters:
dcacheDimcache param value
- (void) setDynRoot: (bool)  flag

setDynRoot Set the DynRoot flag value for cache manager

Parameters:
flagdynRoot state (enable/disable)
- (void) setNVolEntry: (int)  entry

setNVolEntry Set the nVolEntry parameter for cache manager

Parameters:
entryvalue for nVolEntry cache manager parameter
- (void) setStatCacheEntry: (int)  statEntry

setStatCacheEntry Set the afs number of state cache entry

Returns:
Number of stat cache entry
- (int) statCacheEntry

statCacheEntry get the afs number of state cache entry

Returns:
Number of stat cache entry
- (int) writeAfsdOption: (NSString*)  filePath

writeAfsdOption <#(description)#> <#(description)#>

Parameters:
<(name)(description)#>
Returns:
<#(description)#>
- (int) writeCacheInfo: (NSString*)  filePath

writeCacheInfo Write the cache info down the file

Parameters:
filePathwhere to write the CacheInfo
Returns:
return the execution error
- (int) writeNewAfsdOption: (NSString*)  filePath

writeNewAfsdOption Write the cache parameter to a file with the new format

Parameters:
filePathfile path where write into
- (int) writeOldAfsdOption: (NSString*)  filePath

writeOldAfsdOption Write the cache manager parameter to file First chech the version of afs installed then choice to save old o new file version(afsd.option or afs.conf)

Parameters:
filePathfile path for file to write into
Returns:
<#(description)#>

The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables