<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Rafael<br>
      <br>
      there's no such function in the client library for now. Xavier
      implemented this in the Eclipse tooling. Afaik (had a quick look)
      it's using jgit to open an ssh session reads from the session and
      puts in to the eclipse console (TailServerLogAction#
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      startTailProcess):<br>
      <br>
      &lt;snip&gt;<br>
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      RemoteSession remoteSession = sshSessionFactory.getSession(uri,
      CredentialsProvider.getDefault(), FS.DETECTED, 0);<br>
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      // "ssh -t #{app_uuid}@#{app}-#{namespace}.#{rhc_domain}
      'tail#{opt['opts'] ? ' --opts ' +
      Base64::encode64(opt['opts']).chomp : ''} #{file_glob}'"
      final String command = buildCommand(logFilePath, options);
      Process process = remoteSession.exec(command, 0);
      return new TailServerLogWorker(console, process, remoteSession);<br>
      &lt;/snip&gt;<br>
      <br>
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <a
href="http://anonsvn.jboss.org/repos/jbosstools/trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/TailServerLogAction.java">http://anonsvn.jboss.org/repos/jbosstools/trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/action/TailServerLogAction.java</a><br>
      <br>
      Cheers<br>
      Andr&eacute;<br>
      <br>
      On 10/10/2012 06:01 PM, Rafael Benevides wrote:<br>
    </div>
    <blockquote cite="mid:50759BCF.2040101@redhat.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      Bill / Andre / Xavier<br>
      <br>
      I didn't find on openshift-java-client how to tail files.<br>
      <br>
      Does it have this feature ?<br>
      <br>
      <br>
      Thanks<br>
      <br>
      Em 04-10-2012 10:24, Xavier Coulon escreveu:
      <blockquote
        cite="mid:1F905017-09E3-4093-8818-207FDB44B90D@redhat.com"
        type="cite">Hi !
        <div><br>
        </div>
        <div>As Max mentioned, you should find all the API you need to
          implement the features listed below in the Forge plugin&nbsp;in the
          new openshift-java-client (V2.0), except maybe the 'tail
          files' feature which we implemented in JBossTools because we
          use specific Eclipse APIs to display the output in a
          MessageConsole. Maybe this could be refactored and moved
          partially into the java-client library, though (we did not
          need to do that when we worked on it a few months ago).</div>
        <div><br>
        </div>
        <div>Also,&nbsp;if you haven't already seen it,&nbsp;Andr&eacute; recently wrote
          an article about the new client library:&nbsp;<a
            moz-do-not-send="true"
href="https://community.jboss.org/en/tools/blog/2012/08/24/show-domain-info-openshift-java-client-in-a-nutshell">https://community.jboss.org/en/tools/blog/2012/08/24/show-domain-info-openshift-java-client-in-a-nutshell</a>&nbsp;</div>
        <div><br>
        </div>
        <div>Best regards,&nbsp;<br>
          <div apple-content-edited="true"> /Xavier<br>
            <br>
            <br>
          </div>
          <br>
          <div>
            <div>On Oct 4, 2012, at 1:39 PM, Max Rydahl Andersen wrote:</div>
            <br class="Apple-interchange-newline">
            <blockquote type="cite">
              <div><br>
                <blockquote type="cite">So I just started working on EAP
                  support. <a moz-do-not-send="true"
                    href="https://issues.jboss.org/browse/FORGEPLUGINS-88">https://issues.jboss.org/browse/FORGEPLUGINS-88</a>
                  opened!<br>
                </blockquote>
                <br>
                Oh I was wondering why EAP wasn't supported.<br>
                Didn't realize the forge openshift install was jboss
                specific.<br>
                <br>
                One item I got is that we check if the projects setup by
                JBoss Tools, openshift client and OpenShift Forge client
                are compatible or can be made compatible.<br>
                <br>
                i.e. forge *always* uses "openshift" as the remote afaik
                - openshift client always create projects where the
                remote is in "origin" - as a consequence jboss tools<br>
                added support for naming the remote used so you could
                align them.<br>
                <br>
                If openshift could allow naming the remote or pick up
                the existing remote pointing to openshift these things
                could be aligned.<br>
                <br>
                <blockquote type="cite">
                  <blockquote type="cite">
                    <blockquote type="cite">Pete and Lincoln talked
                      about some of them in JavaOne here are some:<br>
                    </blockquote>
                  </blockquote>
                </blockquote>
                <blockquote type="cite">
                  <blockquote type="cite">
                    <blockquote type="cite"> &nbsp;&nbsp;* support for embedding
                      cartridges<br>
                    </blockquote>
                  </blockquote>
                </blockquote>
                <blockquote type="cite">
                  <blockquote type="cite">
                    <blockquote type="cite"> &nbsp;&nbsp;* support for eap<br>
                    </blockquote>
                  </blockquote>
                </blockquote>
                <blockquote type="cite">
                  <blockquote type="cite">
                    <blockquote type="cite"> &nbsp;&nbsp;* tail files<br>
                    </blockquote>
                  </blockquote>
                </blockquote>
                <br>
                all of the above is available for use from the new
                openshift client.<br>
                <br>
                <blockquote type="cite">
                  <blockquote type="cite">
                    <blockquote type="cite">I also got those:<br>
                    </blockquote>
                  </blockquote>
                </blockquote>
                <blockquote type="cite">
                  <blockquote type="cite">
                    <blockquote type="cite"> &nbsp;&nbsp;* setup when openshift
                      application exists<br>
                    </blockquote>
                  </blockquote>
                </blockquote>
                <blockquote type="cite">
                  <blockquote type="cite">
                    <blockquote type="cite"> &nbsp;&nbsp;* snapshot management ?<br>
                    </blockquote>
                  </blockquote>
                </blockquote>
                <blockquote type="cite">
                  <blockquote type="cite">
                    <blockquote type="cite"> &nbsp;&nbsp;* key management ?<br>
                    </blockquote>
                  </blockquote>
                </blockquote>
                <blockquote type="cite">
                  <blockquote type="cite">
                    <blockquote type="cite"> &nbsp;&nbsp;* alias management<br>
                    </blockquote>
                  </blockquote>
                </blockquote>
                <blockquote type="cite">
                  <blockquote type="cite">
                    <blockquote type="cite"> &nbsp;&nbsp;* enable scaling on
                      create app ?<br>
                    </blockquote>
                  </blockquote>
                </blockquote>
                <blockquote type="cite">
                  <blockquote type="cite">
                    <blockquote type="cite"> &nbsp;&nbsp;* Use alternate openshift
                      config file<br>
                    </blockquote>
                  </blockquote>
                </blockquote>
                <br>
                whats this one ?<br>
                <br>
                <blockquote type="cite">
                  <blockquote type="cite">
                    <blockquote type="cite"> &nbsp;&nbsp;* config port forward ?<br>
                    </blockquote>
                  </blockquote>
                </blockquote>
                <br>
                we got this in jbosstools - for forge I guess it
                requires running a jsch port forward (or launch ssh
                native in separate process) ?<br>
                <br>
                /max<br>
                _______________________________________________<br>
                forge-dev mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
                <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://lists.jboss.org/mailman/listinfo/forge-dev">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
      </blockquote>
    </blockquote>
    <br>
  </body>
</html>