|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.locator.EndPointSnitch
public class EndPointSnitch
Author : Avinash Lakshman ( alakshman@facebook.com) & Prashant Malik ( pmalik@facebook.com )
Constructor Summary | |
---|---|
EndPointSnitch()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EndPointSnitch()
Method Detail |
---|
public boolean isOnSameRack(EndPoint host, EndPoint host2) throws java.net.UnknownHostException
IEndPointSnitch
isOnSameRack
in interface IEndPointSnitch
host
- a specified endpointhost2
- another specified endpoint
java.net.UnknownHostException
public boolean isInSameDataCenter(EndPoint host, EndPoint host2) throws java.net.UnknownHostException
IEndPointSnitch
isInSameDataCenter
in interface IEndPointSnitch
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 |