Package org.apache.synapse.message.processors.sampler

Examples of org.apache.synapse.message.processors.sampler.SamplingProcessorView


                if (processor instanceof ScheduledMessageForwardingProcessor) {
                    MessageForwardingProcessorView view =
                            ((ScheduledMessageForwardingProcessor) processor).getView();
                        active = view.isActive();
                } else if (processor instanceof SamplingProcessor) {
                      SamplingProcessorView view =
                            ((SamplingProcessor) processor).getView();
                        active = view.isActive();
                }

            }
        } catch (Exception e) {
            log.error("Error While accessing MessageProcessor view ");
View Full Code Here


                        view.activate();
                    } else {
                        log.warn("Scheduled Message Forwarding Processor is already active");
                    }
                } else if(processor instanceof SamplingProcessor) {
                     SamplingProcessorView view =
                            ((SamplingProcessor) processor).getView();
                    if (!view.isActive()) {
                        view.activate();
                    } else {
                        log.warn("Sampling Processor is already active");
                    }
                }
            }
View Full Code Here

                        view.deactivate();
                    } else {
                        log.warn("Scheduled Message Forwarding Processor - already deActive");
                    }
                } else if(processor instanceof SamplingProcessor) {
                    SamplingProcessorView view = ((SamplingProcessor)processor).getView();
                    if(view.isActive()) {
                        view.deactivate();
                    } else {
                        log.warn("Sampling Message Processor - already in the deactivated state");
                    }
                }
View Full Code Here

TOP

Related Classes of org.apache.synapse.message.processors.sampler.SamplingProcessorView

Copyright © 2018 www.massapicom. 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.