UserIdentityProvider (Apache Hadoop Common 3.5.0 API)
Description: declaration: package: org.apache.hadoop.ipc, class: UserIdentityProvider

Package org.apache.hadoop.ipc

# Class UserIdentityProvider

java.lang.Object
org.apache.hadoop.ipc.UserIdentityProvider

All Implemented Interfaces:
  `IdentityProvider`

public class UserIdentityProvider extends Object implements IdentityProvider
The UserIdentityProvider creates uses the username as the identity. All jobs launched by a user will be grouped together.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `UserIdentityProvider()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `makeIdentity(Schedulable obj)`
  Return the string used for scheduling.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### UserIdentityProvider

    public UserIdentityProvider()

- ## Method Details

  - ### makeIdentity

    public String makeIdentity(Schedulable obj)
    Description copied from interface: `IdentityProvider`
    Return the string used for scheduling.
    Specified by:
      `makeIdentity` in interface `IdentityProvider`
    Parameters:
      `obj` - the schedulable to use.
    Returns:
      string identity, or null if no identity could be made.