Package com.vmware.bdd.software.mgmt.plugin.intf

Examples of com.vmware.bdd.software.mgmt.plugin.intf.SoftwareManager


         clusterRead.setExternalMapReduce(advancedProperties
               .get("ExternalMapReduce"));
         clusterRead.setLocalRepoURL(advancedProperties.get("LocalRepoURL"));
      }

      SoftwareManager softMgr = null;
      try {
         softMgr =
               softwareManagerCollector.getSoftwareManager(cluster
                     .getAppManager());
      } catch (Exception e) {
         logger.error("Failed to get softwareManger.");
         // do not throw exception for exporting cluster info
      }

      List<NodeGroupRead> groupList = new ArrayList<NodeGroupRead>();
      for (NodeGroupEntity group : cluster.getNodeGroups()) {
         NodeGroupRead groupRead = group.toNodeGroupRead(ignoreObsoleteNode);
         groupRead.setComputeOnly(false);
         try {
            groupRead.setComputeOnly(softMgr.isComputeOnlyRoles(groupRead
                  .getRoles()));
         } catch (Exception e) {
         }
         groupList.add(groupRead);
      }
View Full Code Here


      ClusterEntity fooClusterEntity = new ClusterEntity("fooCluster");
      fooClusterEntity.setAppManager(defaultAppManagerAdd.getName());

      Mockito.when(clusterEntityManager.findByName(Matchers.anyString())).thenReturn(fooClusterEntity);

      SoftwareManager defaultSWMgr = softwareManagerCollector.getSoftwareManagerByClusterName("fooCluster");

      Assert.assertEquals(Constants.IRONFAN, defaultSWMgr.getName());
      Assert.assertEquals(Constants.IRONFAN, defaultSWMgr.getType());
   }
View Full Code Here

      Configuration.setString(SoftwareManagerCollector.configurationPrefix + appManagerEntityFoo.getType(), "com.vmware.bdd.manager.mocks.FooSWMgrFactory");
      softwareManagerCollector.setPrivateKey("mock-key");

      softwareManagerCollector.loadSoftwareManagers();

      SoftwareManager appManagerRead = softwareManagerCollector.getSoftwareManager(appManagerEntityFoo.getName());

      Assert.assertEquals(appManagerAddFoo.getName(), appManagerRead.getName());
      Assert.assertEquals(appManagerAddFoo.getType(), appManagerRead.getType());


      softwareManagerCollector.deleteSoftwareManager(appManagerAddFoo.getName());

      softwareManagerCollector.getSoftwareManager(appManagerEntityFoo.getName());
View Full Code Here

TOP

Related Classes of com.vmware.bdd.software.mgmt.plugin.intf.SoftwareManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.