congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
MountPointInfo.getUfsType
Code IndexAdd Tabnine to your IDE (free)

How to use
getUfsType
method
in
alluxio.wire.MountPointInfo

Best Java code snippets using alluxio.wire.MountPointInfo.getUfsType (Showing top 3 results out of 315)

origin: Alluxio/alluxio

/**
 * Prints mount information for a mount table.
 *
 * @param mountTable the mount table to get information from
 */
public static void printMountInfo(Map<String, MountPointInfo> mountTable) {
 for (Map.Entry<String, MountPointInfo> entry : mountTable.entrySet()) {
  String mMountPoint = entry.getKey();
  MountPointInfo mountPointInfo = entry.getValue();
  long capacityBytes = mountPointInfo.getUfsCapacityBytes();
  long usedBytes = mountPointInfo.getUfsUsedBytes();
  String usedPercentageInfo = "";
  if (capacityBytes > 0) {
   int usedPercentage = (int) (100L * usedBytes / capacityBytes);
   usedPercentageInfo = String.format("(%s%%)", usedPercentage);
  }
  String leftAlignFormat = getAlignFormat(mountTable);
  System.out.format(leftAlignFormat, mountPointInfo.getUfsUri(), mMountPoint,
    mountPointInfo.getUfsType(), FormatUtils.getSizeFromBytes(capacityBytes),
    FormatUtils.getSizeFromBytes(usedBytes) + usedPercentageInfo,
    mountPointInfo.getReadOnly() ? "" : "not ",
    mountPointInfo.getShared() ? "" : "not ");
  System.out.println("properties=" + mountPointInfo.getProperties() + ")");
 }
}
origin: Alluxio/alluxio

/**
 * Converts wire type to proto type.
 *
 * @param info the wire representation to convert
 * @return converted proto representation
 */
public static alluxio.grpc.MountPointInfo toProto(MountPointInfo info) {
 return alluxio.grpc.MountPointInfo.newBuilder().setUfsUri(info.getUfsUri())
   .setUfsType(info.getUfsType()).setUfsCapacityBytes(info.getUfsCapacityBytes())
   .setReadOnly(info.getReadOnly()).putAllProperties(info.getProperties())
   .setShared(info.getShared()).build();
}
origin: Alluxio/alluxio

public void checkEquality(MountPointInfo a, MountPointInfo b) {
 Assert.assertEquals(a.getUfsUri(), b.getUfsUri());
 Assert.assertEquals(a.getUfsType(), b.getUfsType());
 Assert.assertEquals(a.getUfsCapacityBytes(), b.getUfsCapacityBytes());
 Assert.assertEquals(a.getUfsUsedBytes(), b.getUfsUsedBytes());
 Assert.assertEquals(a.getReadOnly(), b.getReadOnly());
 Assert.assertEquals(a.getProperties(), b.getProperties());
 Assert.assertEquals(a, b);
}
alluxio.wireMountPointInfogetUfsType

Popular methods of MountPointInfo

  • getReadOnly
  • getUfsCapacityBytes
  • getUfsUri
  • <init>
    Creates a new instance of MountPointInfo.
  • getProperties
  • getUfsUsedBytes
  • setProperties
  • setReadOnly
  • setUfsCapacityBytes
  • setUfsType
  • setUfsUri
  • setUfsUsedBytes
  • setUfsUri,
  • setUfsUsedBytes,
  • getShared,
  • setShared,
  • toThrift

Popular in Java

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now