congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
HostFileManager.isIncluded
Code IndexAdd Tabnine to your IDE (free)

How to use
isIncluded
method
in
org.apache.hadoop.hdfs.server.blockmanagement.HostFileManager

Best Java code snippets using org.apache.hadoop.hdfs.server.blockmanagement.HostFileManager.isIncluded (Showing top 6 results out of 315)

origin: io.prestosql.hadoop/hadoop-apache

/**
 * 1. Added to hosts  --> no further work needed here.
 * 2. Removed from hosts --> mark AdminState as decommissioned. 
 * 3. Added to exclude --> start decommission.
 * 4. Removed from exclude --> stop decommission.
 */
private void refreshDatanodes() {
 for(DatanodeDescriptor node : datanodeMap.values()) {
  // Check if not include.
  if (!hostFileManager.isIncluded(node)) {
   node.setDisallowed(true); // case 2.
  } else {
   if (hostFileManager.isExcluded(node)) {
    decomManager.startDecommission(node); // case 3.
   } else {
    decomManager.stopDecommission(node); // case 4.
   }
  }
 }
}
origin: ch.cern.hadoop/hadoop-hdfs

/**
 * 1. Added to hosts  --> no further work needed here.
 * 2. Removed from hosts --> mark AdminState as decommissioned. 
 * 3. Added to exclude --> start decommission.
 * 4. Removed from exclude --> stop decommission.
 */
private void refreshDatanodes() {
 for(DatanodeDescriptor node : datanodeMap.values()) {
  // Check if not include.
  if (!hostFileManager.isIncluded(node)) {
   node.setDisallowed(true); // case 2.
  } else {
   if (hostFileManager.isExcluded(node)) {
    decomManager.startDecommission(node); // case 3.
   } else {
    decomManager.stopDecommission(node); // case 4.
   }
  }
 }
}
origin: ch.cern.hadoop/hadoop-hdfs

 (listDeadNodes && isDead) ||
 (listDecommissioningNodes && isDecommissioning)) &&
 hostFileManager.isIncluded(dn)) {
nodes.add(dn);
origin: io.prestosql.hadoop/hadoop-apache

 (listDeadNodes && isDead) ||
 (listDecommissioningNodes && isDecommissioning)) &&
 hostFileManager.isIncluded(dn)) {
nodes.add(dn);
origin: ch.cern.hadoop/hadoop-hdfs

if (!hostFileManager.isIncluded(nodeReg)) {
 throw new DisallowedDatanodeException(nodeReg);
origin: io.prestosql.hadoop/hadoop-apache

if (!hostFileManager.isIncluded(nodeReg)) {
 throw new DisallowedDatanodeException(nodeReg);
org.apache.hadoop.hdfs.server.blockmanagementHostFileManagerisIncluded

Popular methods of HostFileManager

  • parseEntry
  • refresh
    Set the includes and excludes lists by the new HostSet instances. The old instances are discarded.
  • isExcluded
  • readFile
  • getExcludes
  • getIncludes
  • resolvedAddressFromDatanodeID
  • <init>

Popular in Java

  • Making http post requests using okhttp
  • putExtra (Intent)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • notifyDataSetChanged (ArrayAdapter)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Runner (org.openjdk.jmh.runner)
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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