Package org.wso2.carbon.bam.data.publisher.activity.service

Examples of org.wso2.carbon.bam.data.publisher.activity.service.Counter.increment()


                            if (value instanceof Counter) {
                                ((Counter) value).increment();
                            }
                        } else {
                            Counter messageCounter = new Counter();
                            messageCounter.increment();
                            messageContext.getConfigurationContext()
                                    .setProperty(ActivityPublisherConstants.BAM_MESSAGE_COUNT, messageCounter);
                        }
                        PublisherUtils.getEventPayload(messageContext, messageContext.getConfigurationContext()
                                .getAxisConfiguration(), messageID, activityID, messageContext.getAxisService().getName(),
View Full Code Here


            if (value instanceof Counter) {
                ((Counter) value).increment();
            }
        } else {
            Counter messageCounter = new Counter();
            messageCounter.increment();
            messageContext.getConfigurationContext().setProperty(ActivityPublisherConstants.BAM_MESSAGE_DATA_COUNT,
                                                                 messageCounter);
        }

       PublisherUtils.getMessageDataEventPayload(messageContext, messageContext.getConfigurationContext()
View Full Code Here

                            if (value instanceof org.wso2.carbon.bam.data.publisher.activity.service.Counter) {
                                ((Counter) value).increment();
                            }
                        } else {
                            Counter xpathCounter = new Counter();
                            xpathCounter.increment();
                            messageContext.getConfigurationContext()
                                    .setProperty(ActivityPublisherConstants.BAM_XPATH_COUNT, xpathCounter);
                        }

                        XPathConfigData[] xpathExps = null;
View Full Code Here

                        if (value instanceof Counter) {
                            ((Counter) value).increment();
                        }
                    } else {
                        Counter messageCounter = new Counter();
                        messageCounter.increment();
                        messageContext.getConfigurationContext().setProperty(ActivityPublisherConstants.BAM_MESSAGE_COUNT,
                                messageCounter);
                    }
                    PublisherUtils.getEventPayload(messageContext, messageContext.getConfigurationContext()
                            .getAxisConfiguration(), outMessageID, activityID, messageContext.getAxisService().getName(),
View Full Code Here

            if (value instanceof Counter) {
                ((Counter) value).increment();
            }
        } else {
            Counter messageCounter = new Counter();
            messageCounter.increment();
            messageContext.getConfigurationContext().setProperty(ActivityPublisherConstants.BAM_MESSAGE_DATA_COUNT,
                                                                 messageCounter);
        }
       
        PublisherUtils.getMessageDataEventPayload(messageContext, messageContext.getConfigurationContext()
View Full Code Here

            log
                    .warn(ClientStatisticsPublisherConstants.BAM_USER_DEFINED_GLOBAL_FAULT_COUNTER_PROPERTY
                            + " is null");
        } else {
            if (globalFaultCounterObject instanceof Counter) {
                counter.increment(((Counter) globalFaultCounterObject).getCount());
            }
        }

        // Increment the service fault count
        if (service != null) {
View Full Code Here

                    .getConfigurationContext()
                    .getProperty(
                            ClientStatisticsPublisherConstants.BAM_USER_DEFINED_SERVICE_FAULT_COUNTER_PROPERTY);
            if (serviceFaultCountObj != null) {
                if (serviceFaultCountObj instanceof Counter) {
                    counter.increment(((Counter) serviceFaultCountObj).getCount());
                }
            } else {
                counter.increment();
                msgContext
                        .getConfigurationContext()
View Full Code Here

            if (serviceFaultCountObj != null) {
                if (serviceFaultCountObj instanceof Counter) {
                    counter.increment(((Counter) serviceFaultCountObj).getCount());
                }
            } else {
                counter.increment();
                msgContext
                        .getConfigurationContext()
                        .setProperty(
                                ClientStatisticsPublisherConstants.BAM_USER_DEFINED_SERVICE_FAULT_COUNTER_PROPERTY,
                                counter);
View Full Code Here

                    .getConfigurationContext()
                    .getProperty(
                            ClientStatisticsPublisherConstants.BAM_USER_DEFINED_OPERATION_FAULT_COUNTER_PROPERTY);
            if (operationFaultCountObject != null) {
                if (operationFaultCountObject instanceof Counter) {
                    counter.increment(((Counter) operationFaultCountObject).getCount());
                }
            } else {
                counter.increment();
                msgContext
                        .getConfigurationContext()
View Full Code Here

            if (operationFaultCountObject != null) {
                if (operationFaultCountObject instanceof Counter) {
                    counter.increment(((Counter) operationFaultCountObject).getCount());
                }
            } else {
                counter.increment();
                msgContext
                        .getConfigurationContext()
                        .setProperty(
                                ClientStatisticsPublisherConstants.BAM_USER_DEFINED_OPERATION_FAULT_COUNTER_PROPERTY,
                                counter);
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.