Examples of enableStatistics()


Examples of org.apache.synapse.aspects.AspectConfiguration.enableStatistics()

            lock.lock();
            ProxyService proxy = getSynapseConfiguration().getProxyService(proxyName);
            if (proxy != null) {
                if (proxy.getAspectConfiguration() == null) {
                    AspectConfiguration config = new AspectConfiguration(proxyName);
                    config.enableStatistics();
                    proxy.configure(config);
                } else {
                    proxy.getAspectConfiguration().enableStatistics();
                }
                persistProxyService(proxy);
View Full Code Here

Examples of org.apache.synapse.aspects.AspectConfiguration.enableStatistics()

            if (opName != null) {
                if (oldConfiguration.isStatisticsEnable()) {
                    AspectConfiguration newConfiguration = new AspectConfiguration(
                            oldConfiguration.getId() + SynapseConstants.STATISTICS_KEY_SEPARATOR +
                                    opName);
                    newConfiguration.enableStatistics();
                    StatisticsReporter.reportForComponent(synCtx, newConfiguration,
                            ComponentType.ENDPOINT);
                }
            } else {
                StatisticsReporter.reportForComponent(synCtx, oldConfiguration,
View Full Code Here

Examples of org.apache.synapse.mediators.base.SequenceMediator.enableStatistics()

        try {
            lock.lock();
            SequenceMediator sequence
                    = (SequenceMediator) getSynapseConfiguration().getSequence(sequenceName);
            if (sequence != null) {
                sequence.enableStatistics();
                persistSequence(sequence);
                return sequenceName;
            } else {
                handleException("No defined sequence with name " + sequenceName
                        + " found to enable statistics in the Synapse configuration");
View Full Code Here

Examples of org.apache.synapse.mediators.template.TemplateMediator.enableStatistics()

        try {
            lock.lock();
            TemplateMediator template;
            template = (TemplateMediator) getSynapseConfiguration().getSequenceTemplate(templateName);
            if (template != null) {
                template.enableStatistics();
                persistTemplate(template);
                return templateName;
            } else {
                handleException("No defined template with name " + templateName
                                + " found to enable statistics in the Synapse configuration");
View Full Code Here

Examples of org.wso2.carbon.sequences.stub.types.SequenceAdminServiceStub.enableStatistics()

            // add new sequence
            sequenceAdminServiceStub.addSequence(omElement);
            int after = sequenceAdminServiceStub.getSequencesCount();
            assertEquals(1, after - before);
            assertNotNull(sequenceAdminServiceStub.getSequence(SEQUENCE_NAME));
            assertEquals(SEQUENCE_NAME, sequenceAdminServiceStub.enableStatistics(SEQUENCE_NAME));
            assertEquals(SEQUENCE_NAME, sequenceAdminServiceStub.enableTracing(SEQUENCE_NAME));

            sequenceAdminServiceStub.deleteSequence(SEQUENCE_NAME);
            after = sequenceAdminServiceStub.getSequencesCount();
            assertEquals(before, after);
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.