package org.openspaces.grid.esm;

import org.openspaces.admin.machine.Machine;

public class NullElasticScaleHandler implements ElasticScaleHandler {

    public void init(ElasticScaleConfig config) {
    }

    public boolean accept(Machine machine) {
        return true;
    }
    
    public void scaleOut(ElasticScaleHandlerContext command) {
    }

    public void scaleIn(Machine machine) {
    }
}

@@ -29,16 +29,52 @@
 esm;%0D%0A%0D%0A
+import java.util.logging.Logger;%0D%0A%0D%0A
 import o
@@ -182,24 +182,117 @@
 andler %7B%0D%0A%0D%0A
+    private final static Logger logger = Logger.getLogger(%22org.openspaces.grid.esm%22);%0D%0A    %0D%0A
     public v
@@ -478,69 +478,257 @@
 t co
-mmand) %7B%0D%0A    %7D%0D%0A%0D%0A    public void scaleIn(Machine machine) %7B
+ntext) %7B%0D%0A        logger.info(%22Request to scale out - Needs a new machine%22);%0D%0A    %7D%0D%0A%0D%0A    public void scaleIn(Machine machine) %7B%0D%0A        logger.info(%22Request to scale in - No need for this machine %5B%22 + ToStringHelper.machineToString(machine)+%22%5D%22);
 %0D%0A  

Add logging