|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hdfs.protocol.datatransfer.TrustedChannelResolver
public class TrustedChannelResolver
Class used to indicate whether a channel is trusted or not. The default implementation is to return false indicating that the channel is not trusted. This class can be overridden to provide custom logic to determine whether a channel is trusted or not. The custom class can be specified via configuration.
Constructor Summary | |
---|---|
TrustedChannelResolver()
|
Method Summary | |
---|---|
org.apache.hadoop.conf.Configuration |
getConf()
|
static TrustedChannelResolver |
getInstance(org.apache.hadoop.conf.Configuration conf)
Returns an instance of TrustedChannelResolver. |
boolean |
isTrusted()
Return boolean value indicating whether a channel is trusted or not from a client's perspective. |
boolean |
isTrusted(InetAddress peerAddress)
Identify boolean value indicating whether a channel is trusted or not. |
void |
setConf(org.apache.hadoop.conf.Configuration conf)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TrustedChannelResolver()
Method Detail |
---|
public static TrustedChannelResolver getInstance(org.apache.hadoop.conf.Configuration conf)
conf
-
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
public org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
public boolean isTrusted()
public boolean isTrusted(InetAddress peerAddress)
peerAddress
- address of the peer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |