Package org.jboss.profileservice.spi

Examples of org.jboss.profileservice.spi.ProfileKey


      if(subprofileAliases == null || subprofileAliases.isEmpty())
         return;
     
      for(ProfileMetaData metaData : subprofileAliases)
      {
         ProfileKey key = createProfileKey(metaData);
         createProfile(profiles, subProfileKeys, key, metaData);
      }
   }
View Full Code Here


      }
   }
  
   public static ProfileKey createProfileKey(ProfileKeyMetaData md)
   {
      return new ProfileKey(md.getDomain(), md.getServer(), md.getName());
   }
View Full Code Here

   public void registerProfile(Profile profile) throws Exception
   {
      if(profile == null)
         throw new IllegalArgumentException("Null profile.");
     
      ProfileKey key = profile.getKey();
      if(key == null)
         throw new IllegalArgumentException("Null profile key.");
      if(this.profiles.contains(key))
      {
         log.debug("Profile already registered: " + profile);
View Full Code Here

      // Expose the bootstrap ManagedDeployments
      initBootstrapMDs(server);

      // Load the profiles
      if(this.profileKey == null)
         this.profileKey = new ProfileKey(server.getConfig().getServerName());
     
      Map<String, Object> metaData = server.getMetaData();
      ProfileMetaData pmd = (ProfileMetaData) metaData.get(ProfileMetaData.class.getName());
      // Register the profiles
View Full Code Here

         VirtualFile vf = this.getVFforURI(uri);
         vdfList.add(vf);
      }
      if( profileKey == null )
      {
         profileKey = new ProfileKey("default");
      }
      scan();
   }
View Full Code Here

      return subProfiles;
   }
  
   protected ProfileKey createKey(ProfileKeyMetaData metaData)
   {
      return new ProfileKey(metaData.getDomain(), metaData.getServer(), metaData.getName());
   }  
View Full Code Here

     
      // Create the farm profile
      ProfileMetaData farm = null;
      if (getFarmURIs() != null)
      {
         ProfileKey farmKey = new ProfileKey(FARM_NAME);
         URI[] farmURIs = getFarmURIs().toArray(new URI[getFarmURIs().size()]);
         String[] farmSubProfiles = new String[] { applicationProfileName };
         farm = createClusteredProfileMetaData(
               FARM_NAME, true, farmURIs, farmSubProfiles);
         addProfile(farmKey, farm);        
      }
      // Create the hasingleton profile
      if (getHASingletonURIs() != null)
      {
         ProfileKey hasingletonKey = new ProfileKey(HASINGLETON_NAME);
         URI[] hasingletonURIs = getHASingletonURIs().toArray(new URI[getHASingletonURIs().size()]);
         // Note HASingleton can't depend on others or it will get undeployed
         // prematurely
         String[] hasingletonSubProfiles = new String[0];
         ProfileMetaData hasingletons = createProfileMetaData(
View Full Code Here

      String[] subprofileNames = new String[0];
     
      if (bindingsURI != null)
      {
         // Create bindings profile meta data
         ProfileKey bindingsKey = new ProfileKey(bindingsName);
         BasicProfileMetaData bindings = new FilteredProfileMetaData(
               null, null, bindingsName);
         bindings.setSource(createSource(new URI[]{ bindingsURI }, false));
         addProfile(bindingsKey, bindings);
         subprofileNames = new String[] { bindingsName };
      }
      // Create bootstrap profile meta data
      ProfileKey bootstrapKey = new ProfileKey(bootstrapName);
      ProfileMetaData bootstrap = createProfileMetaData(bootstrapName, false,
            new URI[] { bootstrapURI }, subprofileNames );
      addProfile(bootstrapKey, bootstrap);
     
      subprofileNames = createSubprofileNames(subprofileNames, bootstrapName);
     
      // Create deployers profile meta data
      ProfileKey deployersKey = new ProfileKey(deployersName);
      ProfileMetaData deployers = createProfileMetaData(
            deployersName, false, new URI[] { deployersURI }, subprofileNames);
      addProfile(deployersKey, deployers);
     
      subprofileNames = createSubprofileNames(subprofileNames, deployersName);
View Full Code Here

    * @param applicationsSubProfiles the dependencies for the application profile
    * @return the application profile name
    */
   protected String createApplicationProfile(String[] applicationsSubProfiles)
   {
      ProfileKey applicationsKey = new ProfileKey(applicationsName);
      URI[] applicationURIs = getApplicationURIs().toArray(new URI[getApplicationURIs().size()]);
      ProfileMetaData applications = createProfileMetaData(
            applicationsName, true, applicationURIs, applicationsSubProfiles);
      // Add to profile map
      addProfile(applicationsKey, applications);
View Full Code Here

      Context ctx = server.getNamingContext();
      profileService = (ProfileService) ctx.lookup("ProfileService");

      deploymentManager = profileService.getDeploymentManager();

      ProfileKey defaultKey = new ProfileKey(profileName);
      deploymentManager.loadProfile(defaultKey);
   }
View Full Code Here

TOP

Related Classes of org.jboss.profileservice.spi.ProfileKey

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.