public String getName() { return endpoint.getName(); }
public InboundEndpoint getEndpoint(String name) { for (InboundEndpoint endpoint : endpoints) { if (endpoint.getName().equals(name)) { return endpoint; } } return null; }
private static String getEndpointDescription(InboundEndpoint endpoint) { String endpointString = endpoint.getName(); if (endpointString == null) { endpointString = endpoint.getEndpointURI().getUri().toString(); } return endpointString; }
@Override protected Object getReceiverKey(FlowConstruct flowConstruct, InboundEndpoint endpoint) { { return defaultIfEmpty(endpoint.getName(), endpoint.getEndpointURI().getAddress()); } }
public MuleEvent process(MuleEvent event) throws MuleException { // If the endpoint has a logical name, use it, otherwise use the URI. String inboundEndpoint = endpoint.getName(); if (StringUtils.isBlank(inboundEndpoint)) { // URI inboundEndpoint = endpoint.getEndpointURI().getUri().toString(); } event.getMessage().setProperty(MuleProperties.MULE_ORIGINATING_ENDPOINT_PROPERTY, inboundEndpoint, PropertyScope.INBOUND); return event; }
if (((ServiceCompositeMessageSource) service.getMessageSource()).getEndpoint(ep.getName()) == null)
@Override protected void doInitialise() throws InitialisationException { this.lockFactory = getEndpoint().getMuleContext().getLockFactory(); boolean synchronousProcessing = false; if (getFlowConstruct() instanceof Flow) { synchronousProcessing = ((Flow)getFlowConstruct()).getProcessingStrategy() instanceof SynchronousProcessingStrategy; } this.poolOnPrimaryInstanceOnly = Boolean.valueOf(System.getProperty(MULE_TRANSPORT_FILE_SINGLEPOLLINSTANCE,"false")) || !synchronousProcessing; ObjectStoreManager objectStoreManager = getEndpoint().getMuleContext().getRegistry().get(MuleProperties.OBJECT_STORE_MANAGER); filesBeingProcessingObjectStore = objectStoreManager.getObjectStore(getEndpoint().getName(),false,1000,60000,20000); }
@Override public void initialise() throws InitialisationException { try { quartzScheduler = createScheduler(); jobName = job.getReceiver().getReceiverKey(); groupName = job.getReceiver().getEndpoint().getName(); quartzScheduler.addJob(jobDetail(jobName, groupName, job), true); quartzScheduler.start(); } catch (SchedulerException e) { throw new InitialisationException(couldNotCreateScheduler(), e, this); } }
public DefaultMuleEvent(MuleMessage message, InboundEndpoint endpoint, FlowConstruct flowConstruct, MuleSession session, ReplyToHandler replyToHandler, Object replyToDestination, OutputStream outputStream) { this.id = generateEventId(message.getMuleContext()); this.flowConstruct = flowConstruct; this.session = session; setMessage(message); this.outputStream = outputStream; this.processingTime = ProcessingTime.newInstance(this); this.replyToHandler = replyToHandler; this.replyToDestination = replyToDestination; this.credentials = extractCredentials(endpoint); this.encoding = endpoint.getEncoding(); this.exchangePattern = endpoint.getExchangePattern(); this.messageSourceName = endpoint.getName(); this.messageSourceURI = endpoint.getEndpointURI().getUri(); this.timeout = endpoint.getResponseTimeout(); this.transacted = endpoint.getTransactionConfig().isTransacted(); fillProperties(endpoint); this.synchronous = resolveEventSynchronicity(); this.nonBlocking = isFlowConstructNonBlockingProcessingStrategy(); }