|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nhncorp.neptune.common.util.NetUtils
public class NetUtils
| Constructor Summary | |
|---|---|
NetUtils()
|
|
| Method Summary | |
|---|---|
static javax.net.SocketFactory |
getDefaultSocketFactory(NConfiguration conf)
Get the default socket factory as specified by the configuration parameter hadoop.rpc.socket.factory.default |
static javax.net.SocketFactory |
getSocketFactoryFromProperty(NConfiguration conf,
java.lang.String propValue)
Get the socket factory corresponding to the given proxy URI. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NetUtils()
| Method Detail |
|---|
public static javax.net.SocketFactory getDefaultSocketFactory(NConfiguration conf)
conf - the configuration
public static javax.net.SocketFactory getSocketFactoryFromProperty(NConfiguration conf,
java.lang.String propValue)
propValue - the property which is the class name of the
SocketFactory to instantiate; assumed non null and non empty.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||