Tabnine Logo
MountPointInfo.setProperties
Code IndexAdd Tabnine to your IDE (free)

How to use
setProperties
method
in
alluxio.wire.MountPointInfo

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

origin: Alluxio/alluxio

 public static MountPointInfo createRandom() {
  Random random = new Random();
  String ufsUri = CommonUtils.randomAlphaNumString(random.nextInt(10));
  String ufsType = CommonUtils.randomAlphaNumString(random.nextInt(10));
  long ufsCapacityBytes = random.nextLong();
  long ufsUsedBytes = random.nextLong();
  boolean readOnly = random.nextBoolean();
  Map<String, String> properties = new HashMap<>();
  for (int i = 0, n = random.nextInt(10) + 1; i < n; i++) {
   properties.put(CommonUtils.randomAlphaNumString(random.nextInt(5)),
     CommonUtils.randomAlphaNumString(random.nextInt(5)));
  }

  MountPointInfo result = new MountPointInfo();
  result.setUfsUri(ufsUri);
  result.setUfsType(ufsType);
  result.setUfsCapacityBytes(ufsCapacityBytes);
  result.setUfsUsedBytes(ufsUsedBytes);
  result.setReadOnly(readOnly);
  result.setProperties(properties);

  return result;
 }
}
origin: Alluxio/alluxio

/**
 * @return the {@link MountPointInfo} for the mount point
 */
public MountPointInfo toMountPointInfo() {
 MountPointInfo info = new MountPointInfo();
 info.setUfsUri(mUfsUri.toString());
 info.setReadOnly(mOptions.getReadOnly());
 info.setProperties(mOptions.getProperties());
 info.setShared(mOptions.getShared());
 return info;
}
origin: Alluxio/alluxio

/**
 * Converts a proto type to a wire type.
 *
 * @param mountPointPInfo the proto type to convert
 * @return the converted wire type
 */
public static MountPointInfo fromProto(alluxio.grpc.MountPointInfo mountPointPInfo) {
 return new MountPointInfo().setUfsUri(mountPointPInfo.getUfsUri())
   .setUfsType(mountPointPInfo.getUfsType())
   .setUfsCapacityBytes(mountPointPInfo.getUfsCapacityBytes())
   .setUfsUsedBytes(mountPointPInfo.getUfsUsedBytes())
   .setReadOnly(mountPointPInfo.getReadOnly())
   .setProperties(mountPointPInfo.getPropertiesMap()).setShared(mountPointPInfo.getShared());
}
origin: org.alluxio/alluxio-core-server-master

/**
 * @return the {@link MountPointInfo} for the mount point
 */
public MountPointInfo toMountPointInfo() {
 MountPointInfo info = new MountPointInfo();
 info.setUfsUri(mUfsUri.toString());
 info.setReadOnly(mOptions.isReadOnly());
 info.setProperties(mOptions.getProperties());
 info.setShared(mOptions.isShared());
 return info;
}
origin: org.alluxio/alluxio-core-common

/**
 * Creates a new instance of {@link MountPointInfo} from thrift representation.
 *
 * @param info the thrift representation of a mount point information
 * @return the instance
 */
public static MountPointInfo fromThrift(alluxio.thrift.MountPointInfo info) {
 return new MountPointInfo()
   .setUfsUri(info.getUfsUri())
   .setUfsType(info.getUfsType())
   .setUfsCapacityBytes(info.getUfsCapacityBytes())
   .setUfsUsedBytes(info.getUfsUsedBytes())
   .setReadOnly(info.isReadOnly())
   .setProperties(info.getProperties())
   .setShared(info.isShared());
}
alluxio.wireMountPointInfosetProperties

Popular methods of MountPointInfo

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • putExtra (Intent)
  • startActivity (Activity)
  • findViewById (Activity)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top plugins for Android Studio
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