|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IEndPointSnitch
This interface helps determine location of node in the data center relative to another node. Give a node A and another node B it can tell if A and B are on the same rack or in the same data center. Author : Avinash Lakshman ( alakshman@facebook.com) & Prashant Malik ( pmalik@facebook.com )
Method Summary | |
---|---|
boolean |
isInSameDataCenter(EndPoint host,
EndPoint host2)
Helps determine if 2 nodes are in the same data center. |
boolean |
isOnSameRack(EndPoint host,
EndPoint host2)
Helps determine if 2 nodes are in the same rack in the data center. |
Method Detail |
---|
boolean isOnSameRack(EndPoint host, EndPoint host2) throws java.net.UnknownHostException
host
- a specified endpointhost2
- another specified endpoint
java.net.UnknownHostException
boolean isInSameDataCenter(EndPoint host, EndPoint host2) throws java.net.UnknownHostException
host
- a specified endpointhost2
- another specified endpoint
java.net.UnknownHostException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |