Examples of GitNode


Examples of com.google.apps.easyconnect.easyrp.client.basic.logic.GitNode

  }

  @VisibleForTesting
  GitNode findChild(Object request) {
    String key = null;
    GitNode child = null;
    try {
      key = (String) evaluator.invoke(evaluatorObject, request);
    } catch (IllegalArgumentException e) {
      log.severe("Failed to evaluate node: " + e.getMessage());
    } catch (IllegalAccessException e) {
View Full Code Here

Examples of io.fabric8.git.GitNode

                if (isMaster.getAndSet(false)) {
                    unregisterServlet();
                }
            }

            GitNode state = createState();
            group.update(state);
            String url = state.getUrl();
            gitRemoteUrl.set(ZooKeeperUtils.getSubstitutedData(curator.get(), url));
        } catch (Exception e) {
            // Ignore
        }
    }
View Full Code Here

Examples of io.fabric8.git.GitNode

    }

    private GitNode createState() {
        RuntimeProperties sysprops = runtimeProperties.get();
        String runtimeIdentity = sysprops.getRuntimeIdentity();
        GitNode state = new GitNode("fabric-repo", runtimeIdentity);
        if (group != null && group.isMaster()) {
            TargetContainer runtimeType = TargetContainer.getTargetContainer(sysprops);
            String context = runtimeType == TargetContainer.KARAF ? "" : "/fabric";
            String fabricRepoUrl = "${zk:" + runtimeIdentity + "/http}" + context + "/git/fabric/";
            state.setUrl(fabricRepoUrl);
        }
        return state;
    }
View Full Code Here

Examples of io.fabric8.git.GitNode

    /**
     * Updates the git master url, if needed.
     */
    private void updateMasterUrl(Group<GitNode> group) {
        GitNode master = group.master();
        String masterUrl = master != null ? master.getUrl() : null;
        try {
            if (masterUrl != null) {
                GitService gitservice = gitService.get();
                String substitutedUrl = getSubstitutedData(curator.get(), masterUrl);
                if (!Strings.isNotBlank(substitutedUrl)) {
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.