Class CollectedClaimsImpl
java.lang.Object
com.illumon.iris.db.v2.routing.impl.yaml.CollectedClaimsImpl
- All Implemented Interfaces:
- CollectedClaims
Implementation of CollectedClaims. Stores the data in maps, and adds methods for building up the collection.
 This implementation stays mutable, add synchronization externally as necessary.
- 
Field SummaryFields inherited from interface com.illumon.iris.db.v2.routing.filter.claims.CollectedClaimsEMPTY, UNKNOWN
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidRegister the namespace to the claimant.voidRegister the table to the claimant.claimedBy(CharSequence namespace, CharSequence tableName) return the name of the DIS or failover group that has claim on this table, or null if none.booleanGet the set of claimed namespaces.Get the set of claimed tables.inthashCode()toString()Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.illumon.iris.db.v2.routing.filter.claims.CollectedClaimsclaimedBy, claimedBy, claimedBy, claimedBy, getClaimsFilter, getIfUnclaimedFilter, getIfUnclaimedFilter
- 
Constructor Details- 
CollectedClaimsImplpublic CollectedClaimsImpl()
 
- 
- 
Method Details- 
getNamespaceClaimsDescription copied from interface:CollectedClaimsGet the set of claimed namespaces. This is entire namespaces that have been claimed, but individual claims on a table in the namespace will override the claim for that table.- Specified by:
- getNamespaceClaimsin interface- CollectedClaims
- Returns:
- map of namespace to claimant
 
- 
getTableClaimsDescription copied from interface:CollectedClaimsGet the set of claimed tables.- Specified by:
- getTableClaimsin interface- CollectedClaims
- Returns:
- map of namespace to (map of table to claimant)
 
- 
claimRegister the table to the claimant.- Parameters:
- claimant- who is claiming this table
- namespace- namespace of the table being claimed
- tableName- table to claim
 
- 
claimRegister the namespace to the claimant.- Parameters:
- claimant- who is claiming this table
- namespace- namespace to claim
 
- 
claimedByreturn the name of the DIS or failover group that has claim on this table, or null if none.- Specified by:
- claimedByin interface- CollectedClaims
- Parameters:
- namespace- namespace of the table to be checked
- tableName- name of the table to be checked
- Returns:
- the name of the DIS or failover group that has claimed this table, null if no claim
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-