Examples of deleteProfile()


Examples of io.fabric8.api.ProfileManager.deleteProfile()

        // Verify access to original profile
        profileManager.getRequiredVersion("1.0").getRequiredProfile("prfA");
        profileManager.getRequiredVersion("1.1").getRequiredProfile("prfA");
       
        // Delete the profile/version that were added
        profileManager.deleteProfile(prfA10.getVersion(), prfA10.getId(), true);
        profileManager.deleteVersion(v11.getId());
    }
}
View Full Code Here

Examples of io.fabric8.api.ProfileService.deleteProfile()

        Container current = fabricService.get().getCurrentContainer();
        Version version = current.getVersion();
        String profileId = context.getConfiguration().get(TEMPLATE_PROFILE_PROPERTY_NAME) + "-" + name;
        if (version.hasProfile(profileId)) {
          String versionId = version.getId();
          profileService.deleteProfile(fabricService.get(), versionId, profileId, true);
        }
    }

    @Override
    public synchronized void stopAll() {
View Full Code Here

Examples of io.fabric8.api.ProfileService.deleteProfile()

      // [TODO] Revisit lock in ProfileTemplateWorker
        try {
            if (lock.acquire(60, TimeUnit.SECONDS)) {
                if (profileData.isEmpty()) {
                    if (version.hasProfile(profileId)) {
                        profileService.deleteProfile(fabricService.get(), versionId, profileId, true);
                    }
                    return;
                }
               
                Profile managedProfile;
View Full Code Here

Examples of io.fabric8.api.ProfileService.deleteProfile()

    @Override
    public void deleteProfile(String versionId, String profileId, boolean force) {
        Permit<ProfileService> permit = permitManager.get().aquirePermit(ProfileService.PERMIT, false);
        try {
            ProfileService service = permit.getInstance();
            service.deleteProfile(versionId, profileId, force);
        } finally {
            permit.release();
        }
    }
View Full Code Here

Examples of io.fabric8.api.ProfileService.deleteProfile()

            }
            if (profile != null) {
              String versionId = profile.getVersion();
                String profileId = profile.getId();
                if (force) {
                    profileService.deleteProfile(fabricService, versionId, profileId, force);
                } else {
          throw new IllegalStateException("Profile " + profileId + " already exists. Use --force to recreate the profiles.");
                }
            }
        }
View Full Code Here

Examples of io.fabric8.api.ProfileService.deleteProfile()

        boolean deleted = false;
        for (Profile profile : version.getProfiles()) {
            String versionId = profile.getVersion();
            String profileId = profile.getId();
            if (name.equals(profileId)) {
                profileService.deleteProfile(fabricService, versionId, profileId, force);
                deleted = true;
            }
        }

        if (!deleted) {
View Full Code Here

Examples of io.fabric8.api.ProfileService.deleteProfile()

    public void deleteProfile() {
        FabricService fabricService = getFabricService();
        Objects.notNull(fabricService, "fabricService");
        ProfileService profileService = getProfileService();
        Objects.notNull(profileService, "profileService");
        profileService.deleteProfile(fabricService, profile.getVersion(), profile.getId(), true);
    }


    /**
     * Returns the list of container ID links for this profile
View Full Code Here

Examples of org.adoptopenjdk.jitwatch.core.JITWatchConfig.deleteProfile()

    assertTrue(configNames.contains(JITWatchConstants.S_PROFILE_DEFAULT));
    assertTrue(configNames.contains(JITWatchConstants.S_PROFILE_SANDBOX));
   
    assertTrue(configNames.contains(customProfileName));
   
    config.deleteProfile(customProfileName);
   
    configNames = config.getProfileNames();

    assertEquals(2, configNames.size());
   
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.connector.Fabric8Facade.deleteProfile()

      assertNotNull("createProfile returns null when created profile", profile);
     
      ProfileDTO profile2 = fabric8.getProfile(version.getId(), "unitTestProfileIDE");
      assertNotNull("getProfile returns null for created profile", profile2);
     
      fabric8.deleteProfile(version.getId(), profile2.getId());
    } catch (IOException ex) {
      fail(ex.getMessage());
    } finally {
      con.disconnect();
    }
View Full Code Here

Examples of org.fusesource.ide.fabric8.core.connector.Fabric8Facade.deleteProfile()

      assertNotNull("createProfile returns null when created profile", profile);
     
      ProfileDTO profile2 = fabric8.getProfile(version.getId(), "unitTestProfileIDE");
      assertNotNull("getProfile returns null for created profile", profile2);
     
      fabric8.deleteProfile(version.getId(), profile2.getId());
     
      profile2 = fabric8.getProfile(version.getId(), "unitTestProfileIDE");
      assertNull("The profile hasn't been deleted from backstore", profile2);     
    } catch (IOException ex) {
      fail(ex.getMessage());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.