Tabnine Logo
ContainerLivenessContext.getUser
Code IndexAdd Tabnine to your IDE (free)

How to use
getUser
method
in
org.apache.hadoop.yarn.server.nodemanager.executor.ContainerLivenessContext

Best Java code snippets using org.apache.hadoop.yarn.server.nodemanager.executor.ContainerLivenessContext.getUser (Showing top 2 results out of 315)

origin: org.apache.hadoop/hadoop-yarn-server-nodemanager

@Override
public boolean isContainerAlive(ContainerLivenessContext ctx)
  throws IOException {
 String user = ctx.getUser();
 String pid = ctx.getPid();
 Container container = ctx.getContainer();
 // Send a test signal to the process as the user to see if it's alive
 return signalContainer(new ContainerSignalContext.Builder()
   .setContainer(container)
   .setUser(user)
   .setPid(pid)
   .setSignal(Signal.NULL)
   .build());
}
origin: io.hops/hadoop-yarn-server-nodemanager

@Override
public boolean isContainerAlive(ContainerLivenessContext ctx)
  throws IOException {
 String user = ctx.getUser();
 String pid = ctx.getPid();
 Container container = ctx.getContainer();
 // Send a test signal to the process as the user to see if it's alive
 return signalContainer(new ContainerSignalContext.Builder()
   .setContainer(container)
   .setUser(user)
   .setPid(pid)
   .setSignal(Signal.NULL)
   .build());
}
org.apache.hadoop.yarn.server.nodemanager.executorContainerLivenessContextgetUser

Popular methods of ContainerLivenessContext

  • <init>
  • getContainer
  • getPid

Popular in Java

  • Finding current android device location
  • getSharedPreferences (Context)
  • putExtra (Intent)
  • getApplicationContext (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • 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