@@ -471,50 +471,6 @@ private String executePostUrlWithRetry(final String url, final String payload, f
471471 return jsonResult ;
472472 }
473473
474- /**
475- * Update the dynamic cluster size of the WLS cluster configuration.
476- *
477- * @param wlsClusterConfig The WlsClusterConfig object of the WLS cluster whose cluster size needs to be updated
478- * @param machineNamePrefix Prefix of names of new machines to be created
479- * @param targetClusterSize The target dynamic cluster size
480- * @return true if the request to update the cluster size is successful, false if it was not successful within the
481- * time period, or the cluster is not a dynamic cluster
482- */
483- public boolean updateDynamicClusterSize (final WlsClusterConfig wlsClusterConfig ,
484- final String machineNamePrefix ,
485- final int targetClusterSize ) {
486-
487- LOGGER .entering ();
488-
489- final long timeout = UPDATE_CONFIG_TIMEOUT_MILLIS ;
490-
491- String clusterName = wlsClusterConfig == null ? "null" : wlsClusterConfig .getClusterName ();
492-
493- if (wlsClusterConfig == null || !wlsClusterConfig .hasDynamicServers ()) {
494- LOGGER .warning (MessageKeys .WLS_UPDATE_CLUSTER_SIZE_INVALID_CLUSTER , clusterName );
495- return false ;
496- }
497-
498- ScheduledExecutorService executorService = ContainerResolver .getInstance ().getContainer ().getSPI (ScheduledExecutorService .class );
499- long startTime = System .currentTimeMillis ();
500- Future <Boolean > future = executorService .submit (() -> doUpdateDynamicClusterSize (wlsClusterConfig , machineNamePrefix , targetClusterSize ));
501- boolean result = false ;
502- try {
503- result = future .get (timeout , TimeUnit .MILLISECONDS );
504- if (result ) {
505- LOGGER .info (MessageKeys .WLS_CLUSTER_SIZE_UPDATED , clusterName , targetClusterSize , (System .currentTimeMillis () - startTime ));
506- } else {
507- LOGGER .warning (MessageKeys .WLS_UPDATE_CLUSTER_SIZE_FAILED , clusterName , null );
508- }
509- } catch (InterruptedException | ExecutionException e ) {
510- LOGGER .warning (MessageKeys .WLS_UPDATE_CLUSTER_SIZE_FAILED , clusterName , e );
511- } catch (TimeoutException e ) {
512- LOGGER .warning (MessageKeys .WLS_UPDATE_CLUSTER_SIZE_TIMED_OUT , clusterName , timeout );
513- }
514- LOGGER .exiting (result );
515- return result ;
516- }
517-
518474 /**
519475 * Method called by the Callable that is submitted from the updateDynamicClusterSize method for updating the
520476 * WLS dynamic cluster size configuration.
0 commit comments