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