Examples of Backend


Examples of com.atlassian.localtunnel.data.Backend

        System.out.println(String.format("Creating tunnel: '%s' to forward local port '%s' to remote server '%s', with credentials: '%s' ...", tunnelName, port, host, clientName));
        LocalTunnelProtocol protocol = new LocalTunnelProtocol();

        URL hostURL = new URL(host);

        Backend backend = getBackend(hostURL);
        Socket control = createControlSocket(backend);
       
        protocol.sendVersion(control);
        protocol.sendMessage(control,protocol.controlRequest(getTunnelName(), getClientName()));
View Full Code Here

Examples of com.atlassian.localtunnel.data.Backend

    }

    private Backend getBackend(URL url)
    {
        int backendPort = discoverBackendPort(url);
        return new Backend(url.getHost(), backendPort);
    }
View Full Code Here

Examples of com.atlassian.localtunnel.data.Backend

    }

    @Override
    public Socket createControlSocket(final Backend backend) throws IOException
    {
        Backend be = backend;
       
        if(null == backend)
        {
            be = getBackend(new URL(host));
        }
        return new Socket(be.getHost(),be.getPort());
    }
View Full Code Here

Examples of com.atlassian.localtunnel.data.Backend

        return new Socket(be.getHost(),be.getPort());
    }

    public Socket createControlSocket(final Backend backend, Proxy proxy) throws IOException
    {
        Backend be = backend;

        if(null == backend)
        {
            be = getBackend(new URL(host));
        }
       
        Socket socket = new Socket(proxy);
        InetSocketAddress addr = new InetSocketAddress(be.getHost(),be.getPort());
        socket.connect(addr);
        return socket;
    }
View Full Code Here

Examples of com.thinkaurelius.titan.diskstorage.Backend

    }

    public Backend getBackend() {
        Configuration storageconfig = configuration.subset(STORAGE_NAMESPACE);
        Configuration metricsconfig = configuration.subset(METRICS_NAMESPACE);
        Backend backend = new Backend(storageconfig, metricsconfig);
        backend.initialize(storageconfig);
        storeFeatures = backend.getStoreFeatures();
        return backend;
    }
View Full Code Here

Examples of cs213.photoAlbum.model.Backend

 
  public Backend backend;
  boolean userSet = false;
 
  public DefaultControl() throws IOException{
    backend = new Backend();
  }
View Full Code Here

Examples of cs213.photoAlbum.model.Backend

  public DefaultControl() throws IOException{
    backend = new Backend();
  }
 
  public DefaultControl(String userID) throws IOException{
    backend = new Backend(userID);
    userSet = true;
  }
View Full Code Here

Examples of io.fathom.auto.haproxy.model.Backend

        if (chunk.mappings != null) {
            for (LbaasMapping mapping : chunk.mappings) {
                log.debug("Found mapping: {}", mapping);

                Backend backend = buildBackend(mapping);

                backend.mappings.add(mapping);
            }
        }
View Full Code Here

Examples of io.fathom.auto.haproxy.model.Backend

            key = DEFAULT_HOST_KEY;
        } else {
            key = buildKey(host);
        }

        Backend backend = backends.get(key);
        if (backend != null) {
            return backend;
        }

        backend = new Backend();
        backend.host = host;
        backend.key = key;
        backends.put(backend.key, backend);

        SecretKeys.SecretInfo secret;
View Full Code Here

Examples of net.windwards.dnsfrontend.api.Backend

            this.refuse();
            return;
        }

        Record question = this.query.getMessage().getQuestion();
        Backend backend = this.backends.lookup(question.getType());

        if (backend == null) {
            this.refuse();
            return;
        }

        this.ident = backend.makeKey(question);

        logger.debug("Checking cache [key={}]", this.ident);

        // check cache
        Element lmnt = this.cache.get(this.getIdent());
        if(lmnt != null) {
            if(lmnt.getObjectValue() == DontExist) {
                this.timeout();
            } else {
                Record record = (Record) lmnt.getObjectValue();
                this.answer(record, true);
            }
            return;
        }

        logger.debug("Asking backend [query={}]", this.query);

        // Park this query awaiting result from backend
        this.waitHere.keep(this);
        try {
            // Notify backend we need an update
            backend.notify(question);
        } catch (NoSuchDomainException e) {
            this.waitHere.discard(this);
            this.unknown();
        } catch (BackendCommunicationException e) {
            this.waitHere.discard(this);
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.