Example usage for org.apache.hadoop.ipc CallerContext setCurrent

List of usage examples for org.apache.hadoop.ipc CallerContext setCurrent

Introduction

In this page you can find the example usage for org.apache.hadoop.ipc CallerContext setCurrent.

Prototype

public static void setCurrent(CallerContext callerContext) 

Source Link

Usage

From source file:org.apache.tez.hadoop.shim.HadoopShim28.java

License:Apache License

@Override
public void setHadoopCallerContext(String context) {
    CallerContext.setCurrent(new CallerContext.Builder(context).build());
}

From source file:org.apache.tez.hadoop.shim.HadoopShim28.java

License:Apache License

@Override
public void clearHadoopCallerContext() {
    CallerContext.setCurrent(nullCallerContext);
}