Examples of Connector


Examples of org.mortbay.jetty.Connector

            return sslConnector;
        }
    }

    private static Connector buildConnector() {
        Connector connector;
        if (usingNIO) {
            connector = new SelectChannelConnector();
        } else {
            connector = new SocketConnector();
        }
        connector.setPort(jettyPort);
        connector.setMaxIdleTime(maxIdleTime);
        return connector;
    }
View Full Code Here

Examples of org.mule.api.transport.Connector

    @SuppressWarnings("serial")
    public void testTransformersAreSetupAfterCompleteEndpointConfig()
    {
        // Defines all the values required in order to create a full configured
        // endpoint
        final Connector mockConnector = mock(Connector.class);
        final EndpointURI uri = mock(EndpointURI.class);
        final List<Transformer> inputTransformers = new ArrayList<Transformer>();
        final List<Transformer> outputTransformers = new ArrayList<Transformer>();
        final String name = "testEndpoint";
       
View Full Code Here

Examples of org.openengsb.core.api.Connector

        DomainProvider authDomainProvider = createDomainProviderMock(AuthorizationDomain.class, "authorization");
        CompositeConnectorProvider compositeConnectorProvider = new CompositeConnectorProvider();
        compositeConnectorProvider.setBundleContext(bundleContext);
        ConnectorInstanceFactory cFactory = compositeConnectorProvider.createFactory(authDomainProvider);
        Connector instance = cFactory.createNewInstance("auth-admin");
        Dictionary<String, Object> props = new Hashtable<String, Object>();
        props.put("composite.strategy.name", "authorization");
        AffirmativeBasedAuthorizationStrategy service = new AffirmativeBasedAuthorizationStrategy();
        service.setUtilsService(serviceUtils);
        registerService(service, props, CompositeConnectorStrategy.class);
View Full Code Here

Examples of org.snova.http.client.Connector

        public URL getProxy(HttpRequest request)
        {
          return proxyUrl;
        }
      };
      options.connector = new Connector()
      {
        @Override
        public ChannelFuture connect(String host, int port)
        {
          String remoteHost = HostsService.getMappingHost(host);
View Full Code Here

Examples of org.voltdb.catalog.Connector

    /**
     * Return true if tableList includes at least one export-only table.
     */
    private boolean tableListIncludesExportOnly(List<Table> tableList) {
        // the single well-known connector
        Connector connector = m_catalogDb.getConnectors().get("0");

        // no export tables with out a connector
        if (connector == null) {
            return false;
        }

        CatalogMap<ConnectorTableInfo> tableinfo = connector.getTableinfo();

        // this loop is O(number-of-joins * number-of-export-tables)
        // which seems acceptable if not great. Probably faster than
        // re-hashing the export only tables for faster lookup.
        for (Table table : tableList) {
View Full Code Here

Examples of org.voltdb.compiler.projectfile.ExportsType.Connector

        // Process and add exports and connectors to the catalog
        // Must do this before compiling procedures to deny updates
        // on append-only tables.
        if (database.getExports() != null) {
            // currently, only a single connector is allowed
            Connector conn = database.getExports().getConnector();
            compileConnector(conn, db);
        }

        // Actually parse and handle all the Procedures
        for (final ProcedureDescriptor procedureDescriptor : procedures) {
View Full Code Here

Examples of pl.balon.gwt.diagrams.client.connector.Connector

  public ConnectionData calculateConnectionData(List connectors) {
    if( connectors.size() != 2 ){
      throw new IllegalArgumentException("Unsupported connectors count");
    }
   
    Connector c1 = (Connector) connectors.get(0);
    Connector c2 = (Connector) connectors.get(1);
   
    ConnectionData data = new ConnectionData();
   
    Point center1 = new Point(c1.getLeft() + c1.getWidth()/2, c1.getTop() + c1.getHeight()/2);
    Point center2 = new Point(c2.getLeft() + c2.getWidth()/2, c2.getTop() + c2.getHeight()/2);

    Point diff = new Point(center2.left - center1.left, center2.top - center1.top);

    int leftSign = diff.left >= 0 ? -1 : 1
    int topSign = diff.top >= 0 ? -1 : 1
   
    //c1 vertical
    int top = c1.getHeight()/2;
    int left = diff.top != 0 ? top * diff.left / Math.abs(diff.top) : Integer.MAX_VALUE;
    top *= -topSign;
   
    if( Math.abs(left) > c1.getWidth()/2 ){
      //c1 horizontal
      left = c1.getWidth()/2;
      top = diff.left != 0 ? left * diff.top / Math.abs(diff.left) : Integer.MAX_VALUE;
      left *= -leftSign;
    }
    data.getPoints().add(new Point(center1.left + left, center1.top + top));

    //c2 vertical
    top = c2.getHeight()/2;
    left = diff.top != 0 ? top * diff.left / Math.abs(diff.top) : Integer.MAX_VALUE;
    top *= topSign;
    left = -left;
   
    if( Math.abs(left) > c2.getWidth()/2 ){
      //c2 horizontal
      left = c2.getWidth()/2;
      top = diff.left != 0 ? left * diff.top / Math.abs(diff.left) : Integer.MAX_VALUE;
      left *= leftSign;
      top = -top;
    }
    data.getPoints().add(new Point(center2.left + left, center2.top + top));
View Full Code Here

Examples of pl.tecna.gwt.connectors.client.elements.Connector

    /*
     * Fill maps with sections from shape sections (sections to merge if they are short)
     */
    for (ConnectionPoint cp : shape.connectionPoints) {
      for (EndPoint ep : cp.gluedEndPoints) {
        Connector conn = ep.connector;
        if (conn.sections.size() > 1) {
          Section secondFromShape = null;
          int sectionLength;
          boolean start = false;
          if (conn.endEndPoint.equals(ep)) {
View Full Code Here

Examples of research.connector.Connector

            if (getTargetFigure() != null) {
                FigureHelper.setConnectorVisible(getTargetFigure(), true);
            }
        }

        Connector cc = null;
        if (c != null) {
            cc = findConnector(x, y, c);
        }
        if (cc != getTargetConnector()) {
            setTargetConnector(cc);
View Full Code Here

Examples of vg.modules.notepad.components.connectorComponent.Connector

      }
    });
    // init main data
    this.connections = new ArrayList<UIEventCreateNewConnection>();
    // create components
    this.connector = new Connector(param, this);
    this.connectionStatistic = new ConnectionStatistic(this, param);
   
    this.toolBar = new JToolBar("Tool Bar");
    this.toolBar.setLayout(new GridBagLayout());
    this.toolBar.setFloatable(false);
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.