Package org.apache.synapse.mediators.base

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


                getSynapseConfiguration().removeSequence(existingArtifactName);
                if (!existingArtifactName.equals(seq.getName())) {
                    log.info("Sequence named '" + existingArtifactName + "' has been Undeployed");
                }
                getSynapseConfiguration().addSequence(seq.getName(), seq);
                existingSeq.destroy();
                if (log.isDebugEnabled()) {
                    log.debug("Sequence " + (existingArtifactName.equals(seq.getName()) ?
                            "update" : "deployment") + " from file : " + fileName + " : Completed");
                }
                log.info("Sequence named '" + seq.getName()
View Full Code Here


                }
                getSynapseConfiguration().removeSequence(artifactName);
                if (log.isDebugEnabled()) {
                    log.debug("Destroying the sequence named : " + artifactName);
                }
                seq.destroy();
                if (log.isDebugEnabled()) {
                    log.debug("Sequence Undeployment of the sequence named : "
                            + artifactName + " : Completed");
                }
                log.info("Sequence named '" + seq.getName() + "' has been undeployed");
View Full Code Here

            }

            log.info("Sequence: " + seq.getName() + " has been updated from the file: " + fileName);

            waitForCompletion(); // Give some time for worker threads to release the old sequence
            existingSeq.destroy();
            return seq.getName();

        } catch (DeploymentException e) {
            handleSynapseArtifactDeploymentError("Error while updating the sequence from the " +
                    "file: " + fileName);
View Full Code Here

                }
                getSynapseConfiguration().removeSequence(artifactName);
                if (log.isDebugEnabled()) {
                    log.debug("Destroying the sequence named : " + artifactName);
                }
                seq.destroy();
                if (log.isDebugEnabled()) {
                    log.debug("Sequence Undeployment of the sequence named : "
                            + artifactName + " : Completed");
                }
                log.info("Sequence named '" + seq.getName() + "' has been undeployed");
View Full Code Here

            SequenceMediator synSeqForRoute;
            if (routingTarget != null) {
                synSeqForRoute = routingTarget.getSequence();
                //destroy and clean up each inline seq
                if (synSeqForRoute != null) {
                    synSeqForRoute.destroy();
                }
            }
        }

    }
View Full Code Here

    public void destroy() {
        Iterator<Target> iter = targets.iterator();
        while (iter.hasNext()) {
            SequenceMediator seq = iter.next().getSequence();
            if (seq != null) {
                seq.destroy();
            }
        }
    }

}
View Full Code Here

    public void destroy() {
       
        for (Target target : targets) {
            SequenceMediator seq = target.getSequence();
            if (seq != null) {
                seq.destroy();
            }
        }
    }

}
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.