Class

pt.tecnico.dsi.afs

AFS

Related Doc: package afs

Permalink

class AFS extends LazyLogging

Linear Supertypes
LazyLogging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AFS
  2. LazyLogging
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AFS(config: Config)

    Permalink
  2. new AFS(settings: Settings = new Settings())

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from AFS to any2stringadd[AFS] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (AFS, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from AFS to ArrowAssoc[AFS] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def addSite(server: String, partition: String, name: String): Expect[Either[ErrorCase, Unit]]

    Permalink

    Defines a new read-only site (partition on a file server machine, specified by the server and partition arguments) in the Volume Location Database (VLDB) entry of the read/write volume specified by the name argument.

    Defines a new read-only site (partition on a file server machine, specified by the server and partition arguments) in the Volume Location Database (VLDB) entry of the read/write volume specified by the name argument.

    This function is idempotent.

    server

    hostname of the file server where the read-only volume is to reside

    partition

    partition where the read-only is to reside

    name

    name or id of the read/write volume

    returns

    Unit when successful

  7. def addUserToGroup(name: String, group: String): Expect[Either[ErrorCase, Unit]]

    Permalink

    Adds a user to a group

    Adds a user to a group

    name

    name of the user to be added

    group

    name of the group

    returns

    Unit if successful

  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def backupVolume(name: String): Expect[Either[ErrorCase, Unit]]

    Permalink

    Creates a backup volume for a read/write volume

    Creates a backup volume for a read/write volume

    name

    read/write volume

    returns

    Unit when the volume was created successfully

  10. def checkVolumes(): Expect[Either[ErrorCase, Unit]]

    Permalink

    Forces the Cache Manager to update volume information

    Forces the Cache Manager to update volume information

    returns

    Unit when successful

  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def createGroup(name: String, owner: String): Expect[Either[ErrorCase, Int]]

    Permalink

    Create group for the given name and owner

    Create group for the given name and owner

    name

    name of the new group

    owner

    username of the user creating the group

    returns

    Unit if successful

  13. def createUser(name: String, afsId: Int): Expect[Either[ErrorCase, Unit]]

    Permalink

    Create a user for the given name and id

    Create a user for the given name and id

    name

    username of the new user

    afsId

    id of the new user

    returns

    Unit if successful

  14. def createVolume(server: String, partition: String, name: String, maxQuota: Information): Expect[Either[ErrorCase, Unit]]

    Permalink

    Create an AFS volume on a given "server" , in given a "partition" in the given server, with a given "name" and a maximum quota defined by "maxQuota"

    Create an AFS volume on a given "server" , in given a "partition" in the given server, with a given "name" and a maximum quota defined by "maxQuota"

    server

    hostname of the afs server

    partition

    name of the partition on the afs server in which the volume is being created

    name

    name of the volume being created

    maxQuota

    defines the maximum allowed quota, the minimum value is 1 kibibyte

    returns

    Unit when successful

  15. def deleteUserOrGroup(name: String): Expect[Either[ErrorCase, Unit]]

    Permalink

    Deletes a user or group with the given name

    Deletes a user or group with the given name

    name

    user or group name

    returns

    Unit if successful

  16. def ensuring(cond: (AFS) ⇒ Boolean, msg: ⇒ Any): AFS

    Permalink
    Implicit information
    This member is added by an implicit conversion from AFS to Ensuring[AFS] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: (AFS) ⇒ Boolean): AFS

    Permalink
    Implicit information
    This member is added by an implicit conversion from AFS to Ensuring[AFS] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean, msg: ⇒ Any): AFS

    Permalink
    Implicit information
    This member is added by an implicit conversion from AFS to Ensuring[AFS] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean): AFS

    Permalink
    Implicit information
    This member is added by an implicit conversion from AFS to Ensuring[AFS] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  22. def examineVolume(name: String): Expect[Either[ErrorCase, Unit]]

    Permalink

    Checks if server exist and is On-line

    Checks if server exist and is On-line

    name

    volume name

    returns

    Unit when successful

  23. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. def flushAll(): Expect[Either[ErrorCase, Unit]]

    Permalink

    Flushes all data from the AFS caches

    Flushes all data from the AFS caches

    returns

    Unit on successfull

  25. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from AFS to StringFormat[AFS] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  26. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  27. def getGroupOrUserId(username: String): Expect[Either[ErrorCase, Int]]

    Permalink

    Get the user's id for the given username

    Get the user's id for the given username

    username

    username

    returns

    Id of the given username

  28. def getGroupOrUserName(id: Int): Expect[Either[ErrorCase, String]]

    Permalink

    Get the user name for the given user's ids

    Get the user name for the given user's ids

    id

    user id

    returns

    username of the given user id

  29. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  30. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  31. def listACL(directory: File): Expect[Either[ErrorCase, (Map[String, Permission], Map[String, Permission])]]

    Permalink

    Returns the access control list (ACL) associated with the specified file, directory, or symbolic link.

    Returns the access control list (ACL) associated with the specified file, directory, or symbolic link.

    directory

    directory to be inspected

    returns

    In case of success, a tuple two maps of permissions, that is a map from user to permissions. The first map contains the positive permissions and the second map contains the negative permissions

  32. def listGroups(): Expect[Either[ErrorCase, Seq[(String, Int, Int, Int)]]]

    Permalink

    Return the set of groups and their properties, in the form (name, id, owner, creator)

    Return the set of groups and their properties, in the form (name, id, owner, creator)

    returns

    the set of groups if successful

  33. def listMount(directory: File): Expect[Either[ErrorCase, String]]

    Permalink

    Returns the volume name for which the directory is the mount point.

    Returns the volume name for which the directory is the mount point. The string containing of the volume name is of the form: - A # precedes the volume name for a regular mount point - A % precedes the volume name for a read/write mount point - A cell name and : follow the # or % and precede the volume name For example: #stateu.edu:root.cell

    directory

    directory to be inspected

    returns

    volume name

  34. def listQuota(directory: File): Expect[Either[ErrorCase, Quota]]

    Permalink

    Lists quota information for the volume associated with the given directory.

    Lists quota information for the volume associated with the given directory. Quota is in kibibytes.

    directory

    directory to be inspected

    returns

    an Expect that returns the quota value for the given directory

  35. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  36. def makeMount(directory: File, volume: String): Expect[Either[ErrorCase, Unit]]

    Permalink

    Creates a mount point for a volume in a given directory.

    Creates a mount point for a volume in a given directory. This operation is idempotent. If the mount point already exists, and it is mount point of a different volume it will first try removing the current mount and then creating the mount point for the given arguments.

    directory

    directory where volume is mounted

    volume

    volume to be mounted

    returns

    Unit if successful

  37. def membership(name: String): Expect[Either[ErrorCase, Set[String]]]

    Permalink

    Returns the membership for a user or group

    Returns the membership for a user or group

    name

    name of a group or user

    returns

    set of groups to which the group or user belongs to.

  38. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  39. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  40. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  41. def releaseVolume(name: String): Expect[Either[ErrorCase, Unit]]

    Permalink

    Updates read-only volumes to match the read/write source volume

    Updates read-only volumes to match the read/write source volume

    This function is idempotent.

    name

    volume name

    returns

    Unit when successful

  42. def removeMount(directory: File): Expect[Either[ErrorCase, Unit]]

    Permalink

    Removes the mount point at a given directory and then flushes all caches.

    Removes the mount point at a given directory and then flushes all caches.

    directory

    the directory is supposed to be the mount point

    returns

    Unit when successful

  43. def removeUserFromGroup(name: String, group: String): Expect[Either[ErrorCase, Unit]]

    Permalink

    Remove a user from a group

    Remove a user from a group

    name

    name of the user to be added

    group

    name of the group

    returns

    Unit if successful

  44. def removeVolume(server: String, partition: String, name: String): Expect[Either[ErrorCase, Unit]]

    Permalink

    Remove an AFS volume on a given "server" , in given a "partition" in the given server, with a given "name"

    Remove an AFS volume on a given "server" , in given a "partition" in the given server, with a given "name"

    This function is idempotent

    server

    name where the AFS's partition is setup

    partition

    where the AFS volume was created

    name

    of an existing AFS volume name

    returns

    return unit when volume is removed or when it does not exist

  45. def setACL(directory: File, ACLs: Map[String, Permission], negative: Boolean = false): Expect[Either[ErrorCase, Unit]]

    Permalink

    Adds and overrides the access control list (ACL) associated with the specified file, directory or symbolic link.

    Adds and overrides the access control list (ACL) associated with the specified file, directory or symbolic link. If negative flag is true then the negatives rights are add instead of the normal rights.

    directory

    File representing the specified target

    ACLs

    maps of permissions, from user to permissions

    returns

    Unit if successful

  46. def setQuota(directory: File, quota: Information): Expect[Either[ErrorCase, Unit]]

    Permalink

    Sets the quota for the volume containing the given directory

    Sets the quota for the volume containing the given directory

    directory

    directory whose volume quota will be changed

    quota

    the new quota. The quota is required to be in the interval ]0 Kib, 2 Tib] ∪ +∞

  47. val settings: Settings

    Permalink
  48. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  49. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  50. def volumeExists(name: String, server: String): Expect[Either[ErrorCase, Unit]]

    Permalink

    Check if a volume exists

    Check if a volume exists

    name

    volume name

    server

    hostname of the file server machine

    returns

    Unit when volume exists

  51. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. def [B](y: B): (AFS, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from AFS to ArrowAssoc[AFS] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from LazyLogging

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from AFS to any2stringadd[AFS]

Inherited by implicit conversion StringFormat from AFS to StringFormat[AFS]

Inherited by implicit conversion Ensuring from AFS to Ensuring[AFS]

Inherited by implicit conversion ArrowAssoc from AFS to ArrowAssoc[AFS]

Ungrouped