Package org.jboss.profileservice.spi

Examples of org.jboss.profileservice.spi.Profile


    */
   public String[] listDeployedURLs() {
      final Collection<String> names = new HashSet<String>();
      for(final ProfileKey key : actionController.getActiveProfiles()) {
        final ManagedProfile managed = actionController.getManagedProfile(key);
        final Profile profile = managed.getProfile();
        final Set<String> deploymentNames = profile.getDeploymentNames();
        if(deploymentNames != null && deploymentNames.isEmpty() == false) {
          names.addAll(deploymentNames)
        }
      }
      return names.toArray(new String[names.size()]);
View Full Code Here


      for(ProfileKey key : this.ps.getActiveProfileKeys())
      {
         try
         {
            // Get the active profile
            Profile profile = this.ps.getActiveProfile(key);
            // Get the deployments
            Collection<ProfileDeployment> deployments = profile.getDeployments();
            // Add the lastModified cache
            this.lastModified.put(key, profile.getLastModified());
            // Process the deployments
            for(ProfileDeployment deployment : deployments)
            {
               try
               {
View Full Code Here

         if(this.lastModified.containsKey(key) == false)
            return true;

         try
         {
            Profile profile = this.ps.getActiveProfile(key);
            long lastModified = this.lastModified.get(key);
            if(profile.getLastModified() > lastModified)
               return true;
         }
         catch(Exception ignore) { /** . */ }
      }
      return false;
View Full Code Here

      return this.ps.getActiveProfile(key);
   }

   private ProfileDeployment getProfileDeployment(String name) throws Exception
   {
      Profile profile = getProfileForDeployment(name);
      return profile.getDeployment(name);
   }
View Full Code Here

      }
     
      //
      log.debug("remove component: " + comp + ", deployment: "+ profileDeployment);
      // Remove
      Profile profile = getProfileForDeployment(md.getName());
      this.store.removeComponent(comp.getDeployment().getName(), serverComp);     
      this.profileViews.put(profile.getKey(), createProfileView(profile));
   }
View Full Code Here

            dispatcher.set(componentName, ctxProp.getName(), metaValue);
         }
      }
  
      // Persist the changed values
      Profile profile = getProfileForDeployment(md.getName());
      this.store.updateDeployment(comp.getDeployment().getName(), serverComp);
      this.profileViews.put(profile.getKey(), createProfileView(profile));
   }
View Full Code Here

   {
      boolean wasModified = false;
      try
      {
         // The active profile
         Profile profile = ps.getActiveProfile(key);
         AbstractProfileView view = this.profileViews.get(profile.getKey());
        
         // Check if we need to reload the profile
         wasModified = forceReload
            || view == null
            || view.hasBeenModified(profile);
View Full Code Here

      return wasModified;
   }

   protected AbstractProfileView createProfileView(ProfileKey key) throws NoSuchProfileException
   {
      Profile profile = this.ps.getActiveProfile(key);
      return createProfileView(profile);
   }
View Full Code Here

      return this.ps.getActiveProfile(key);
   }
  
   private ProfileDeployment getProfileDeployment(String name) throws Exception
   {
      Profile profile = getProfileForDeployment(name);
      return profile.getDeployment(name);
   }
View Full Code Here

   {
      if(this.ps == null)
         throw new IllegalStateException("Null profile service.");
     
      // Create the transient deployment profile
      Profile profile = createTransientProfile();
      // Register
      this.ps.registerProfile(profile);
      // Activate
      {
         log.debug("activating transient profile " + TRANSIENT_PROFILE_NAME);
View Full Code Here

TOP

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

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.