org.infinispan.distribution.ch
Class VirtualAddress

java.lang.Object
  extended by org.infinispan.distribution.ch.VirtualAddress
All Implemented Interfaces:
Address

public class VirtualAddress
extends Object
implements Address

Virtual addresses are used internally by the consistent hashes in order to provide virtual nodes. A virtual addresses contains the "real address" of the node and a synthetic identifier which is used to differentiate different virtual nodes on a real node from one another.

Author:
Pete Muir

Constructor Summary
VirtualAddress(Address realAddress, int id)
           
 
Method Summary
 boolean equals(Object obj)
           
 int getId()
           
 Address getRealAddress()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VirtualAddress

public VirtualAddress(Address realAddress,
                      int id)
Method Detail

getId

public int getId()

getRealAddress

public Address getRealAddress()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.