integration-tests/src/test/java/oracle/kubernetes/operator/utils/Domain.java
public void restartManagedServerUsingServerStartPolicy(String msName) throws Exception {
    LoggerHelper.getLocal().log(Level.INFO, "About to restart managed server <" + msName + "> ");
    String patchStr =
        "'{\"spec\":{\"managedServers\":[{\"serverName\":\""
            + msName
            + "\",\"serverStartPolicy\":\"IF_NEEDED\"}]}}'";
    TestUtils.kubectlpatch(domainUid, domainNS, patchStr);

    TestUtils.checkPodCreated(domainUid + "-" + msName, domainNS);
    TestUtils.checkPodReady(domainUid + "-" + msName, domainNS);
  }
/**
   * Restart a ms by setting serverStartPolicy to IF_NEEDED.
   *
   * @param msName - a managed server name to be started
   * @throws Exception If fails to restart the server
   */
Restart a ms by setting serverStartPolicy to IF_NEEDED.
@param msName - a managed server name to be started
@throws Exception If fails to restart the server
Restart a ms by setting serverStartPolicy to IF_NEEDED . @param msName - a managed server name to be started @throws Exception If fails to restart the server
public void restartManagedServerUsingServerStartPolicy(String msName) throws Exception {
    LoggerHelper.getLocal().log(Level.INFO, "About to restart managed server <" + msName + "> ");
    String patchStr =
        "'{\"spec\":{\"managedServers\":[{\"serverName\":\""
            + msName
            + "\",\"serverStartPolicy\":\"IF_NEEDED\"}]}}'";
    TestUtils.kubectlpatch(domainUid, domainNS, patchStr);
    TestUtils.checkPodCreated(domainUid + "-" + msName, domainNS);
    TestUtils.checkPodReady(domainUid + "-" + msName, domainNS);
  }
public void restartManagedServerUsingServerStartPolicy ( String msName ) throws Exception { LoggerHelper . getLocal ( ) . log ( Level . INFO , "About to restart managed server <" + msName + "> " ) ; String patchStr = "'{\"spec\":{\"managedServers\":[{\"serverName\":\"" + msName + "\",\"serverStartPolicy\":\"IF_NEEDED\"}]}}'" ; TestUtils . kubectlpatch ( domainUid , domainNS , patchStr ) ; TestUtils . checkPodCreated ( domainUid + "-" + msName , domainNS ) ; TestUtils . checkPodReady ( domainUid + "-" + msName , domainNS ) ; }
Restart a ms by setting serverStartPolicy to IF_NEEDED.
Restart a ms by setting serverStartPolicy to IF_NEEDED .