Package alluxio.wire
Class MountPointInfo
- java.lang.Object
-
- alluxio.wire.MountPointInfo
-
- All Implemented Interfaces:
java.io.Serializable
@NotThreadSafe @PublicApi public class MountPointInfo extends java.lang.Object implements java.io.Serializable
The mount point information.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MountPointInfo()
Creates a new instance ofMountPointInfo
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
long
getMountId()
java.util.Map<java.lang.String,java.lang.String>
getProperties()
boolean
getReadOnly()
boolean
getShared()
long
getUfsCapacityBytes()
java.lang.String
getUfsType()
java.lang.String
getUfsUri()
long
getUfsUsedBytes()
int
hashCode()
MountPointInfo
setMountId(long mountId)
MountPointInfo
setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
MountPointInfo
setReadOnly(boolean readOnly)
MountPointInfo
setShared(boolean shared)
MountPointInfo
setUfsCapacityBytes(long capacity)
MountPointInfo
setUfsType(java.lang.String type)
MountPointInfo
setUfsUri(java.lang.String uri)
MountPointInfo
setUfsUsedBytes(long usedBytes)
java.lang.String
toString()
-
-
-
Constructor Detail
-
MountPointInfo
public MountPointInfo()
Creates a new instance ofMountPointInfo
.
-
-
Method Detail
-
getMountId
public long getMountId()
- Returns:
- the mount id
-
getUfsUri
public java.lang.String getUfsUri()
- Returns:
- the uri of the under filesystem
-
getUfsType
public java.lang.String getUfsType()
- Returns:
- the type of the under filesystem
-
getUfsCapacityBytes
public long getUfsCapacityBytes()
- Returns:
- the capacity of the under filesystem in bytes
-
getUfsUsedBytes
public long getUfsUsedBytes()
- Returns:
- the usage of the under filesystem in bytes
-
getReadOnly
public boolean getReadOnly()
- Returns:
- whether the mount point is read-only
-
getProperties
public java.util.Map<java.lang.String,java.lang.String> getProperties()
- Returns:
- properties of the mount point
-
getShared
public boolean getShared()
- Returns:
- whether the mount point is shared
-
setMountId
public MountPointInfo setMountId(long mountId)
- Parameters:
mountId
- set mountId- Returns:
- the mount point information
-
setUfsUri
public MountPointInfo setUfsUri(java.lang.String uri)
- Parameters:
uri
- the uri of the under filesystem to use- Returns:
- the mount point information
-
setUfsType
public MountPointInfo setUfsType(java.lang.String type)
- Parameters:
type
- the type of the under filesystem to use- Returns:
- the mount point information
-
setUfsCapacityBytes
public MountPointInfo setUfsCapacityBytes(long capacity)
- Parameters:
capacity
- the capacity of the under filesystem to use- Returns:
- the mount point information
-
setUfsUsedBytes
public MountPointInfo setUfsUsedBytes(long usedBytes)
- Parameters:
usedBytes
- the used bytes of the under filesystem to use- Returns:
- the mount point information
-
setReadOnly
public MountPointInfo setReadOnly(boolean readOnly)
- Parameters:
readOnly
- the indicator of whether the mount point is read-only to use- Returns:
- the mount point information
-
setProperties
public MountPointInfo setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
- Parameters:
properties
- the mount point properties to use- Returns:
- the mount point information
-
setShared
public MountPointInfo setShared(boolean shared)
- Parameters:
shared
- the indicator of whether the mount point is shared with all Alluxio users- Returns:
- the mount point information
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-