package com.neverwinterdp.module;

import java.util.Map;

import com.neverwinterdp.vm.environment.yarn.AsynYarnManager;
import com.neverwinterdp.vm.environment.yarn.SyncYarnManager;
import com.neverwinterdp.vm.environment.yarn.YarnManager;
import com.neverwinterdp.vm.service.VMServicePlugin;

@ModuleConfig(name = "VMServiceModule", autoInstall = false, autostart = false) 
public class VMServiceModule extends ServiceModule {
  final static public String NAME = "VMServiceModule" ;
  
  @Override
  protected void configure(Map<String, String> properties) {  
    try {
      String vmServicePlugin = properties.get("module.vm.vmservice.plugin");
      if(vmServicePlugin.indexOf("Yarn") >= 0) {
        bindType(YarnManager.class, SyncYarnManager.class);
        //bindType(YarnManager.class, AsynYarnManager.class);
      }
      bindType(VMServicePlugin.class, vmServicePlugin);
    } catch (ClassNotFoundException e) {
      e.printStackTrace();
    }
  }
}
@@ -695,24 +695,26 @@
 ) %7B%0A        
+//
 bindType(Yar
@@ -753,34 +753,32 @@
 class);%0A        
-//
 bindType(YarnMan

set async impl