TokenMetadata.Topology (apache-cassandra API)
Date: 2018-02-12

org.apache.cassandra.locator

## Class TokenMetadata.Topology

- java.lang.Object
- - org.apache.cassandra.locator.TokenMetadata.Topology

- Enclosing class:
    TokenMetadata

      public static class TokenMetadata.Topology
      extends java.lang.Object

  Tracks the assignment of racks and endpoints in each datacenter for all the "normal" endpoints in this TokenMetadata. This allows faster calculation of endpoints in NetworkTopologyStrategy.

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `com.google.common.collect.Multimap<java.lang.String,java.net.InetAddress>` | `getDatacenterEndpoints()`
    `java.util.Map<java.lang.String,com.google.common.collect.Multimap<java.lang.String,java.net.InetAddress>>` | `getDatacenterRacks()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getDatacenterEndpoints

          public com.google.common.collect.Multimap<java.lang.String,java.net.InetAddress> getDatacenterEndpoints()

      Returns:
        multi-map of DC to endpoints in that DC

    - #### getDatacenterRacks

          public java.util.Map<java.lang.String,com.google.common.collect.Multimap<java.lang.String,java.net.InetAddress>> getDatacenterRacks()

      Returns:
        map of DC to multi-map of rack to endpoints in that rack

Copyright © 2018 The Apache Software Foundation