コード例 #1
0
 public void downloadFullJobLogs(String sessionId, String jobId) {
   String url =
       SchedulerConfig.get().getRestPublicUrlIfDefinedOrOverridden()
           + "/scheduler/jobs/"
           + jobId
           + "/log/full?sessionid="
           + sessionId;
   Window.open(url, "_blank", "");
 }
コード例 #2
0
  /** Start the timer that will periodically fetch live logs */
  public void startLiveOutput() {
    this.liveOutputUpdater =
        new Timer() {

          @Override
          public void run() {
            doFetchLiveLog();
          }
        };
    int refreshTime = SchedulerConfig.get().getLivelogsRefreshTime();
    this.liveOutputUpdater.scheduleRepeating(refreshTime);
    this.doFetchLiveLog();
  }