Examples of ProxyConnector


Examples of org.apache.activemq.proxy.ProxyConnector

     *
     * @return the newly created and added network connector
     * @throws Exception
     */
    public ProxyConnector addProxyConnector(URI bindAddress) throws Exception {
        ProxyConnector connector = new ProxyConnector();
        connector.setBind(bindAddress);
        connector.setRemote(new URI("fanout:multicast://default"));
        return addProxyConnector(connector);
    }
View Full Code Here

Examples of org.apache.activemq.proxy.ProxyConnector

     * Sets the network connectors which this broker will use to connect to
     * other brokers in a federated network
     */
    public void setProxyConnectors(List proxyConnectors) throws Exception {
        for (Iterator iter = proxyConnectors.iterator(); iter.hasNext();) {
            ProxyConnector connector = (ProxyConnector) iter.next();
            addProxyConnector(connector);
        }
    }
View Full Code Here

Examples of org.apache.activemq.proxy.ProxyConnector

            NetworkConnector connector = iter.next();
            unregisterNetworkConnectorMBean(connector);
            stopper.stop(connector);
        }
        for (Iterator<ProxyConnector> iter = getProxyConnectors().iterator(); iter.hasNext();) {
            ProxyConnector connector = iter.next();
            stopper.stop(connector);
        }
        for (Iterator<JmsConnector> iter = jmsConnectors.iterator(); iter.hasNext();) {
            JmsConnector connector = iter.next();
            stopper.stop(connector);
View Full Code Here

Examples of org.apache.activemq.proxy.ProxyConnector

                        connector.setBrokerURL(getDefaultSocketURI().toString());
                    }
                    connector.start();
                }
                for (Iterator<ProxyConnector> iter = getProxyConnectors().iterator(); iter.hasNext();) {
                    ProxyConnector connector = iter.next();
                    connector.start();
                }
                for (Iterator<JmsConnector> iter = jmsConnectors.iterator(); iter.hasNext();) {
                    JmsConnector connector = iter.next();
                    connector.start();
                }
                for (Service service : services) {
                    configureService(service);
                    service.start();
                }
View Full Code Here

Examples of org.apache.activemq.proxy.ProxyConnector

        BrokerService service = new BrokerService();
        service.setBrokerName("broker1");
        service.setPersistent(false);

        connector = service.addConnector(getLocalURI());
        proxyConnector=new ProxyConnector();
        proxyConnector.setName("proxy");
        proxyConnector.setBind(new URI(getLocalProxyURI()));
        proxyConnector.setRemote(new URI("fanout:static://"+getRemoteURI()));
        service.addProxyConnector(proxyConnector);
       
View Full Code Here

Examples of org.apache.archiva.admin.model.beans.ProxyConnector

    {
        boolean satisfies = false;

        if ( object instanceof ProxyConnector )
        {
            ProxyConnector connector = (ProxyConnector) object;
            return ( StringUtils.equals( sourceId, connector.getSourceRepoId() ) && StringUtils.equals( targetId,
                                                                                                        connector.getTargetRepoId() ) );
        }

        return satisfies;
    }
View Full Code Here

Examples of org.apache.archiva.admin.model.beans.ProxyConnector

    }

    protected void removeConnector( String sourceId, String targetId )
        throws RepositoryAdminException
    {
        ProxyConnector proxyConnector = findProxyConnector( sourceId, targetId );
        if ( proxyConnector != null )
        {
            getProxyConnectorAdmin().deleteProxyConnector( proxyConnector, getAuditInformation() );
        }
    }
View Full Code Here

Examples of org.apache.archiva.admin.model.beans.ProxyConnector

    @Override
    public void prepare()
        throws RepositoryAdminException
    {
        super.prepare();
        connector = new ProxyConnector();
    }
View Full Code Here

Examples of org.apache.archiva.admin.model.beans.ProxyConnector

         * This validation is ultimately only useful on this one request method.
         */
        String sourceId = connector.getSourceRepoId();
        String targetId = connector.getTargetRepoId();

        ProxyConnector otherConnector = findProxyConnector( sourceId, targetId );
        if ( otherConnector != null )
        {
            addActionError(
                "Unable to add proxy connector, as one already exists with source repository id [" + sourceId
                    + "] and target repository id [" + targetId + "]." );
View Full Code Here

Examples of org.apache.archiva.admin.model.beans.ProxyConnector

        }

        String sourceId = connector.getSourceRepoId();
        String targetId = connector.getTargetRepoId();

        ProxyConnector otherConnector = findProxyConnector( sourceId, targetId );
        if ( otherConnector != null )
        {
            // Remove the previous connector.
            removeProxyConnector( otherConnector );
        }
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.