use of org.apache.geode.management.ManagementException in project geode by apache.
the class SystemManagementService method init.
/**
* This method will initialize all the internal components for Management and Monitoring
*
* It will a)start an JMX connectorServer b) create a notification hub c)register the
* ManagementFunction
*/
private SystemManagementService init() {
try {
this.localManager = new LocalManager(repo, system, this, cache);
this.localManager.startManager();
this.listener = new ManagementMembershipListener(this);
system.getDistributionManager().addMembershipListener(listener);
isStarted = true;
return this;
} catch (CancelException e) {
// Rethrow all CancelExceptions (fix for defect 46339)
throw e;
} catch (Exception e) {
// Wrap all other exceptions as ManagementExceptions
logger.error(e.getMessage(), e);
throw new ManagementException(e);
}
}
Aggregations