Package io.fabric8.api

Examples of io.fabric8.api.Container.addProfiles()


                    ProfileBuilder builder = ProfileBuilder.Factory.create(versionId, profileId);
                    builder.setFileConfigurations(profileData.getFiles());
                    managedProfile = profileService.createProfile(builder.getProfile());
                }
               
                current.addProfiles(managedProfile);
            } else {
                throw new TimeoutException("Timed out waiting for lock");
            }
        } catch (Exception e) {
            LOGGER.error("Error managing work items.", e);
View Full Code Here


    }

    @Override
    public void addProfilesToContainer(String container, List<String> profiles) {
        Container cont = fabricService.getContainer(container);
        cont.addProfiles(stringsToProfiles(cont.getVersion(), profiles));
    }

    @Override
    public void removeProfilesFromContainer(String container, List<String> profileIds) {
        Container cont = fabricService.getContainer(container);
View Full Code Here

        FabricValidations.validateProfileNames(profiles);

        Container cont = FabricCommand.getContainer(fabricService, container);
        // we can add existing profiles
        Profile[] profs = FabricCommand.getExistingProfiles(fabricService, cont.getVersion(), this.profiles);
        cont.addProfiles(profs);
        return null;
    }

}
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.