public void destroy() { if (endpoint != null) { endpoint.destroy(); } }
public void destroy() { if (endpoint != null) { endpoint.destroy(); } }
public void destroy() { if (!isWrappingEndpointCreated) { endpoint.destroy(); } try { blockingMsgSender.cleanup(); } catch (AxisFault ignore) {} }
public void destroy() { if (endpoint != null) { endpoint.destroy(); } if (!blocking) { synapseEnv.updateCallMediatorCount(false); } }
@Override public void undeploySynapseArtifact(String artifactName) { if (log.isDebugEnabled()) { log.debug("Endpoint Undeployment of the endpoint named : " + artifactName + " : Started"); } try { Endpoint ep = getSynapseConfiguration().getDefinedEndpoints().get(artifactName); if (ep != null) { getSynapseConfiguration().removeEndpoint(artifactName); if (log.isDebugEnabled()) { log.debug("Destroying the endpoint named : " + artifactName); } ep.destroy(); if (log.isDebugEnabled()) { log.debug("Endpoint Undeployment of the endpoint named : " + artifactName + " : Completed"); } log.info("Endpoint named '" + ep.getName() + "' has been undeployed"); } else if (log.isDebugEnabled()) { log.debug("Endpoint " + artifactName + " has already been undeployed"); } } catch (Exception e) { handleSynapseArtifactDeploymentError("Endpoint Undeployement of endpoint named : " + artifactName + " : Failed", e); } }
public void destroy() { for (Target target : targets) { ManagedLifecycle seq = target.getSequence(); if (seq != null) { seq.destroy(); } Endpoint endpoint = target.getEndpoint(); if (endpoint != null) { endpoint.destroy(); } } } }
@Override public void undeploySynapseArtifact(String artifactName) { if (log.isDebugEnabled()) { log.debug("Endpoint Undeployment of the endpoint named : " + artifactName + " : Started"); } try { Endpoint ep = getSynapseConfiguration().getDefinedEndpoints().get(artifactName); if (ep != null) { CustomLogSetter.getInstance().setLogAppender((ep != null) ? ep.getArtifactContainerName() : ""); getSynapseConfiguration().removeEndpoint(artifactName); if (log.isDebugEnabled()) { log.debug("Destroying the endpoint named : " + artifactName); } ep.destroy(); if (log.isDebugEnabled()) { log.debug("Endpoint Undeployment of the endpoint named : " + artifactName + " : Completed"); } log.info("Endpoint named '" + ep.getName() + "' has been undeployed"); } else if (log.isDebugEnabled()) { log.debug("Endpoint " + artifactName + " has already been undeployed"); } } catch (Exception e) { handleSynapseArtifactDeploymentError("Endpoint Undeployement of endpoint named : " + artifactName + " : Failed", e); } }
currentEp.destroy();
currentEp.destroy();
public void destroy() { if (target != null) { Endpoint endpoint = target.getEndpoint(); if (endpoint != null && endpoint.isInitialized()) { endpoint.destroy(); } ManagedLifecycle seq = target.getSequence(); if (seq != null) { seq.destroy(); } } } }
public void onFault(MessageContext synCtx) { //cleanup endpoint if exists if(currentEp != null){ currentEp.destroy(); } if (currentMember == null) { return; } Stack faultStack = synCtx.getFaultStack(); if (!faultStack.empty()) { faultStack.pop(); // Remove the LoadbalanceFaultHandler } currentMember = lbMembershipHandler.getNextApplicationMember(algorithmContext); if(currentMember == null){ String msg = "No application members available"; log.error(msg); throw new SynapseException(msg); } synCtx.setTo(to); if(isSessionAffinityBasedLB()){ //We are sending the this message on a new session, // hence we need to remove previous session information Set pros = synCtx.getPropertyKeySet(); if (pros != null) { pros.remove(SynapseConstants.PROP_SAL_CURRENT_SESSION_INFORMATION); } } sendToApplicationMember(synCtx, currentMember, this, true); }
public void onFault(MessageContext synCtx) { logSetter(); //cleanup endpoint if exists if(currentEp != null){ currentEp.destroy(); } if (currentMember == null) { return; } Stack faultStack = synCtx.getFaultStack(); if (faultStack != null && !faultStack.isEmpty()) { faultStack.pop(); // Remove the LoadbalanceFaultHandler } currentMember = lbMembershipHandler.getNextApplicationMember(algorithmContext); if(currentMember == null){ String msg = "No application members available"; log.error(msg); throw new SynapseException(msg); } synCtx.setTo(to); if(isSessionAffinityBasedLB()){ //We are sending the this message on a new session, // hence we need to remove previous session information Set pros = synCtx.getPropertyKeySet(); if (pros != null) { pros.remove(SynapseConstants.PROP_SAL_CURRENT_SESSION_INFORMATION); } } sendToApplicationMember(synCtx, currentMember, this, true); }
existingEp.destroy(); if (existingArtifactName.equals(ep.getName())) {
endpoint.destroy();
existingEp.destroy(); if (existingArtifactName.equals(ep.getName())) {
endpoint.destroy();
public void destroy() { for (Target target : targets) { ManagedLifecycle seq = target.getSequence(); if (seq != null) { seq.destroy(); } else if (target.getSequenceRef() != null) { SequenceMediator targetSequence = (SequenceMediator) synapseEnv.getSynapseConfiguration(). getSequence(target.getSequenceRef()); if (targetSequence == null || targetSequence.isDynamic()) { synapseEnv.removeUnavailableArtifactRef(target.getSequenceRef()); } } Endpoint endpoint = target.getEndpoint(); if (endpoint != null) { endpoint.destroy(); } } }
public void destroy() { if (target != null) { Endpoint endpoint = target.getEndpoint(); if (endpoint != null && endpoint.isInitialized()) { endpoint.destroy(); } ManagedLifecycle seq = target.getSequence(); if (seq != null) { seq.destroy(); } else if (target.getSequenceRef() != null) { SequenceMediator targetSequence = (SequenceMediator) synapseEnv.getSynapseConfiguration(). getSequence(target.getSequenceRef()); if (targetSequence == null || targetSequence.isDynamic()) { synapseEnv.removeUnavailableArtifactRef(target.getSequenceRef()); } } } }
((SequenceMediator) expiredValue).destroy(); } else if (expiredValue instanceof Endpoint) { ((Endpoint) expiredValue).destroy();