integration-tests/src/test/java/oracle/kubernetes/operator/utils/Operator.java
public void scale(String domainUid, String clusterName, int numOfMS) throws Exception {
    String myJsonObjStr = "{\"managedServerCount\": " + numOfMS + "}";

    // Operator REST external API URL to scale
    StringBuffer myOpRestApiUrl =
        new StringBuffer("https://")
            .append(TestUtils.getHostName())
            .append(":")
            .append(externalRestHttpsPort)
            .append("/operator/v1/domains/")
            .append(domainUid)
            .append("/clusters/")
            .append(clusterName)
            .append("/scale");

    TestUtils.makeOperatorPostRestCall(this, myOpRestApiUrl.toString(), myJsonObjStr);
    // give sometime to complete
    LoggerHelper.getLocal().log(Level.INFO, "Wait 30 sec for scaling to complete...");
    Thread.sleep(30 * 1000);
  }
/**
   * scale the given cluster in a domain to the given number of servers using Operator REST API.
   *
   * @param domainUid   uid
   * @param clusterName cluster
   * @param numOfMS     num
   * @throws Exception exception
   */
scale the given cluster in a domain to the given number of servers using Operator REST API.
@param domainUid   uid
@param clusterName cluster
@param numOfMS     num
@throws Exception exception
scale the given cluster in a domain to the given number of servers using Operator REST API . @param domainUid uid @param clusterName cluster @param numOfMS num @throws Exception exception
public void scale(String domainUid, String clusterName, int numOfMS) throws Exception {
    String myJsonObjStr = "{\"managedServerCount\": " + numOfMS + "}";
    StringBuffer myOpRestApiUrl =
        new StringBuffer("https://")
            .append(TestUtils.getHostName())
            .append(":")
            .append(externalRestHttpsPort)
            .append("/operator/v1/domains/")
            .append(domainUid)
            .append("/clusters/")
            .append(clusterName)
            .append("/scale");
    TestUtils.makeOperatorPostRestCall(this, myOpRestApiUrl.toString(), myJsonObjStr);
    LoggerHelper.getLocal().log(Level.INFO, "Wait 30 sec for scaling to complete...");
    Thread.sleep(30 * 1000);
  }
public void scale ( String domainUid , String clusterName , int numOfMS ) throws Exception { String myJsonObjStr = "{\"managedServerCount\": " + numOfMS + "}" ; StringBuffer myOpRestApiUrl = new StringBuffer ( "https://" ) . append ( TestUtils . getHostName ( ) ) . append ( ":" ) . append ( externalRestHttpsPort ) . append ( "/operator/v1/domains/" ) . append ( domainUid ) . append ( "/clusters/" ) . append ( clusterName ) . append ( "/scale" ) ; TestUtils . makeOperatorPostRestCall ( this , myOpRestApiUrl . toString ( ) , myJsonObjStr ) ; LoggerHelper . getLocal ( ) . log ( Level . INFO , "Wait 30 sec for scaling to complete..." ) ; Thread . sleep ( 30 * 1000 ) ; }
scale the given cluster in a domain to the given number of servers using Operator REST API.
scale the given cluster in a domain to the given number of servers using Operator REST API .
// Operator REST external API URL to scale // give sometime to complete