operator/src/main/java/oracle/kubernetes/operator/helpers/DomainTopology.java
public static DomainTopology parseDomainTopologyYaml(String topologyYaml) {
    ObjectMapper mapper = new ObjectMapper(new YAMLFactory());

    try {
      DomainTopology domainTopology = mapper.readValue(topologyYaml, DomainTopology.class);

      LOGGER.fine(
          ReflectionToStringBuilder.toString(domainTopology, ToStringStyle.MULTI_LINE_STYLE));

      return domainTopology;

    } catch (Exception e) {
      LOGGER.warning(MessageKeys.CANNOT_PARSE_TOPOLOGY, e);
    }

    return null;
  }
/**
   * parse domain topology yaml.
   * @param topologyYaml topology yaml.
   * @return parsed object hierarchy
   */
parse domain topology yaml.
@param topologyYaml topology yaml.
@return parsed object hierarchy
parse domain topology yaml . @param topologyYaml topology yaml . @return parsed object hierarchy
public static DomainTopology parseDomainTopologyYaml(String topologyYaml) {
    ObjectMapper mapper = new ObjectMapper(new YAMLFactory());
    try {
      DomainTopology domainTopology = mapper.readValue(topologyYaml, DomainTopology.class);
      LOGGER.fine(
          ReflectionToStringBuilder.toString(domainTopology, ToStringStyle.MULTI_LINE_STYLE));
      return domainTopology;
    } catch (Exception e) {
      LOGGER.warning(MessageKeys.CANNOT_PARSE_TOPOLOGY, e);
    }
    return null;
  }
public static DomainTopology parseDomainTopologyYaml ( String topologyYaml ) { ObjectMapper mapper = new ObjectMapper ( new YAMLFactory ( ) ) ; try { DomainTopology domainTopology = mapper . readValue ( topologyYaml , DomainTopology . class ) ; LOGGER . fine ( ReflectionToStringBuilder . toString ( domainTopology , ToStringStyle . MULTI_LINE_STYLE ) ) ; return domainTopology ; } catch ( Exception e ) { LOGGER . warning ( MessageKeys . CANNOT_PARSE_TOPOLOGY , e ) ; } return null ; }
parse domain topology yaml.
parse domain topology yaml .