Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }