Tabnine Logo
ReplicaInfo.getBytesReserved
Code IndexAdd Tabnine to your IDE (free)

How to use
getBytesReserved
method
in
org.apache.hadoop.hdfs.server.datanode.ReplicaInfo

Best Java code snippets using org.apache.hadoop.hdfs.server.datanode.ReplicaInfo.getBytesReserved (Showing top 3 results out of 315)

origin: org.apache.hadoop/hadoop-hdfs

  bpid, replicaInfo, replicaInfo, replicaInfo.getBytesReserved());
if (v.isTransientStorage()) {
 releaseLockedMemory(
origin: io.prestosql.hadoop/hadoop-apache

  bpid, replicaInfo, f, replicaInfo.getBytesReserved());
newReplicaInfo = new FinalizedReplica(replicaInfo, v, dest.getParentFile());
origin: ch.cern.hadoop/hadoop-hdfs

private synchronized FinalizedReplica finalizeReplica(String bpid,
  ReplicaInfo replicaInfo) throws IOException {
 FinalizedReplica newReplicaInfo = null;
 if (replicaInfo.getState() == ReplicaState.RUR &&
   ((ReplicaUnderRecovery)replicaInfo).getOriginalReplica().getState() == 
    ReplicaState.FINALIZED) {
  newReplicaInfo = (FinalizedReplica)
      ((ReplicaUnderRecovery)replicaInfo).getOriginalReplica();
 } else {
  FsVolumeImpl v = (FsVolumeImpl)replicaInfo.getVolume();
  File f = replicaInfo.getBlockFile();
  if (v == null) {
   throw new IOException("No volume for temporary file " + f +
     " for block " + replicaInfo);
  }
  File dest = v.addFinalizedBlock(
    bpid, replicaInfo, f, replicaInfo.getBytesReserved());
  newReplicaInfo = new FinalizedReplica(replicaInfo, v, dest.getParentFile());
  if (v.isTransientStorage()) {
   ramDiskReplicaTracker.addReplica(bpid, replicaInfo.getBlockId(), v);
   datanode.getMetrics().addRamDiskBytesWrite(replicaInfo.getNumBytes());
  }
 }
 volumeMap.add(bpid, newReplicaInfo);
 return newReplicaInfo;
}
org.apache.hadoop.hdfs.server.datanodeReplicaInfogetBytesReserved

Javadoc

Number of bytes reserved for this replica on disk.

Popular methods of ReplicaInfo

  • getBlockId
  • getBytesOnDisk
  • getGenerationStamp
  • getNumBytes
  • getState
  • getVolume
    Get the volume where this replica is located on disk
  • getBlockFile
    Get the full path of this replica's data file
  • getMetaFile
    Get the full path of this replica's meta file
  • getBlockName
  • getStorageUuid
    Get the storageUuid of the volume that stores this replica.
  • getVisibleLength
  • isOnTransientStorage
  • getVisibleLength,
  • isOnTransientStorage,
  • setGenerationStamp,
  • setNumBytes,
  • equals,
  • getDir,
  • hashCode,
  • isUnlinked,
  • parseBaseDir

Popular in Java

  • Parsing JSON documents to java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • setContentView (Activity)
  • compareTo (BigDecimal)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • CodeWhisperer alternatives
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