예제 #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);
        }
예제 #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);
        }