Example usage for org.apache.hadoop.ipc Server getRemoteAddress

List of usage examples for org.apache.hadoop.ipc Server getRemoteAddress

Introduction

In this page you can find the example usage for org.apache.hadoop.ipc Server getRemoteAddress.

Prototype

public static String getRemoteAddress() 

Source Link

Document

Returns remote address as a string when invoked inside an RPC.

Usage

From source file:common.NameNode.java

License:Apache License

private static String getClientMachine() {
    String clientMachine = Server.getRemoteAddress();
    if (clientMachine == null) {
        clientMachine = "";
    }//from   w  w w .  j av  a 2 s.  c om
    return clientMachine;
}