Java AFS API v1.4

Uses of Class
org.openafs.jafs.AFSException

Uses of AFSException in org.openafs.jafs
 

Methods in org.openafs.jafs that throw AFSException
 void Key.refresh()
          Refreshes the properties of this Key object instance with values from the AFS key it represents.
 void Key.create(String keyString)
          Creates a key with this Key's version number at the server, using the specified String for the key.
 void Key.delete()
          Removes the key with this Key's version number from the server.
 String Key.getEncryptionKey()
          Returns the encrypted key as a string in octal form.
 long Key.getCheckSum()
          Returns the check sum of this key.
 GregorianCalendar Key.getLastModDate()
          Returns the last modification date of this key.
 void Process.refresh()
          Refreshes the properties of this Process object instance with values from the AFS process it represents.
 void Process.createSimple(String executionPath)
          Creates this process as a simple process on the server.
 void Process.createFS(String executionPath)
          Creates this process as a file server process on the server.
 void Process.createCron(String executionPath, String cronTime)
          Creates this process as a cron process on the server.
 void Process.delete()
          Removes this process from the bos server
 void Process.stop()
          Stops this process.
 void Process.start()
          Starts this process
 void Process.restart()
          Restarts this process
 int Process.getType()
          Returns the process type.
 int Process.getGoal()
          Returns the process goal.
 int Process.getState()
          Returns the process execution state.
 long Process.getStartTime()
          Returns the most recent start time of this process.
 GregorianCalendar Process.getStartTimeDate()
          Returns the most recent start time of this process.
 long Process.getNumberOfStarts()
          Returns the number of starts of the process.
 long Process.getExitTime()
          Returns the most recent exit time of this process.
 GregorianCalendar Process.getExitTimeDate()
          Returns the most recent exit time of this process.
 long Process.getExitErrorTime()
          Returns the most recent time this process exited with an error.
 GregorianCalendar Process.getExitErrorTimeDate()
          Returns the most recent time this process exited with an error.
 long Process.getErrorCode()
          Returns the error code of the process.
 long Process.getErrorSignal()
          Returns the error signal of the process.
 boolean Process.getStateOk()
          Returns whether or not the state of the process is ok.
 boolean Process.getStateTooManyErrors()
          Returns whether or not the state of the process indicates too many errors.
 boolean Process.getStateBadFileAccess()
          Returns whether or not the state of the process indicates bad file access.
 void Volume.refresh()
          Refreshes the properties of this Volume object instance with values from the AFS volume it represents.
 void Volume.create(int quota)
          Creates a new volume on the server and partition given upon construction.
 Volume Volume.createBackup()
          Creates a backup volume for this volume.
 Volume Volume.createReadOnly(Partition sitePartition)
          Creates a readonly site for this volume on the specified server and partition.
 void Volume.delete()
          Deletes the volume from the cell.
 void Volume.release()
          Releases this volume, which updates the read-only copies of it.
 void Volume.release(boolean forceComplete)
          Releases this volume, which updates the read-only copies of it.
 void Volume.dump(String fileName, GregorianCalendar dumpSince)
          Dumps this volume to a file.
 void Volume.dump(String fileName)
          Dumps this volume to a file.
 void Volume.restore(String fileName, boolean incremental)
          Restores a file to this volume.
 void Volume.restore(String fileName, boolean incremental, int id)
          Restores a file to this volume.
 void Volume.mount()
          Mounts this volume, bringing it online and making it accessible.
 void Volume.unmount()
          Unmounts this volume, bringing it offline and making it inaccessible.
 void Volume.lock()
          Locks the VLDB enrty for this volume
 void Volume.unlock()
          Unlocks the VLDB entry for this volume
 void Volume.moveTo(Partition newPartition)
          Moves this volume to the specified partition (which indirectly specifies a new server, as well).
 void Volume.rename(String newName)
          Renames this volume.
 void Volume.salvage()
          Salvages (restores consistency to) this volume.
 void Volume.createMountPoint(String directory)
          Creates a read-write mount point for this volume.
 void Volume.createMountPoint(String directory, boolean readWrite)
          Creates a mount point for this volume.
 int Volume.getID()
          Returns the id of this volume.
 int Volume.getReadWriteID()
          Returns the read-write ID of this volume
 int Volume.getReadOnlyID()
          Returns the read-only ID of this volume
 int Volume.getBackupID()
          Returns the backup ID of this volume
 GregorianCalendar Volume.getCreationDate()
          Returns the date the volume was created
 GregorianCalendar Volume.getLastUpdateDate()
          Returns the date the volume was last updated.
 GregorianCalendar Volume.getCopyCreationDate()
          Returns the date the volume was copied.
 int Volume.getAccessesSinceMidnight()
          Returns the number of accesses since midnight.
 int Volume.getFileCount()
          Returns file count.
 int Volume.getCurrentSize()
          Returns current volume size in K.
 int Volume.getTotalFreeSpace()
          Returns the difference between quota and current volume size (in K).
 int Volume.getQuota()
          Returns this volume's quota, expressed in kilobyte blocks (1024 kilobyte blocks equal one megabyte).
 boolean Volume.isQuotaUnlimited()
          Tests whether this volume's quota is configured as unlimited.
 int Volume.getStatus()
          Returns volume status.
 int Volume.getDisposition()
          Returns volume disposition.
 int Volume.getType()
          Returns volume type.
 void Volume.setQuota(int quota)
          Sets quota of volume, 0 denotes an unlimited quota.
 void Partition.refresh()
          Refreshes the properties of this Partition object instance with values from the AFS partition it represents.
 void Partition.syncPartition()
          Syncs this partition to the VLDB.
 void Partition.syncVLDB()
          Syncs the VLDB to this partition.
 void Partition.salvage()
          Salvages (restores consistency to) this partition.
 int Partition.getVolumeCount()
          Returns the number of volumes contained in this partition.
 Volume Partition.getVolume(String name)
          Retrieves the Volume object (which is an abstract representation of an actual AFS volume of this partition) designated by name (i.e.
 Volume[] Partition.getVolumes()
          Retrieves an array containing all of the Volume objects associated with this Partition, each of which is an abstract representation of an actual AFS volume of the AFS partition.
 Volume[] Partition.getVolumes(int startIndex, int length)
          Returns an array containing a subset of the Volume objects associated with this Partition, each of which is an abstract representation of an actual AFS volume of the AFS partition.
 String[] Partition.getVolumeNames()
          Retrieves an array containing all of the names of volumes associated with this Partition.
 String[] Partition.getVolumeNames(int startIndex, int length)
          Returns an array containing a subset of the names of volumes associated with this Partition.
 int Partition.getID()
          Returns the id of this partition (i.e.
 String Partition.getDeviceName()
          Returns the device name of this partition (i.e.
 int Partition.getLockFileDescriptor()
          Returns the lock file descriptor of this partition
 int Partition.getTotalSpace()
          Returns the total space on this partition.
 int Partition.getTotalFreeSpace()
          Returns the total free space on this partition.
 int Partition.getUsedSpace()
          Returns the total used space on this partition.
 int Partition.getTotalQuota()
          Returns the total combined quota of all volumes on this partition, unless a volume has configured an unlimited quota at which case an AFSException is thrown.
 int Partition.getTotalQuota(boolean ignoreUnlimitedQuotas)
          Returns the total combined quota of all volumes on this partition, ignoring volumes with unlimited quotas, if ignoreUnlimitedQuotas is true; otherwise an AFSException is thrown if a volume has an unlimited quota.
 boolean Partition.hasVolumeWithUnlimitedQuota()
          Tests whether this partition contains a volume that has an unlimited quota configured.
 void Server.refresh()
          Refreshes the properties of this Server object instance with values from the AFS server it represents.
 void Server.addAdmin(User admin)
          Add a bos admin to the UserList file of this server, in order to given the AFS user represented by admin full bos administrative privileges on this server.
 void Server.removeAdmin(User admin)
          Remove a bos admin from the UserList file of this server, in order to take away from the AFS user represented by admin bos administrative privileges on this machine.
 void Server.syncServer()
          Syncs this server to the VLDB.
 void Server.syncVLDB()
          Syncs the VLDB to this server.
 void Server.salvage()
          Salvages (restores consistency to) this server.
 void Server.startAllProcesses()
          Starts up all bos processes on this server.
 void Server.stopAllProcesses()
          Stops all bos processes on this server.
 void Server.restartAllProcesses()
          Restarts all bos processes on this server.
 void Server.restartBosServer()
          Restarts bos server and all bos processes on this server.
 String Server.getLog(String logLocation)
          Gets the contents of a log file, in one large String.
 void Server.close()
          Unauthenticates all server-related tokens that have been obtained by this Server object, and shuts this server object down.
 int Server.getAdminCount()
          Returns the number of BOS administrators assigned to this server.
 User[] Server.getAdmins()
          Retrieves an array containing all of the admin User objects associated with this Server, each of which are an abstract representation of an actual bos administrator of the AFS server.
 String[] Server.getAdminNames()
          Retrieves an array containing all of the names of bos admins associated with this Server.
 int Server.getPartitionCount()
          Returns the number of partitions on this server.
 Partition Server.getPartition(String name)
          Retrieves the Partition object (which is an abstract representation of an actual AFS partition of this server) designated by name (i.e.
 Partition[] Server.getPartitions()
          Retrieves an array containing all of the Partition objects associated with this Server, each of which are an abstract representation of an actual AFS partition of the AFS server.
 String[] Server.getPartitionNames()
          Retrieves an array containing all of the names of partitions associated with this Server (i.e.
 Key Server.getKey(int keyVersion)
          Retrieves the Key object (which is an abstract representation of an actual AFS partition of this server) designated by nkeyVersion.
 int Server.getKeyCount()
          Returns the number of keys on this server.
 Key[] Server.getKeys()
          Retrieves an array containing all of the Key objects associated with this Server, each of which are an abstract representation of an actual AFS key of the AFS server.
 Process Server.getProcess(String name)
          Retrieves the Process object (which is an abstract representation of an actual AFS process of this server) designated by name (i.e.
 int Server.getProcessCount()
          Returns the number of processes hosted by this server.
 Process[] Server.getProcesses()
          Retrieves an array containing all of the Process objects associated with this Server, each of which are an abstract representation of an actual AFS process of the AFS server.
 String[] Server.getProcessNames()
          Retrieves an array containing all of the names of processes associated with this Server (i.e.
 boolean Server.isDatabase()
          Returns whether or not this server is a database machine, meaning it runs processes such as the "kaserver" and "vlserver", and participates in elections.
 boolean Server.isFileServer()
          Returns whether or not this server is a file server machine, meaning it runs the "fs" process and stores AFS volumes.
 boolean Server.isBadDatabase()
          Returns whether or not this server is a database machine AND either it isn't in reality (e.g. it's incorrectly configured) or it's currently down.
 boolean Server.isBadFileServer()
          Returns whether this machine thinks it's a file server AND either it isn't in reality (e.g. it's incorrectly configured) or it's currently down.
 String[] Server.getIPAddresses()
          Returns this server's IP address as a String.
 Server.ExecutableTime Server.getGeneralRestartTime()
          Returns the BOS Server's general restart time in the form of an ExecutableTime object.
 Server.ExecutableTime Server.getBinaryRestartTime()
          Returns the BOS Server's binary restart time in the form of an ExecutableTime object.
 int Server.getTotalSpace()
          Returns the total space on this server (a sum of the space of all the partitions associated with this server).
 int Server.getTotalFreeSpace()
          Returns the total free space on this server (a sum of the free space of all the partitions associated with this server).
 int Server.getTotalUsedSpace()
          Returns the total used space on this server (a sum of the used space of all the partitions associated with this server).
 void Server.setGeneralRestartTime(Server.ExecutableTime executableTime)
          Sets the BOS general restart time.
 void Server.setBinaryRestartTime(Server.ExecutableTime executableTime)
          Sets the BOS binary restart time.
 void User.create(String password)
          Creates the kas and pts entries for a new user in this cell.
 void User.create(String password, int uid)
          Creates the kas and pts entries for a new user in this cell.
 void User.delete()
          Deletes the pts and kas entries for a user in this cell.
 void User.unlock()
          Unlocks the given user if they were locked out of the cell.
 void User.flushInfo()
          Flushes the current information of this User object to disk.
 void User.rename(String newName)
          Change the name of this user.
 void User.refresh()
          Refreshes the properties of this User object instance with values from the AFS user it represents.
 boolean User.isKAS()
          Returns whether or not this user has a kas entry.
 boolean User.isPTS()
          Returns whether or not this user has a pts entry.
 Group[] User.getGroups()
          PTS: Returns an array of the Group objects to which this user belongs.
 int User.getGroupsOwnedCount()
          PTS: Returns the total count of groups this user owns.
 Group[] User.getGroupsOwned()
          PTS: Returns an array of the Group objects this user owns.
 String[] User.getGroupNames()
          PTS: Returns a String array of the group names to which this user belongs.
 String[] User.getGroupsOwnedNames()
          PTS: Returns a String array of the group names this user owns.
 int User.getUID()
          PTS: Returns the numeric AFS id of this user.
 int User.getGroupCreationQuota()
          PTS: Returns how many more groups this user is allowed to create
 int User.getGroupMembershipCount()
          PTS: Returns the number of groups to which this user belongs.
 PTSEntry User.getOwner()
          PTS: Returns the owner of this user in the form of a PTSEntry.
 PTSEntry User.getCreator()
          PTS: Returns the creator of this user in the form of a PTSEntry.
 int User.getListStatus()
          PTS: Returns who can list the status (pts examine) of this user.
 int User.getListGroupsOwned()
          PTS: Returns who can list the groups owned (pts listowned) by this user.
 int User.getListMembership()
          PTS: Returns who can list the groups (pts membership) to which this user belongs.
 boolean User.isAdmin()
          KAS: Returns whether or not this user has kas administrative privileges
 boolean User.willGrantTickets()
          KAS: Returns whether or not TGS will issue tickets for this user
 boolean User.canEncrypt()
          KAS: Returns whether or not TGS can use this users ticket for an encryption key
 boolean User.canChangePassword()
          KAS: Returns whether or not the user can change their password
 boolean User.canReusePassword()
          KAS: Returns whether or not the user can reuse their password
 int User.getUserExpiration()
          KAS: Returns the date and time the user expires.
 GregorianCalendar User.getUserExpirationDate()
          KAS: Returns the date and time the user expires.
 int User.getLastModTime()
          KAS: Returns the date and time (in UTC) the user's KAS entry was last modified.
 GregorianCalendar User.getLastModTimeDate()
          KAS: Returns the date and time the user was last modified.
 String User.getLastModName()
          KAS: Returns the name of the user that last modified this user.
 GregorianCalendar User.getLastChangePasswordTimeDate()
          KAS: Returns the last date and time the user changed its password.
 int User.getLastChangePasswordTime()
          KAS: Returns the last date and time (in UTC) the user changed its password.
 int User.getMaxTicketLifetime()
          KAS: Returns the maximum lifetime of a ticket issued to this user (in seconds).
 int User.getDaysToPasswordExpire()
          KAS: Returns the number of days a password is valid before it expires.
 int User.getFailLoginCount()
          KAS: Returns the number of failed login attempts this user is allowed before being locked out.
 int User.getLockTime()
          KAS: Returns the amount of time (in seconds) a user is locked out when it exceeds the maximum number of allowable failed login attempts.
 String User.getEncryptionKey()
          KAS: Returns the encryption key, in octal form, of this user.
 long User.getKeyCheckSum()
          KAS: Returns the check sum of this user's key.
 int User.getKeyVersion()
          KAS: Returns the version number of the user's key.
 int User.getLockedUntil()
          KAS: Returns the date and time (in UTC) at which the user stops being locked out.
 GregorianCalendar User.getLockedUntilDate()
          KAS: Returns the date and time at which the user stops being locked out.
 void User.setListStatus(int value)
          PTS: Sets who can list the status (pts examine) of this user.
 void User.setListGroupsOwned(int value)
          PTS: Sets who can list the groups owned (pts listowned) by this user.
 void User.setListMembership(int value)
          PTS: Sets who can list the groups (pts membership) to which this user belongs.
 void User.setPassword(String newPassword)
          Sets the password of this user to something new.
 void Cell.refresh()
          Refreshes the properties of this Cell object instance with values from the AFS cell it represents.
 void Cell.close()
          Unauthenticates this Token object associated with this Cell and deletes all of its stored information.
 User Cell.getUser(String name)
          Retrieves the User object (which is an abstract representation of an actual AFS user) designated by name.
 int Cell.getUserCount()
          Returns the total number of users who are registered with KAS and PTS, without duplicates.
 User[] Cell.getUsers()
          Retrieves an array containing all of the User objects associated with this Cell, each of which are an abstract representation of an actual user of the AFS cell.
 User[] Cell.getUsers(int startIndex, int length)
          Returns an array containing a subset of the User objects associated with this Cell, each of which is an abstract representation of an actual AFS user of the AFS cell.
 String[] Cell.getUserNames()
          Retrieves an array containing all of the names of users associated with this Cell.
 String[] Cell.getUserNames(int startIndex, int length)
          Returns an array containing a subset of the names of users associated with this Cell.
 Group Cell.getGroup(String name)
          Retrieves the Group object (which is an abstract representation of an actual AFS group) designated by name.
 int Cell.getGroupCount()
          Returns the total number of groups associated with this Cell.
 Group[] Cell.getGroups()
          Retrieves an array containing all of the Group objects associated with this Cell, each of which are an abstract representation of an actual group of the AFS cell.
 Group[] Cell.getGroups(int startIndex, int length)
          Returns an array containing a subset of the Group objects associated with this Cell, each of which is an abstract representation of an actual AFS group of the AFS cell.
 String[] Cell.getGroupNames()
          Retrieves an array containing all of the names of groups associated with this Cell.
 String[] Cell.getGroupNames(int startIndex, int length)
          Returns an array containing a subset of the names of groups associated with this Cell.
 Server Cell.getServer(String name)
          Retrieves the Server object (which is an abstract representation of an actual AFS server) designated by name.
 int Cell.getServerCount()
          Returns the total number of servers associated with this Cell.
 Server[] Cell.getServers()
          Retrieves an array containing all of the Server objects associated with this Cell, each of which are an abstract representation of an actual server of the AFS cell.
 String[] Cell.getServerNames()
          Retrieves an array containing all of the names of servers associated with this Cell.
 int Cell.getMaxGroupID()
          Returns the maximum group ID that's been used within the cell.
 int Cell.getMaxUserID()
          Returns the maximum user ID that's been used within the cell.
 GregorianCalendar Cell.getTokenExpiration()
          Returns the expiration time of the authentication token being used by this Cell object.
 int Cell.getCellHandle()
          Returns the cell handle of this cell.
 void Cell.setMaxGroupID(int maxID)
          Sets the maximum group ID that's been used within the cell.
 void Cell.setMaxUserID(int maxID)
          Sets the maximum user ID that's been used within the cell.
static void Cell.setACL(String directory, String username, boolean read, boolean write, boolean lookup, boolean delete, boolean insert, boolean lock, boolean admin)
           
 PTSEntry PTSEntry.getCreator()
          Returns the creator of this PTS user or group.
 PTSEntry PTSEntry.getOwner()
          Returns the owner of this PTS user or group.
 int PTSEntry.getUID()
          Returns the numeric AFS id of this user or group.
 void Group.create(String ownerName)
          Creates the PTS entry for a new group in this cell.
 void Group.create(String ownerName, int gid)
          Creates the PTS entry for a new group in this cell.
 void Group.delete()
          Deletes the PTS entry for a group in this cell.
 void Group.flushInfo()
          Flushes the current information of this Group object to disk.
 void Group.addMember(User theUser)
          Add the specified member to this group.
 void Group.removeMember(User theUser)
          Remove the specified member from this group.
 void Group.changeOwner(User theOwner)
          Change the owner of this group.
 void Group.changeOwner(Group theOwner)
          Change the owner of this group.
 void Group.rename(String newName)
          Change the name of this group.
 void Group.refresh()
          Refreshes the properties of this Group object instance with values from the AFS group it represents.
 int Group.getUID()
          Returns the numeric AFS id of this group.
 User[] Group.getMembers()
          Returns an array of the User object members of this group.
 String[] Group.getMemberNames()
          Returns an array of the member names of this group.
 Group[] Group.getGroupsOwned()
          Returns an array of the Group objects this group owns.
 String[] Group.getGroupsOwnedNames()
          Returns an array of the group names this group owns.
 int Group.getMembershipCount()
          Returns the number of members of this group.
 PTSEntry Group.getOwner()
          PTS: Returns the owner of this group in the form of a PTSEntry.
 PTSEntry Group.getCreator()
          PTS: Returns the creator of this group in the form of a PTSEntry.
 int Group.getListStatus()
          Returns who can list the status (pts examine) of this group.
 int Group.getListGroupsOwned()
          Returns who can list the groups owned (pts listowned) by this group.
 int Group.getListMembership()
          Returns who can list the users (pts membership) that belong to this group.
 int Group.getListAdd()
          Returns who can add members (pts adduser) to this group.
 int Group.getListDelete()
          Returns who can delete members (pts removemember) from this group.
 void Group.setListStatus(int value)
          Sets who can list the status (pts examine) of this group.
 void Group.setListGroupsOwned(int value)
          Sets who can list the groups owned (pts listowned) by this group.
 void Group.setListMembership(int value)
          Sets who can list the users (pts membership) that belong to this group.
 void Group.setListAdd(int value)
          Sets who can add members (pts adduser) to this group.
 void Group.setListDelete(int value)
          Sets who can delete members (pts removemember) from this group.
 void ACL.addPositiveEntry(ACL.Entry entry)
           
 void ACL.setPositiveEntries(ACL.Entry[] entries)
           
 void ACL.addNegativeEntry(ACL.Entry entry)
           
 void ACL.setNegativeEntries(ACL.Entry[] entries)
           
 void ACL.flush()
           
 void Token.close()
          Closes the given currently open token.
 long Token.getExpiration()
          Gets the expiration time for a given token.
 void Token.klog()
          Authenticates a user in kas, and binds that authentication to the current process.
 void Token.login()
          Authenticates a user in KAS, and binds that authentication to the current process.
 void Token.unlog()
          Manually discards all AFS credentials associated with the bound user.
 

Constructors in org.openafs.jafs that throw AFSException
Key(int version, Server server)
          Constructs a new Key object instance given the version of the AFS key and the AFS server, represented by server, to which it belongs.
Key(int version, Server server, boolean preloadAllMembers)
          Constructs a new Key object instance given the version of the AFS key and the AFS server, represented by server, to which it belongs.
Process(String name, Server server)
          Constructs a new Process object instance given the name of the AFS process and the AFS server, represented by server, to which it belongs.
Process(String name, Server server, boolean preloadAllMembers)
          Constructs a new Process object instance given the name of the AFS process and the AFS server, represented by server, to which it belongs.
Volume(String name, Partition partition)
          Constructs a new Volume object instance given the name of the AFS volume and the AFS cell, represented by partition, to which it belongs.
Volume(String name, Partition partition, boolean preloadAllMembers)
          Constructs a new Volume object instance given the name of the AFS volume and the AFS partition, represented by partition, to which it belongs.
Partition(String name, Server server)
          Constructs a new Partition object instance given the name of the AFS partition and the AFS server, represented by server, to which it belongs.
Partition(String name, Server server, boolean preloadAllMembers)
          Constructs a new Partition object instance given the name of the AFS partition and the AFS server, represented by server, to which it belongs.
Server(String name, Cell cell)
          Constructs a new Server object instance given the name of the AFS server and the AFS cell, represented by cell, to which it belongs.
Server(String name, Cell cell, boolean preloadAllMembers)
          Constructs a new Server object instance given the name of the AFS server and the AFS cell, represented by cell, to which it belongs.
User(String name, Cell cell)
          Constructs a new User object instance given the name of the AFS user and the AFS cell, represented by cell, to which it belongs.
User(String name, Cell cell, boolean preloadAllMembers)
          Constructs a new User object instance given the name of the AFS user and the AFS cell, represented by cell, to which it belongs.
Cell(Token token)
          Constructs a new Cell object instance given the Token that should represents an authenticated user with administrative access.
Cell(Token token, boolean preloadAllMembers)
          Constructs a new Cell object instance given the Token that should represents an authenticated user with administrative access.
Group(String name, Cell cell)
          Constructs a new Group object instance given the name of the AFS group and the AFS cell, represented by cell, to which it belongs.
Group(String name, Cell cell, boolean preloadAllMembers)
          Constructs a new Group object instance given the name of the AFS group and the AFS cell, represented by cell, to which it belongs.
ACL(String path)
           
Token(String username, String password, String cellName)
          Constructs a new Token object instance given the name of the AFS cell it represents and the username and password of the user to be Tokend for administrative access.
 


Java AFS API (jafs) for OpenAFS

Copyright (c) 2001-2002 International Business Machines Corp.
All rights reserved.
See copyright statement.