public String toString() { String address = "not set"; if(endpoint!=null) { address = endpoint.getEndpointURI().getAddress(); } return "RemoteDispatcherAgent{" + "remote-endpoint='" + address + "'" + "}"; }
public String getAddress() { return endpoint.getEndpointURI().getAddress(); }
protected String getHolderKey(ImmutableEndpoint endpoint) { return endpoint.getProtocol() + ":" + endpoint.getEndpointURI().getHost() + ":" + endpoint.getEndpointURI().getPort(); }
@Override protected Object getReceiverKey(FlowConstruct flowConstruct, InboundEndpoint endpoint) { { return defaultIfEmpty(endpoint.getName(), endpoint.getEndpointURI().getAddress()); } }
/** * The method determines the key used to store the receiver against. * * @param flowConstruct the service for which the endpoint is being registered * @param endpoint the endpoint being registered for the service * @return the key to store the newly created receiver against */ protected Object getReceiverKey(FlowConstruct flowConstruct, InboundEndpoint endpoint) { return StringUtils.defaultIfEmpty(endpoint.getEndpointURI().getFilterAddress(), endpoint.getEndpointURI().getAddress()); }
private static String getEndpointDescription(InboundEndpoint endpoint) { String endpointString = endpoint.getName(); if (endpointString == null) { endpointString = endpoint.getEndpointURI().getUri().toString(); } return endpointString; }
public EndpointURI getEndpointURI() { if (dynamicEndpointURI != null) { return dynamicEndpointURI; } else { return endpoint.getEndpointURI(); } }
public VMMessageDispatcher(OutboundEndpoint endpoint) { super(endpoint); this.connector = (VMConnector) endpoint.getConnector(); }
@Override public EndpointBuilder getEndpointBuilder(String uri) throws MuleException { return defaultFactory.getEndpointBuilder(uri); }
private MuleMessage internalSend(String url, MuleMessage message, Long timeout) throws MuleException { OutboundEndpoint endpoint = endpointCache.getOutboundEndpoint(url, MessageExchangePattern.REQUEST_RESPONSE, timeout); return returnMessage(endpoint.process(createMuleEvent(message, endpoint))); }
public VMMessageRequester(InboundEndpoint endpoint) { super(endpoint); this.connector = (VMConnector) endpoint.getConnector(); }
public EndpointURI getEndpointURI() { if (dynamicEndpointURI != null) { return dynamicEndpointURI; } else { return endpoint.getEndpointURI(); } }
public ScheduleConfigBuilder setInterval(long interval) { endpointBuilder.setProperty(QuartzConnector.PROPERTY_REPEAT_INTERVAL, interval); return this; }
@Override public AbstractRedeliveryPolicy getRedeliveryPolicy() { return prototypeEndpoint.getRedeliveryPolicy(); }
@Override public AbstractRedeliveryPolicy createDefaultRedeliveryPolicy(int maxRedelivery) { return endpoint.createDefaultRedeliveryPolicy(maxRedelivery); }
@Override public AbstractRedeliveryPolicy getRedeliveryPolicy() { return endpoint.getRedeliveryPolicy(); }
@Override protected Object getReceiverKey(FlowConstruct flowConstruct, InboundEndpoint endpoint) { EndpointURI uri = endpoint.getEndpointURI(); return uri.getAddress(); }
public RmiMessageDispatcher(OutboundEndpoint endpoint) { super(endpoint); this.connector = (RmiConnector)endpoint.getConnector(); }
public UdpMessageRequester(InboundEndpoint endpoint) { super(endpoint); this.connector = (UdpConnector)endpoint.getConnector(); }
public ScheduleConfigBuilder setCron(String cron) { endpointBuilder.setProperty(QuartzConnector.PROPERTY_CRON_EXPRESSION, cron); return this; }