public static DbEndpoint fromJson(JSONObject entry) throws JSONException {
      String url = entry.getString(URL_STR);
      String datacenter = entry.getString(DATACENTER_STR);
      boolean isWriteable = entry.getBoolean(ISWRITEABLE_STR);
      String username = entry.getString(USERNAME_STR);
      String password = entry.getString(PASSWORD_STR);
      return new DbEndpoint(url, datacenter, isWriteable, username, password);
    }
Stores information of a mysql db endpoint
ambry-mysql/src/main/java/com/github/ambry/mysql/MySqlUtils.java