Package org.infinispan.distribution
Class DistributionInfo
- java.lang.Object
-
- org.infinispan.distribution.DistributionInfo
-
public class DistributionInfo extends Object
- Since:
- 9.0
- Author:
- Radim Vansa, Dan Berindei
-
-
Constructor Summary
Constructors Constructor Description DistributionInfo(int segmentId, org.infinispan.remoting.transport.Address primary, List<org.infinispan.remoting.transport.Address> readOwners, List<org.infinispan.remoting.transport.Address> writeOwners, Collection<org.infinispan.remoting.transport.Address> writeBackups, org.infinispan.remoting.transport.Address localAddress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isPrimary()
boolean
isReadOwner()
boolean
isWriteBackup()
boolean
isWriteOwner()
org.infinispan.remoting.transport.Address
primary()
List<org.infinispan.remoting.transport.Address>
readOwners()
Ownership
readOwnership()
int
segmentId()
String
toString()
Collection<org.infinispan.remoting.transport.Address>
writeBackups()
List<org.infinispan.remoting.transport.Address>
writeOwners()
Ownership
writeOwnership()
-
-
-
Constructor Detail
-
DistributionInfo
public DistributionInfo(int segmentId, org.infinispan.remoting.transport.Address primary, List<org.infinispan.remoting.transport.Address> readOwners, List<org.infinispan.remoting.transport.Address> writeOwners, Collection<org.infinispan.remoting.transport.Address> writeBackups, org.infinispan.remoting.transport.Address localAddress)
-
-
Method Detail
-
segmentId
public int segmentId()
-
primary
public org.infinispan.remoting.transport.Address primary()
-
readOwners
public List<org.infinispan.remoting.transport.Address> readOwners()
-
writeOwners
public List<org.infinispan.remoting.transport.Address> writeOwners()
-
writeBackups
public Collection<org.infinispan.remoting.transport.Address> writeBackups()
-
isPrimary
public boolean isPrimary()
-
isReadOwner
public boolean isReadOwner()
-
isWriteOwner
public boolean isWriteOwner()
-
isWriteBackup
public boolean isWriteBackup()
-
readOwnership
public Ownership readOwnership()
-
writeOwnership
public Ownership writeOwnership()
-
toString
public String toString()
-
-