public void initWithBladesFromIPList(string[] bladeIPs, bool useMockedManager, NASFaultInjectionPolicy faultInjection) { if (useMockedManager) { hostStateManagerMocked newMgr = new hostStateManagerMocked(); newMgr.setMockedNASFaultInjectionPolicy(faultInjection); services.hostStateManager = newMgr; } else { services.hostStateManager = new hostStateManager(); } services.hostStateManager.initWithBlades(bladeIPs); }
public void initWithBladesFromBladeSpec(bladeSpec[] spec, bool useMockedManager, NASFaultInjectionPolicy faultInjection) { if (useMockedManager) { hostStateManagerMocked newMgr = new hostStateManagerMocked(); newMgr.setMockedNASFaultInjectionPolicy(faultInjection); services.hostStateManager = newMgr; } else { services.hostStateManager = new hostStateManager(); } services.hostStateManager.initWithBlades(spec); }