Examples of MonitoredServerServiceInfoAdmin


Examples of org.wso2.carbon.bam.core.admin.MonitoredServerServiceInfoAdmin

                    }

                    if (state && !(backoffcounter.shouldBackoff(server))&& isServerUp) {

                        DataPuller  svrDataPuller = DataPullerFactory.getDataPuller(server, DataPullerFactory.SERVER_STATISTICS_PULLER);
                        MonitoredServerServiceInfoAdmin serviceInfoAdmin = new MonitoredServerServiceInfoAdmin();
                        String[] serviceNames = serviceInfoAdmin.getServiceNames(server);
                        ServerStatisticsDO svrStatisticsDO = (ServerStatisticsDO) svrDataPuller.pullData(server);
                        statisticsAdmin.addServerStatistics(svrStatisticsDO);

                        if (serviceNames != null && serviceNames.length > 0) {

                            DataPuller dataPuller = DataPullerFactory.getDataPuller(server,DataPullerFactory.SERVICE_STATISTICS_PULLER);
                            for (String serviceName : serviceNames) {
                                ServiceStatisticsDO svcStatisticsDO = (ServiceStatisticsDO) dataPuller.pullData(serviceName);
                                if (svcStatisticsDO != null) {
                                    statisticsAdmin.addServiceStatistics(svcStatisticsDO);
                                }

                                ServiceDO svc = persistenceManager.getService(server.getId(), serviceName);
                                String[] operationNames = serviceInfoAdmin.getOperationNames(server, serviceName);

                                if (operationNames != null && operationNames.length > 0) {
                                    DataPuller opDataPuller = DataPullerFactory.getDataPuller(server,
                                            DataPullerFactory.OPERTION_STATISTICS_PULLER);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.