public class JmxAgentWebInterface
extends org.wso2.carbon.core.AbstractAdmin
| Constructor and Description |
|---|
JmxAgentWebInterface() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addProfile(Profile profile)
Adds a profile to be monitored
|
boolean |
addToolboxProfile()
Adds the profile for the toolbox
|
boolean |
deleteProfile(String profileName)
Deletes a monitoring profile
|
Profile[] |
getAllProfiles() |
String[][] |
getMBeanAttributeInfo(String mBean,
String url,
String userName,
String password) |
String[][] |
getMBeans(String url,
String userName,
String password) |
Profile |
getProfile(String profileName) |
void |
startMonitoringProfile(String profileName)
Start to monitor a profile
|
void |
stopMonitoringProfile(String profileName)
Stop monitoring of a profile
|
boolean |
testDataPublisherAvailability(String connectionType,
String url,
int port)
Test the availability of the DataPublisher by
trying to connect to it (credentials are not checked)
|
boolean |
updateProfile(Profile profile)
Updates a monitoring profile
|
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamppublic boolean addProfile(Profile profile) throws ProfileAlreadyExistsException, JmxProfileException
profile - The profile to be monitoredProfileAlreadyExistsExceptionJmxProfileExceptionpublic Profile getProfile(String profileName) throws ProfileDoesNotExistException, JmxProfileException
profileName - : The name of the profile that is neededProfileDoesNotExistExceptionJmxProfileExceptionpublic boolean updateProfile(Profile profile) throws ProfileDoesNotExistException, JmxProfileException
profile - The profile to be monitoredProfileDoesNotExistExceptionJmxProfileExceptionpublic boolean deleteProfile(String profileName) throws ProfileDoesNotExistException, JmxProfileException
profileName - The name of the profile to be deletedProfileDoesNotExistExceptionJmxProfileExceptionpublic void startMonitoringProfile(String profileName) throws ProfileDoesNotExistException, org.apache.axis2.AxisFault
profileName - Name of the profile to be monitoredProfileDoesNotExistExceptionorg.apache.axis2.AxisFaultpublic void stopMonitoringProfile(String profileName) throws ProfileDoesNotExistException
profileName - Name of the profile that should be withdrawn from being monitoredProfileDoesNotExistExceptionpublic Profile[] getAllProfiles() throws JmxProfileException
JmxProfileExceptionpublic String[][] getMBeans(String url, String userName, String password) throws IOException
url - : The URL for the JMX serveruserName - : The User name for the JMX serverpassword - : The password for the JMX serverIOExceptionpublic String[][] getMBeanAttributeInfo(String mBean, String url, String userName, String password) throws MalformedObjectNameException, IntrospectionException, InstanceNotFoundException, IOException, ReflectionException
mBean - : The name of the MBeanurl - : The URL for the JMX serveruserName - : The User name for the JMX serverpassword - : The password for the JMX serverMalformedObjectNameExceptionIntrospectionExceptionInstanceNotFoundExceptionIOExceptionReflectionExceptionpublic boolean testDataPublisherAvailability(String connectionType, String url, int port)
public boolean addToolboxProfile()
Copyright © 2015 WSO2. All rights reserved.