Sets the destination that could not be delivered to. Looks up the destination
given its name.

@param destinationName - The destination to set
187364
@Override
    public void setDestination(SIDestinationAddress destinationAddr)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(tc, "setDestination", destinationAddr);

        if (destinationAddr != null)
        {
            try
            {
                _originalDestination = _messageProcessor.getDestinationManager().getDestination((JsDestinationAddress) destinationAddr, true);
            } catch (SIException e)
            {
                // No FFDC code needed

                /* Generate warning but retry with default exception destination */
                SibTr.warning(tc, "EXCEPTION_DESTINATION_WARNING_CWSIP0291",
                              new Object[] { destinationAddr.getDestinationName(), _messageProcessor.getMessagingEngineName(), e });

                // Create a handler to the default if provided destination is inaccessible
                _originalDestination = null;
            }
        }
        else
            _originalDestination = null;

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "setDestination", _originalDestination);
    }
445457
public boolean destinationExists(String destinationName)
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.entry(tc, "destinationExists", destinationName);

    boolean returnVal = false;
    
    try
    {
      returnVal = 
        destinationManager.destinationExists(destinationName, 
                                             messageProcessor.getMessagingEngineBus());
    }
    catch (SIMPNullParameterException e)
    {
      // No FFDC code needed
    }
     
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.exit(tc, "destinationExists", new Boolean(returnVal));
      
    return returnVal;
  }
11024
public Bus<M> addDestination(Destination<M> destination) {
		if(destination != null) {
			logger.info("adding destination '{}' of class '{}'", destination.getId(), destination.getClass().getSimpleName());
			destinations.add(destination);
		}
		return this;
	}
502774
@Override
    public void setSubscriptionName(final String subscriptionName) {
        if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) {
            SibTr.debug(this, TRACE, "setSubscriptionName", subscriptionName);
        }
        _subscriptionName = subscriptionName;
    }
550251
public void setDeliveryChannelNames(java.util.Collection<String> deliveryChannelNames) {
        if (deliveryChannelNames == null) {
            this.deliveryChannelNames = null;
            return;
        }

        this.deliveryChannelNames = new com.amazonaws.internal.SdkInternalList<String>(deliveryChannelNames);
    }
788147
public void setName(String name) {
        mName = name;
        if (mSceneObject != null) {
            mSceneObject.setName(name);
        }
    }
529667
@Override
	public void setName(String name) {
		if (name == null) {
			super.setName(getFirstFreeBusLineName(getContainer()));
		} else {
			super.setName(name);
		}
	}
947529
function(source, destination, failIfExists) {
    this.source = source;
    this.destination = destination;
    this.failIfExists = failIfExists ? failIfExists : false;
}
1080600
def find_destination(destination_name)
      destination = @destinations[destination_name]
      if destination.nil?
        raise MessageDriver::NoSuchDestinationError, "no destination #{destination_name} has been configured"
      end
      destination
    end
1231341
public void setDestinationFilter(SIBUuid12 destination)
  {
    if (tc.isEntryEnabled())
      SibTr.entry(tc, "setDestinationFilter", destination);

    this._destination = destination;
    this._subscriptionId = null;
    this._consumerDispatcherState = null;
    
    if (tc.isEntryEnabled())
      SibTr.exit(tc, "setDestinationFilter");
  }
423204
public void setDeliveryStreamNames(java.util.Collection<String> deliveryStreamNames) {
        if (deliveryStreamNames == null) {
            this.deliveryStreamNames = null;
            return;
        }

        this.deliveryStreamNames = new java.util.ArrayList<String>(deliveryStreamNames);
    }
480655
@Override
    public synchronized void setCorrupt(boolean newCorrupt)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(tc, "setCorrupt", Boolean.valueOf(newCorrupt));

        boolean oldCorrupt = _isCorruptOrIndoubt;
        _isCorruptOrIndoubt = newCorrupt;

        // PK54812 We need to pass this through to the destination manager to
        // actually change the state of the destination.
        if (newCorrupt && !oldCorrupt)
        {
            destinationManager.corruptDestination(this);

            // Log a message with details of the destination that is corrupt
            SibTr.info(tc_cwsik, "DELIVERY_ERROR_SIRC_27",
                       new Object[] { getName() + " " + getUuid().toString() });
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "setCorrupt");
    }
993004
public void stop(String destName) throws MessagingException {
        try {
            // Look for an existing destination for the given destination
            //
            JMSDestination jmsDest =
                    jmsDestinations.get(destName);
            if (jmsDest != null) {
                // Close out all JMS related state
                //
                if (jmsDest.producer != null) {
                    jmsDest.producer.close();
                    logger.debug("Closed producer for " + destName);
                }
                if (jmsDest.consumer != null) {
                    jmsDest.consumer.close();
                    logger.debug("Closed consumer for " + destName);
                }
                if (jmsDest.session != null) {
                    jmsDest.session.close();
                    logger.debug("Closed session for " + destName);
                }

                jmsDest.destination = null;
                jmsDest.session = null;
                jmsDest.producer = null;
                jmsDest.consumer = null;

                // Remove the JMS client entry
                //
                jmsDestinations.remove(destName);
                jmsDest = null;
            }
        } catch (JMSException e) {
            throw new MessagingException(e.getMessage(), e);
        }
    }
91063
public void setTargetName (String targetName) {
        if (targetName == null) target = null;
        target = targetServer.getTarget(targetName);
    }
881407
public void setTargetDestination(String targetDestination) 
  {
    if (tc.isEntryEnabled())
      SibTr.entry(tc, "setTargetDestination", targetDestination);

    this.targetDestination = targetDestination;

    if (tc.isEntryEnabled())
      SibTr.exit(tc, "setTargetDestination");
  }
969324
public void setToBeDeleted()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "setToBeDeleted");

    
    // Tell the remote code the destination is to be deleted
    if (_remoteSupport != null)
      _remoteSupport.setToBeDeleted();
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "setToBeDeleted");
  }
569838
public void dereferenceControllable()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "dereferenceControllable");

    destinationManager = null;
    baseDest = null;
    index = null;
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "dereferenceControllable");
  }