org.infinispan.remoting.transport.jgroups
Class JGroupsTopologyAwareAddress

java.lang.Object
  extended by org.infinispan.remoting.transport.jgroups.JGroupsAddress
      extended by org.infinispan.remoting.transport.jgroups.JGroupsTopologyAwareAddress
All Implemented Interfaces:
Address, TopologyAwareAddress

public final class JGroupsTopologyAwareAddress
extends JGroupsAddress
implements TopologyAwareAddress

An encapsulation of a JGroups Address

Since:
5.0
Author:
Bela Ban

Nested Class Summary
static class JGroupsTopologyAwareAddress.Externalizer
           
 
Field Summary
 
Fields inherited from class org.infinispan.remoting.transport.jgroups.JGroupsAddress
address
 
Constructor Summary
JGroupsTopologyAwareAddress(org.jgroups.util.TopologyUUID address)
           
 
Method Summary
 String getMachineId()
           
 String getRackId()
           
 String getSiteId()
           
 boolean isSameMachine(TopologyAwareAddress addr)
           
 boolean isSameRack(TopologyAwareAddress addr)
           
 boolean isSameSite(TopologyAwareAddress addr)
           
 
Methods inherited from class org.infinispan.remoting.transport.jgroups.JGroupsAddress
equals, getJGroupsAddress, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JGroupsTopologyAwareAddress

public JGroupsTopologyAwareAddress(org.jgroups.util.TopologyUUID address)
Method Detail

getSiteId

public String getSiteId()
Specified by:
getSiteId in interface TopologyAwareAddress

getRackId

public String getRackId()
Specified by:
getRackId in interface TopologyAwareAddress

getMachineId

public String getMachineId()
Specified by:
getMachineId in interface TopologyAwareAddress

isSameSite

public boolean isSameSite(TopologyAwareAddress addr)
Specified by:
isSameSite in interface TopologyAwareAddress

isSameRack

public boolean isSameRack(TopologyAwareAddress addr)
Specified by:
isSameRack in interface TopologyAwareAddress

isSameMachine

public boolean isSameMachine(TopologyAwareAddress addr)
Specified by:
isSameMachine in interface TopologyAwareAddress

-->

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