public class ProfileManager extends Object
| Constructor and Description |
|---|
ProfileManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addProfile(Profile profile)
Used to add a new JMX monitoring profile.
|
Profile |
createToolboxProfile()
Creates the profile for the toolbox
|
boolean |
deleteProfile(String profileName) |
Profile[] |
getAllProfiles()
Returns an array of all the profiles regardless of their state
|
static int |
getPortOffset() |
Profile |
getProfile(String profileName) |
boolean |
updateProfile(Profile profile) |
public boolean addProfile(Profile profile) throws ProfileAlreadyExistsException, JmxProfileException
profile - The profile that needs to be addedProfileAlreadyExistsExceptionJmxProfileExceptionpublic Profile getProfile(String profileName) throws ProfileDoesNotExistException, JmxProfileException
public boolean updateProfile(Profile profile) throws ProfileDoesNotExistException, JmxProfileException
public boolean deleteProfile(String profileName) throws ProfileDoesNotExistException, JmxProfileException
public Profile[] getAllProfiles() throws JmxProfileException
JmxProfileExceptionpublic Profile createToolboxProfile() throws ProfileAlreadyExistsException, JmxProfileException
ProfileAlreadyExistsExceptionJmxProfileExceptionpublic static int getPortOffset()
Copyright © 2015 WSO2. All rights reserved.