public class ProfilesFabricService extends Object
| Constructor and Description |
|---|
ProfilesFabricService(String jolokiaUrl,
String user,
String password)
Instantiates a new profiles fabric service.
|
| Modifier and Type | Method and Description |
|---|---|
String |
createProfile(String profileFolder,
String profileName,
String version,
InputStream zipFile)
Creates the profile.
|
void |
deleteProfile(String version,
String profileId)
Delete profile.
|
protected void |
uploadProfilePropertiesFile(String versionId,
String profileId,
String path,
InputStream is)
Upload profile properties file.
|
public String createProfile(String profileFolder, String profileName, String version, InputStream zipFile) throws IOException, org.apache.commons.configuration.ConfigurationException, MalformedObjectNameException
profileFolder - the profile folderprofileName - the profile nameversion - the versionzipFile - the zip fileIOException - Signals that an I/O exception has occurred.org.apache.commons.configuration.ConfigurationException - the configuration exceptionMalformedObjectNameException - the malformed object name exceptionpublic void deleteProfile(String version, String profileId) throws MalformedObjectNameException
version - the versionprofileId - the profile idMalformedObjectNameException - the malformed object name exceptionprotected void uploadProfilePropertiesFile(String versionId, String profileId, String path, InputStream is) throws IOException, MalformedObjectNameException
versionId - the version idprofileId - the profile idpath - the pathis - the isIOException - Signals that an I/O exception has occurred.MalformedObjectNameException - the malformed object name exceptionCopyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.