EndpointSnitchInfoMBean (apache-cassandra API)
Date: 2014-10-21

org.apache.cassandra.locator

## Interface EndpointSnitchInfoMBean

- All Known Implementing Classes:
    EndpointSnitchInfo

      public interface EndpointSnitchInfoMBean

  MBean exposing standard Snitch info

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getDatacenter(java.lang.String host)` Provides the Datacenter name depending on the respective snitch used, given the hostname/ip
    `java.lang.String` | `getRack(java.lang.String host)` Provides the Rack name depending on the respective snitch used, given the host name/ip
    `java.lang.String` | `getSnitchName()` Provides the snitch name of the cluster

- - ### Method Detail

    - #### getRack

          java.lang.String getRack(java.lang.String host)
                                   throws java.net.UnknownHostException

      Provides the Rack name depending on the respective snitch used, given the host name/ip
      Parameters:
        `host` -
      Throws:
        `java.net.UnknownHostException`

    - #### getDatacenter

          java.lang.String getDatacenter(java.lang.String host)
                                         throws java.net.UnknownHostException

      Provides the Datacenter name depending on the respective snitch used, given the hostname/ip
      Parameters:
        `host` -
      Throws:
        `java.net.UnknownHostException`

    - #### getSnitchName

          java.lang.String getSnitchName()

      Provides the snitch name of the cluster
      Returns:
        Snitch name

Copyright © 2014 The Apache Software Foundation