Search in sources :

Example 1 with StatAlertsAggregator

use of org.apache.geode.admin.jmx.internal.StatAlertsAggregator in project geode by apache.

the class AlertsNotificationMessage method process.

@Override
protected void process(DistributionManager dm) {
    // TODO add code to invoke process notification of agrregator
    // TODO: need to check whether it's a valid implimentation
    AdminDistributedSystemImpl ds = AdminDistributedSystemImpl.getConnectedInstance();
    if (ds instanceof StatAlertsAggregator) {
        StatAlertsAggregator aggregator = (StatAlertsAggregator) ds;
        RemoteGemFireVM remoteVM = dm.getAgent().getMemberById(getSender());
        aggregator.processNotifications(this._alerts, remoteVM);
    }
}
Also used : AdminDistributedSystemImpl(org.apache.geode.admin.internal.AdminDistributedSystemImpl) StatAlertsAggregator(org.apache.geode.admin.jmx.internal.StatAlertsAggregator)

Aggregations

AdminDistributedSystemImpl (org.apache.geode.admin.internal.AdminDistributedSystemImpl)1 StatAlertsAggregator (org.apache.geode.admin.jmx.internal.StatAlertsAggregator)1