]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6834 Rename column CE_ACTIVITY.FINISHED_AT to EXECUTED_AT
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 30 Sep 2015 09:39:34 +0000 (11:39 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 30 Sep 2015 11:05:46 +0000 (13:05 +0200)
21 files changed:
server/sonar-server/src/main/java/org/sonar/server/computation/queue/CeQueueImpl.java
server/sonar-server/src/main/java/org/sonar/server/computation/queue/CeWorkerRunnableImpl.java
server/sonar-server/src/main/java/org/sonar/server/computation/ws/ActivityWsAction.java
server/sonar-server/src/main/java/org/sonar/server/computation/ws/TaskFormatter.java
server/sonar-server/src/main/resources/org/sonar/server/computation/ws/activity-example.json
server/sonar-server/src/test/java/org/sonar/server/computation/ws/TaskFormatterTest.java
server/sonar-web/src/main/js/apps/background-tasks/main.js
server/sonar-web/src/main/js/apps/background-tasks/tasks.js
server/sonar-web/src/main/js/apps/computation/report.js
server/sonar-web/src/main/js/apps/computation/templates/computation-list-item.hbs
server/sonar-web/src/main/webapp/WEB-INF/db/migrate/931_create_ce_activity.rb
server/sonar-web/test/json/computation-spec/history-big-1.json
server/sonar-web/test/json/computation-spec/history-big-2.json
server/sonar-web/test/json/computation-spec/history.json
sonar-db/src/main/java/org/sonar/db/ce/CeActivityDto.java
sonar-db/src/main/java/org/sonar/db/ce/CeActivityQuery.java
sonar-db/src/main/resources/org/sonar/db/ce/CeActivityMapper.xml
sonar-db/src/main/resources/org/sonar/db/version/schema-h2.ddl
sonar-db/src/test/java/org/sonar/db/ce/CeActivityDaoTest.java
sonar-ws/src/main/gen-java/org/sonarqube/ws/WsCe.java
sonar-ws/src/main/protobuf/ws-ce.proto

index f3ce365a2e1762908b0b8fc5eb718a9da286cc33..17b9cb214bccb252d33fca12b6a82c391f112482 100644 (file)
@@ -194,8 +194,8 @@ public class CeQueueImpl implements CeQueue {
     if (startedAt == null) {
       return;
     }
-    activityDto.setFinishedAt(system2.now());
-    long executionTime = activityDto.getFinishedAt() - startedAt;
+    activityDto.setExecutedAt(system2.now());
+    long executionTime = activityDto.getExecutedAt() - startedAt;
     activityDto.setExecutionTimeMs(executionTime);
     if (status == CeActivityDto.Status.SUCCESS) {
       queueStatus.addSuccess(executionTime);
index 5456814ddfebcf4c0d6143c28a7516c153fbee3f..9b46bb3a696e5645f48b17275a0a4e22ce5869d7 100644 (file)
@@ -76,7 +76,7 @@ public class CeWorkerRunnableImpl implements CeWorkerRunnable {
       status = CeActivityDto.Status.SUCCESS;
       queue.remove(task, status);
     } catch (Throwable e) {
-      LOG.error(format("Failed to process task %s", task.getUuid()), e);
+      LOG.error(format("Failed to execute task %s", task.getUuid()), e);
       queue.remove(task, status);
     } finally {
       // logging twice: once in sonar.log and once in CE appender
@@ -87,14 +87,14 @@ public class CeWorkerRunnableImpl implements CeWorkerRunnable {
   }
 
   private static Profiler startProfiler(CeTask task) {
-    return Profiler.create(LOG).startInfo("Process task | project={} | id={}", task.getComponentKey(), task.getUuid());
+    return Profiler.create(LOG).startInfo("Execute task | project={} | id={}", task.getComponentKey(), task.getUuid());
   }
 
   private static void stopProfiler(Profiler profiler, CeTask task, CeActivityDto.Status status) {
     if (status == CeActivityDto.Status.FAILED) {
-      profiler.stopError("Processed task | project={} | id={}", task.getComponentKey(), task.getUuid());
+      profiler.stopError("Executed task | project={} | id={}", task.getComponentKey(), task.getUuid());
     } else {
-      profiler.stopInfo("Processed task | project={} | id={}", task.getComponentKey(), task.getUuid());
+      profiler.stopInfo("Executed task | project={} | id={}", task.getComponentKey(), task.getUuid());
     }
   }
 }
index fa161d85c6f11ec8892ef9b0aa8dad04253fd565..4d495f58acbb87f58fb621855cfbf33250cf5538 100644 (file)
@@ -49,7 +49,7 @@ public class ActivityWsAction implements CeWsAction {
   private static final String PARAM_STATUS = "status";
   private static final String PARAM_ONLY_CURRENTS = "onlyCurrents";
   private static final String PARAM_MIN_SUBMITTED_AT = "minSubmittedAt";
-  private static final String PARAM_MAX_FINISHED_AT = "maxFinishedAt";
+  private static final String PARAM_MAX_EXECUTED_AT = "maxExecutedAt";
 
   private final UserSession userSession;
   private final DbClient dbClient;
@@ -83,7 +83,7 @@ public class ActivityWsAction implements CeWsAction {
     action.createParam(PARAM_MIN_SUBMITTED_AT)
       .setDescription("Optional filter on minimum date of task submission")
       .setExampleValue(DateUtils.formatDateTime(new Date()));
-    action.createParam(PARAM_MAX_FINISHED_AT)
+    action.createParam(PARAM_MAX_EXECUTED_AT)
       .setDescription("Optional filter on the maximum date of end of task processing")
       .setExampleValue(DateUtils.formatDateTime(new Date()));
     action.addPagingParams(10);
@@ -116,7 +116,7 @@ public class ActivityWsAction implements CeWsAction {
     query.setType(wsRequest.param(PARAM_TYPE));
     query.setOnlyCurrents(wsRequest.mandatoryParamAsBoolean(PARAM_ONLY_CURRENTS));
     query.setMinSubmittedAt(toTime(wsRequest.paramAsDateTime(PARAM_MIN_SUBMITTED_AT)));
-    query.setMaxFinishedAt(toTime(wsRequest.paramAsDateTime(PARAM_MAX_FINISHED_AT)));
+    query.setMaxExecutedAt(toTime(wsRequest.paramAsDateTime(PARAM_MAX_EXECUTED_AT)));
 
     String status = wsRequest.param(PARAM_STATUS);
     if (status != null) {
index cfaaf639da5bf4b50af74e6c8f55a47687bd00c1..0118389f95b623ac1799403fdb90f0edbacf82a0 100644 (file)
@@ -114,8 +114,8 @@ public class TaskFormatter {
     if (dto.getStartedAt() != null) {
       builder.setStartedAt(DateUtils.formatDateTime(new Date(dto.getStartedAt())));
     }
-    if (dto.getFinishedAt() != null) {
-      builder.setFinishedAt(DateUtils.formatDateTime(new Date(dto.getFinishedAt())));
+    if (dto.getExecutedAt() != null) {
+      builder.setExecutedAt(DateUtils.formatDateTime(new Date(dto.getExecutedAt())));
     }
     if (dto.getExecutionTimeMs() != null) {
       builder.setExecutionTimeMs(dto.getExecutionTimeMs());
index f6b40d89ec2c297b73bb9479a1f01e8efeb569b4..2e59858722e78135d51908fca41487eaefca6171 100644 (file)
@@ -15,7 +15,7 @@
       "submittedAt": "2015-08-13T23:34:59+0200",
       "submitterLogin": "john",
       "startedAt": "2015-08-13T23:35:00+0200",
-      "finishedAt": "2015-08-13T23:35:10+0200",
+      "executedAt": "2015-08-13T23:35:10+0200",
       "executionTimeMs": 10000,
       "logs": true
     },
@@ -28,7 +28,7 @@
       "status": "FAILED",
       "submittedAt": "2015-09-17T23:34:59+0200",
       "startedAt": "2015-09-17T23:35:00+0200",
-      "finishedAt": "2015-08-13T23:37:00+0200",
+      "executedAt": "2015-08-13T23:37:00+0200",
       "executionTimeMs": 120000,
       "logs": false
     }
index bfd3377e9b6d94befe466980b233ad8b4302599e..1adfbc3e4af88bec10b0710a6c7c0274c59d5bb8 100644 (file)
@@ -76,7 +76,7 @@ public class TaskFormatterTest {
     assertThat(wsTask.hasComponentId()).isFalse();
     assertThat(wsTask.hasComponentKey()).isFalse();
     assertThat(wsTask.hasComponentName()).isFalse();
-    assertThat(wsTask.hasFinishedAt()).isFalse();
+    assertThat(wsTask.hasExecutedAt()).isFalse();
   }
 
   @Test
@@ -105,7 +105,7 @@ public class TaskFormatterTest {
     assertThat(wsTask.getSubmitterLogin()).isEqualTo("rob");
 
     assertThat(wsTask.hasExecutionTimeMs()).isFalse();
-    assertThat(wsTask.hasFinishedAt()).isFalse();
+    assertThat(wsTask.hasExecutedAt()).isFalse();
   }
 
   @Test
index cdc56585af1e760bbc09046236486d4986a0fd0f..ddffd8d8831fb6f8c66d4524c60ec822c737f1d0 100644 (file)
@@ -57,7 +57,7 @@ export default React.createClass({
           filter.minSubmittedAt = moment(this.state.minDate).format(DATE_FORMAT);
         }
         if (this.state.maxDate) {
-          filter.maxFinishedAt = moment(this.state.maxDate).format(DATE_FORMAT);
+          filter.maxExecutedAt = moment(this.state.maxDate).format(DATE_FORMAT);
         }
         break;
       default:
index 2b347e2b24eba0fb0f5434ed4c4b1855bc8b5be6..9e0e6b33e9b5e1cc198f89d515cc9e8b34e18d62 100644 (file)
@@ -110,7 +110,7 @@ export default React.createClass({
           {this.renderTaskDay(task, previousTask)}
           {this.renderTaskDate(task, 'submittedAt', 'LTS')}
           {this.renderTaskDate(task, 'startedAt', 'LTS')}
-          {this.renderTaskDate(task, 'finishedAt', 'LTS')}
+          {this.renderTaskDate(task, 'executedAt', 'LTS')}
           {this.renderTaskExecutionTime(task)}
           <td className="thin nowrap text-right">
             {this.renderLogsLink(task)}
index a8bbec66824223e93e699a8dff10d086e5109e9b..3dec4d50324a2b56d4c672f93ed2d80d5615b4bc 100644 (file)
@@ -7,7 +7,7 @@ export default Backbone.Model.extend({
     var duration = null;
     if (this.has('startedAt')) {
       var startedAtMoment = moment(this.get('startedAt')),
-          finishedAtMoment = moment(this.get('finishedAt') || new Date()),
+          finishedAtMoment = moment(this.get('executedAt') || new Date()),
           diff = finishedAtMoment.diff(startedAtMoment);
       duration = {
         seconds: Math.floor(diff / 1000) % 60,
index 85465a1b5cb39cd5f1c82e5e2f35fb452366a63a..dcc4feb1bfc69eb4ba3df54c5fb686f1f81b99ac 100644 (file)
@@ -11,8 +11,8 @@
     {{#if startedAt}}
       <li>Started: {{dt startedAt}}</li>
     {{/if}}
-    {{#if finishedAt}}
-      <li>Finished: {{dt finishedAt}}</li>
+    {{#if executedAt}}
+      <li>Executed: {{dt executedAt}}</li>
     {{/if}}
   </ul>
 </div>
index 88e5fa87c186318cda395cbfe530decec777f353..55a6e90fe7709834bb5d0033f544034c2647e612 100644 (file)
@@ -33,7 +33,7 @@ class CreateCeActivity < ActiveRecord::Migration
       t.column 'submitter_login', :string, :limit => 255, :null => true
       t.column 'submitted_at', :big_integer, :null => false
       t.column 'started_at', :big_integer, :null => true
-      t.column 'finished_at', :big_integer, :null => true
+      t.column 'executed_at', :big_integer, :null => true
       t.column 'created_at', :big_integer, :null => false
       t.column 'updated_at', :big_integer, :null => false
       t.column 'execution_time_ms', :big_integer, :null => true
index d0cb80fa1a81be6b6dd2d00bb532501c2b9ccaaf..2007319f5e824f73223fc9a0d8696f10be26b4ae 100644 (file)
@@ -14,7 +14,7 @@
       "status": "SUCCESS",
       "submittedAt": "2015-09-18T11:20:43+0200",
       "startedAt": "2015-09-18T11:20:37+0200",
-      "finishedAt": "2015-09-18T11:20:43+0200",
+      "executedAt": "2015-09-18T11:20:43+0200",
       "executionTimeMs": 6030
     },
     {
@@ -26,7 +26,7 @@
       "status": "SUCCESS",
       "submittedAt": "2015-09-18T11:16:56+0200",
       "startedAt": "2015-09-18T11:16:47+0200",
-      "finishedAt": "2015-09-18T11:16:56+0200",
+      "executedAt": "2015-09-18T11:16:56+0200",
       "executionTimeMs": 8671
     }
   ]
index 08c000455b86b884bc3c3affb4ccedcef2d3432f..82bb0687ca6bdc1ca4cc2edf1fb04a5f48fa73ef 100644 (file)
@@ -14,7 +14,7 @@
       "status": "SUCCESS",
       "submittedAt": "2015-09-18T11:16:56+0200",
       "startedAt": "2015-09-18T11:16:47+0200",
-      "finishedAt": "2015-09-18T11:16:56+0200",
+      "executedAt": "2015-09-18T11:16:56+0200",
       "executionTimeMs": 8671
     }
   ]
index 285e15a73018a5e330ba45e6e6b7eaae8e0091e1..2aa4f0265f9ef078d92e1d1fd4ea8288c30e703e 100644 (file)
@@ -14,7 +14,7 @@
       "status": "SUCCESS",
       "submittedAt": "2015-09-18T11:20:43+0200",
       "startedAt": "2015-09-18T11:20:37+0200",
-      "finishedAt": "2015-09-18T11:20:43+0200",
+      "executedAt": "2015-09-18T11:20:43+0200",
       "executionTimeMs": 6030
     },
     {
@@ -26,7 +26,7 @@
       "status": "SUCCESS",
       "submittedAt": "2015-09-18T11:16:56+0200",
       "startedAt": "2015-09-18T11:16:47+0200",
-      "finishedAt": "2015-09-18T11:16:56+0200",
+      "executedAt": "2015-09-18T11:16:56+0200",
       "executionTimeMs": 8671
     }
   ]
index db2f1a10c39b5af0a3701d43e0a7a1e0735e8b93..35133e20db02cf04a0e9282820a8b9a321e3b577 100644 (file)
@@ -42,7 +42,7 @@ public class CeActivityDto {
   private String submitterLogin;
   private long submittedAt;
   private Long startedAt;
-  private Long finishedAt;
+  private Long executedAt;
   private long createdAt;
   private long updatedAt;
   private Long executionTimeMs;
@@ -131,12 +131,12 @@ public class CeActivityDto {
   }
 
   @CheckForNull
-  public Long getFinishedAt() {
-    return finishedAt;
+  public Long getExecutedAt() {
+    return executedAt;
   }
 
-  public void setFinishedAt(@Nullable Long l) {
-    this.finishedAt = l;
+  public void setExecutedAt(@Nullable Long l) {
+    this.executedAt = l;
   }
 
   public long getCreatedAt() {
@@ -177,7 +177,7 @@ public class CeActivityDto {
       .add("submitterLogin", submitterLogin)
       .add("submittedAt", submittedAt)
       .add("startedAt", startedAt)
-      .add("finishedAt", finishedAt)
+      .add("executedAt", executedAt)
       .add("createdAt", createdAt)
       .add("updatedAt", updatedAt)
       .add("executionTimeMs", executionTimeMs)
index 04f6d0ca7f42e752151b67844316f576979c14f4..355439d9ae237af6904e43a1caeb63af0c1845ec 100644 (file)
@@ -29,7 +29,7 @@ public class CeActivityQuery {
   private CeActivityDto.Status status;
   private String type;
   private Long minSubmittedAt;
-  private Long maxFinishedAt;
+  private Long maxExecutedAt;
 
   @CheckForNull
   public String getComponentUuid() {
@@ -71,12 +71,12 @@ public class CeActivityQuery {
   }
 
   @CheckForNull
-  public Long getMaxFinishedAt() {
-    return maxFinishedAt;
+  public Long getMaxExecutedAt() {
+    return maxExecutedAt;
   }
 
-  public CeActivityQuery setMaxFinishedAt(@Nullable Long l) {
-    this.maxFinishedAt = l;
+  public CeActivityQuery setMaxExecutedAt(@Nullable Long l) {
+    this.maxExecutedAt = l;
     return this;
   }
 
index c466d93cbcc13e4c56cb8a631bab15d9d34f1389..3c10c891e62a76b26a0513a6205702f028461865 100644 (file)
@@ -11,7 +11,7 @@
     ca.submitter_login as submitterLogin,
     ca.submitted_at as submittedAt,
     ca.started_at as startedAt,
-    ca.finished_at as finishedAt,
+    ca.executed_at as executedAt,
     ca.created_at as createdAt,
     ca.updated_at as updatedAt,
     ca.is_last as isLast,
@@ -61,8 +61,8 @@
       <if test="query.minSubmittedAt != null">
         and ca.submitted_at &gt;= #{query.minSubmittedAt}
       </if>
-      <if test="query.maxFinishedAt != null">
-        and ca.finished_at &lt;= #{query.maxFinishedAt}
+      <if test="query.maxExecutedAt != null">
+        and ca.executed_at &lt;= #{query.maxExecutedAt}
       </if>
     </where>
     order by ca.id desc
@@ -87,8 +87,8 @@
       <if test="query.minSubmittedAt != null">
         and ca.submitted_at &gt;= #{query.minSubmittedAt}
       </if>
-      <if test="query.maxFinishedAt != null">
-        and ca.finished_at &lt;= #{query.maxFinishedAt}
+      <if test="query.maxExecutedAt != null">
+        and ca.executed_at &lt;= #{query.maxExecutedAt}
       </if>
     </where>
   </select>
   <insert id="insert" parameterType="org.sonar.db.ce.CeActivityDto" useGeneratedKeys="false">
     insert into ce_activity
     (uuid, component_uuid, status, task_type, is_last, is_last_key, submitter_login, submitted_at, started_at,
-    finished_at, created_at, updated_at, execution_time_ms)
+    executed_at, created_at, updated_at, execution_time_ms)
     values (
     #{uuid,jdbcType=VARCHAR},
     #{componentUuid,jdbcType=VARCHAR},
     #{submitterLogin,jdbcType=VARCHAR},
     #{submittedAt,jdbcType=BIGINT},
     #{startedAt,jdbcType=BIGINT},
-    #{finishedAt,jdbcType=BIGINT},
+    #{executedAt,jdbcType=BIGINT},
     #{createdAt,jdbcType=BIGINT},
     #{updatedAt,jdbcType=BIGINT},
     #{executionTimeMs,jdbcType=BIGINT}
index 2ef8f08a9ceff689757110becae414a2abde1a62..f68481ba36e503f8e8fa81a06a7e78d792aafe9a 100644 (file)
@@ -508,18 +508,6 @@ CREATE TABLE "ACTIVITIES" (
   "DATA_FIELD" CLOB(2147483647)
 );
 
-CREATE TABLE "ANALYSIS_REPORTS" (
-  "ID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1),
-  "PROJECT_KEY" VARCHAR(400) NOT NULL,
-  "PROJECT_NAME" VARCHAR(256) NULL,
-  "REPORT_STATUS" VARCHAR(20) NOT NULL,
-  "UUID" VARCHAR(50) NOT NULL,
-  "CREATED_AT" BIGINT NOT NULL,
-  "UPDATED_AT" BIGINT NOT NULL,
-  "STARTED_AT" BIGINT,
-  "FINISHED_AT" BIGINT
-);
-
 CREATE TABLE "FILE_SOURCES" (
   "ID" INTEGER NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1),
   "PROJECT_UUID" VARCHAR(50) NOT NULL,
@@ -557,7 +545,7 @@ CREATE TABLE "CE_ACTIVITY" (
   "SUBMITTER_LOGIN" VARCHAR(255) NULL,
   "SUBMITTED_AT" BIGINT NOT NULL,
   "STARTED_AT" BIGINT NULL,
-  "FINISHED_AT" BIGINT NULL,
+  "EXECUTED_AT" BIGINT NULL,
   "CREATED_AT" BIGINT NOT NULL,
   "UPDATED_AT" BIGINT NOT NULL,
   "EXECUTION_TIME_MS" BIGINT NULL
index e714e688bf15dc6e87a4f019dc1eb02f050174a2..6138e4de2eae3b9b81e6df22948b3e87bf9f40c9 100644 (file)
@@ -58,7 +58,7 @@ public class CeActivityDaoTest {
     assertThat(saved.get().getSubmittedAt()).isEqualTo(1_300_000_000_000L);
     assertThat(saved.get().getCreatedAt()).isEqualTo(1_450_000_000_000L);
     assertThat(saved.get().getStartedAt()).isEqualTo(1_500_000_000_000L);
-    assertThat(saved.get().getFinishedAt()).isEqualTo(1_500_000_000_500L);
+    assertThat(saved.get().getExecutedAt()).isEqualTo(1_500_000_000_500L);
     assertThat(saved.get().getExecutionTimeMs()).isEqualTo(500L);
   }
 
@@ -155,28 +155,28 @@ public class CeActivityDaoTest {
     assertThat(underTest.selectByQuery(db.getSession(), query, new RowBounds(0, 10))).extracting("uuid").containsOnly("UUID2");
     assertThat(underTest.countByQuery(db.getSession(), query)).isEqualTo(1);
 
-    // search by max finished date
-    query = new CeActivityQuery().setMaxFinishedAt(1_475_000_000_000L);
+    // search by max executed date
+    query = new CeActivityQuery().setMaxExecutedAt(1_475_000_000_000L);
     assertThat(underTest.selectByQuery(db.getSession(), query, new RowBounds(0, 10))).extracting("uuid").containsOnly("UUID1");
     assertThat(underTest.countByQuery(db.getSession(), query)).isEqualTo(1);
 
     // search by both dates
     query = new CeActivityQuery()
       .setMinSubmittedAt(1_400_000_000_000L)
-      .setMaxFinishedAt(1_475_000_000_000L);
+      .setMaxExecutedAt(1_475_000_000_000L);
     assertThat(underTest.selectByQuery(db.getSession(), query, new RowBounds(0, 10))).extracting("uuid").containsOnly("UUID1");
     assertThat(underTest.countByQuery(db.getSession(), query)).isEqualTo(1);
 
   }
 
-  private void insertWithDates(String uuid, long submittedAt, long finishedAt) {
+  private void insertWithDates(String uuid, long submittedAt, long executedAt) {
     CeQueueDto queueDto = new CeQueueDto();
     queueDto.setUuid(uuid);
     queueDto.setTaskType("fake");
     CeActivityDto dto = new CeActivityDto(queueDto);
     dto.setStatus(CeActivityDto.Status.SUCCESS);
     dto.setSubmittedAt(submittedAt);
-    dto.setFinishedAt(finishedAt);
+    dto.setExecutedAt(executedAt);
     underTest.insert(db.getSession(), dto);
   }
 
@@ -221,7 +221,7 @@ public class CeActivityDaoTest {
     CeActivityDto dto = new CeActivityDto(queueDto);
     dto.setStatus(status);
     dto.setStartedAt(1_500_000_000_000L);
-    dto.setFinishedAt(1_500_000_000_500L);
+    dto.setExecutedAt(1_500_000_000_500L);
     dto.setExecutionTimeMs(500L);
     underTest.insert(db.getSession(), dto);
   }
index 797bd2aa902130ab23e8c40433060c7d9dde4498..630ac9301854478a76bf83236b8846ce5a9600de 100644 (file)
@@ -3821,27 +3821,30 @@ public final class WsCe {
         getStartedAtBytes();
 
     /**
-     * <code>optional string finishedAt = 10;</code>
+     * <code>optional string executedAt = 10;</code>
      */
-    boolean hasFinishedAt();
+    boolean hasExecutedAt();
+    
     /**
-     * <code>optional string finishedAt = 10;</code>
+     * <code>optional string executedAt = 10;</code>
      */
-    java.lang.String getFinishedAt();
+    java.lang.String getExecutedAt();
+    
     /**
-     * <code>optional string finishedAt = 10;</code>
+     * <code>optional string executedAt = 10;</code>
      */
     com.google.protobuf.ByteString
       getFinishedAtBytes();
getExecutedAtBytes();
 
     /**
-     * <code>optional bool isLastFinished = 11;</code>
+     * <code>optional bool isLastExecuted = 11;</code>
      */
-    boolean hasIsLastFinished();
+    boolean hasIsLastExecuted();
+    
     /**
-     * <code>optional bool isLastFinished = 11;</code>
+     * <code>optional bool isLastExecuted = 11;</code>
      */
-    boolean getIsLastFinished();
+    boolean getIsLastExecuted();
 
     /**
      * <code>optional int64 executionTimeMs = 12;</code>
@@ -3856,7 +3859,6 @@ public final class WsCe {
      * <code>optional bool logs = 13;</code>
      */
     boolean hasLogs();
-
     /**
      * <code>optional bool logs = 13;</code>
      */
@@ -3883,8 +3885,8 @@ public final class WsCe {
       submittedAt_ = "";
       submitterLogin_ = "";
       startedAt_ = "";
-      finishedAt_ = "";
-      isLastFinished_ = false;
+      executedAt_ = "";
+      isLastExecuted_ = false;
       executionTimeMs_ = 0L;
       logs_ = false;
     }
@@ -3978,12 +3980,12 @@ public final class WsCe {
             case 82: {
               com.google.protobuf.ByteString bs = input.readBytes();
               bitField0_ |= 0x00000200;
-              finishedAt_ = bs;
+              executedAt_ = bs;
               break;
             }
             case 88: {
               bitField0_ |= 0x00000400;
-              isLastFinished_ = input.readBool();
+              isLastExecuted_ = input.readBool();
               break;
             }
             case 96: {
@@ -4374,19 +4376,21 @@ public final class WsCe {
       }
     }
 
-    public static final int FINISHEDAT_FIELD_NUMBER = 10;
-    private volatile java.lang.Object finishedAt_;
+    public static final int EXECUTEDAT_FIELD_NUMBER = 10;
+    private volatile java.lang.Object executedAt_;
+    
     /**
-     * <code>optional string finishedAt = 10;</code>
+     * <code>optional string executedAt = 10;</code>
      */
-    public boolean hasFinishedAt() {
+    public boolean hasExecutedAt() {
       return ((bitField0_ & 0x00000200) == 0x00000200);
     }
+    
     /**
-     * <code>optional string finishedAt = 10;</code>
+     * <code>optional string executedAt = 10;</code>
      */
-    public java.lang.String getFinishedAt() {
-      java.lang.Object ref = finishedAt_;
+    public java.lang.String getExecutedAt() {
+      java.lang.Object ref = executedAt_;
       if (ref instanceof java.lang.String) {
         return (java.lang.String) ref;
       } else {
@@ -4394,41 +4398,44 @@ public final class WsCe {
             (com.google.protobuf.ByteString) ref;
         java.lang.String s = bs.toStringUtf8();
         if (bs.isValidUtf8()) {
-          finishedAt_ = s;
+          executedAt_ = s;
         }
         return s;
       }
     }
+    
     /**
-     * <code>optional string finishedAt = 10;</code>
+     * <code>optional string executedAt = 10;</code>
      */
     public com.google.protobuf.ByteString
       getFinishedAtBytes() {
-      java.lang.Object ref = finishedAt_;
getExecutedAtBytes() {
+      java.lang.Object ref = executedAt_;
       if (ref instanceof java.lang.String) {
         com.google.protobuf.ByteString b = 
             com.google.protobuf.ByteString.copyFromUtf8(
                 (java.lang.String) ref);
-        finishedAt_ = b;
+        executedAt_ = b;
         return b;
       } else {
         return (com.google.protobuf.ByteString) ref;
       }
     }
 
-    public static final int ISLASTFINISHED_FIELD_NUMBER = 11;
-    private boolean isLastFinished_;
+    public static final int ISLASTEXECUTED_FIELD_NUMBER = 11;
+    private boolean isLastExecuted_;
+    
     /**
-     * <code>optional bool isLastFinished = 11;</code>
+     * <code>optional bool isLastExecuted = 11;</code>
      */
-    public boolean hasIsLastFinished() {
+    public boolean hasIsLastExecuted() {
       return ((bitField0_ & 0x00000400) == 0x00000400);
     }
+    
     /**
-     * <code>optional bool isLastFinished = 11;</code>
+     * <code>optional bool isLastExecuted = 11;</code>
      */
-    public boolean getIsLastFinished() {
-      return isLastFinished_;
+    public boolean getIsLastExecuted() {
+      return isLastExecuted_;
     }
 
     public static final int EXECUTIONTIMEMS_FIELD_NUMBER = 12;
@@ -4448,14 +4455,12 @@ public final class WsCe {
 
     public static final int LOGS_FIELD_NUMBER = 13;
     private boolean logs_;
-
     /**
      * <code>optional bool logs = 13;</code>
      */
     public boolean hasLogs() {
       return ((bitField0_ & 0x00001000) == 0x00001000);
     }
-
     /**
      * <code>optional bool logs = 13;</code>
      */
@@ -4503,10 +4508,10 @@ public final class WsCe {
         output.writeBytes(9, getStartedAtBytes());
       }
       if (((bitField0_ & 0x00000200) == 0x00000200)) {
-        output.writeBytes(10, getFinishedAtBytes());
+        output.writeBytes(10, getExecutedAtBytes());
       }
       if (((bitField0_ & 0x00000400) == 0x00000400)) {
-        output.writeBool(11, isLastFinished_);
+        output.writeBool(11, isLastExecuted_);
       }
       if (((bitField0_ & 0x00000800) == 0x00000800)) {
         output.writeInt64(12, executionTimeMs_);
@@ -4561,11 +4566,11 @@ public final class WsCe {
       }
       if (((bitField0_ & 0x00000200) == 0x00000200)) {
         size += com.google.protobuf.CodedOutputStream
-          .computeBytesSize(10, getFinishedAtBytes());
+          .computeBytesSize(10, getExecutedAtBytes());
       }
       if (((bitField0_ & 0x00000400) == 0x00000400)) {
         size += com.google.protobuf.CodedOutputStream
-          .computeBoolSize(11, isLastFinished_);
+          .computeBoolSize(11, isLastExecuted_);
       }
       if (((bitField0_ & 0x00000800) == 0x00000800)) {
         size += com.google.protobuf.CodedOutputStream
@@ -4705,9 +4710,9 @@ public final class WsCe {
         bitField0_ = (bitField0_ & ~0x00000080);
         startedAt_ = "";
         bitField0_ = (bitField0_ & ~0x00000100);
-        finishedAt_ = "";
+        executedAt_ = "";
         bitField0_ = (bitField0_ & ~0x00000200);
-        isLastFinished_ = false;
+        isLastExecuted_ = false;
         bitField0_ = (bitField0_ & ~0x00000400);
         executionTimeMs_ = 0L;
         bitField0_ = (bitField0_ & ~0x00000800);
@@ -4776,11 +4781,11 @@ public final class WsCe {
         if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
           to_bitField0_ |= 0x00000200;
         }
-        result.finishedAt_ = finishedAt_;
+        result.executedAt_ = executedAt_;
         if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
           to_bitField0_ |= 0x00000400;
         }
-        result.isLastFinished_ = isLastFinished_;
+        result.isLastExecuted_ = isLastExecuted_;
         if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
           to_bitField0_ |= 0x00000800;
         }
@@ -4848,13 +4853,13 @@ public final class WsCe {
           startedAt_ = other.startedAt_;
           onChanged();
         }
-        if (other.hasFinishedAt()) {
+        if (other.hasExecutedAt()) {
           bitField0_ |= 0x00000200;
-          finishedAt_ = other.finishedAt_;
+          executedAt_ = other.executedAt_;
           onChanged();
         }
-        if (other.hasIsLastFinished()) {
-          setIsLastFinished(other.getIsLastFinished());
+        if (other.hasIsLastExecuted()) {
+          setIsLastExecuted(other.getIsLastExecuted());
         }
         if (other.hasExecutionTimeMs()) {
           setExecutionTimeMs(other.getExecutionTimeMs());
@@ -5534,110 +5539,120 @@ public final class WsCe {
         return this;
       }
 
-      private java.lang.Object finishedAt_ = "";
+      private java.lang.Object executedAt_ = "";
+      
       /**
-       * <code>optional string finishedAt = 10;</code>
+       * <code>optional string executedAt = 10;</code>
        */
-      public boolean hasFinishedAt() {
+      public boolean hasExecutedAt() {
         return ((bitField0_ & 0x00000200) == 0x00000200);
       }
+      
       /**
-       * <code>optional string finishedAt = 10;</code>
+       * <code>optional string executedAt = 10;</code>
        */
-      public java.lang.String getFinishedAt() {
-        java.lang.Object ref = finishedAt_;
+      public java.lang.String getExecutedAt() {
+        java.lang.Object ref = executedAt_;
         if (!(ref instanceof java.lang.String)) {
           com.google.protobuf.ByteString bs =
               (com.google.protobuf.ByteString) ref;
           java.lang.String s = bs.toStringUtf8();
           if (bs.isValidUtf8()) {
-            finishedAt_ = s;
+            executedAt_ = s;
           }
           return s;
         } else {
           return (java.lang.String) ref;
         }
       }
+      
       /**
-       * <code>optional string finishedAt = 10;</code>
+       * <code>optional string executedAt = 10;</code>
        */
       public com.google.protobuf.ByteString
         getFinishedAtBytes() {
-        java.lang.Object ref = finishedAt_;
getExecutedAtBytes() {
+        java.lang.Object ref = executedAt_;
         if (ref instanceof String) {
           com.google.protobuf.ByteString b = 
               com.google.protobuf.ByteString.copyFromUtf8(
                   (java.lang.String) ref);
-          finishedAt_ = b;
+          executedAt_ = b;
           return b;
         } else {
           return (com.google.protobuf.ByteString) ref;
         }
       }
+      
       /**
-       * <code>optional string finishedAt = 10;</code>
+       * <code>optional string executedAt = 10;</code>
        */
-      public Builder setFinishedAt(
+      public Builder setExecutedAt(
           java.lang.String value) {
         if (value == null) {
     throw new NullPointerException();
   }
   bitField0_ |= 0x00000200;
-        finishedAt_ = value;
+        executedAt_ = value;
         onChanged();
         return this;
       }
+      
       /**
-       * <code>optional string finishedAt = 10;</code>
+       * <code>optional string executedAt = 10;</code>
        */
-      public Builder clearFinishedAt() {
+      public Builder clearExecutedAt() {
         bitField0_ = (bitField0_ & ~0x00000200);
-        finishedAt_ = getDefaultInstance().getFinishedAt();
+        executedAt_ = getDefaultInstance().getExecutedAt();
         onChanged();
         return this;
       }
+      
       /**
-       * <code>optional string finishedAt = 10;</code>
+       * <code>optional string executedAt = 10;</code>
        */
-      public Builder setFinishedAtBytes(
+      public Builder setExecutedAtBytes(
           com.google.protobuf.ByteString value) {
         if (value == null) {
     throw new NullPointerException();
   }
   bitField0_ |= 0x00000200;
-        finishedAt_ = value;
+        executedAt_ = value;
         onChanged();
         return this;
       }
 
-      private boolean isLastFinished_ ;
+      private boolean isLastExecuted_;
+      
       /**
-       * <code>optional bool isLastFinished = 11;</code>
+       * <code>optional bool isLastExecuted = 11;</code>
        */
-      public boolean hasIsLastFinished() {
+      public boolean hasIsLastExecuted() {
         return ((bitField0_ & 0x00000400) == 0x00000400);
       }
+      
       /**
-       * <code>optional bool isLastFinished = 11;</code>
+       * <code>optional bool isLastExecuted = 11;</code>
        */
-      public boolean getIsLastFinished() {
-        return isLastFinished_;
+      public boolean getIsLastExecuted() {
+        return isLastExecuted_;
       }
+      
       /**
-       * <code>optional bool isLastFinished = 11;</code>
+       * <code>optional bool isLastExecuted = 11;</code>
        */
-      public Builder setIsLastFinished(boolean value) {
+      public Builder setIsLastExecuted(boolean value) {
         bitField0_ |= 0x00000400;
-        isLastFinished_ = value;
+        isLastExecuted_ = value;
         onChanged();
         return this;
       }
+      
       /**
-       * <code>optional bool isLastFinished = 11;</code>
+       * <code>optional bool isLastExecuted = 11;</code>
        */
-      public Builder clearIsLastFinished() {
+      public Builder clearIsLastExecuted() {
         bitField0_ = (bitField0_ & ~0x00000400);
-        isLastFinished_ = false;
+        isLastExecuted_ = false;
         onChanged();
         return this;
       }
@@ -5675,21 +5690,18 @@ public final class WsCe {
       }
 
       private boolean logs_;
-
       /**
        * <code>optional bool logs = 13;</code>
        */
       public boolean hasLogs() {
         return ((bitField0_ & 0x00001000) == 0x00001000);
       }
-
       /**
        * <code>optional bool logs = 13;</code>
        */
       public boolean getLogs() {
         return logs_;
       }
-
       /**
        * <code>optional bool logs = 13;</code>
        */
@@ -5699,7 +5711,6 @@ public final class WsCe {
         onChanged();
         return this;
       }
-
       /**
        * <code>optional bool logs = 13;</code>
        */
@@ -5807,8 +5818,8 @@ public final class WsCe {
       "ey\030\004 \001(\t\022\025\n\rcomponentName\030\005 \001(\t\022+\n\006statu" +
       "s\030\006 \001(\0162\033.sonarqube.ws.ce.TaskStatus\022\023\n\013" +
       "submittedAt\030\007 \001(\t\022\026\n\016submitterLogin\030\010 \001(" +
-      "\t\022\021\n\tstartedAt\030\t \001(\t\022\022\n\nfinishedAt\030\n \001(\t" +
-      "\022\026\n\016isLastFinished\030\013 \001(\010\022\027\n\017executionTim" +
+        "\t\022\021\n\tstartedAt\030\t \001(\t\022\022\n\nexecutedAt\030\n \001(\t" +
+        "\022\026\n\016isLastExecuted\030\013 \001(\010\022\027\n\017executionTim" +
         "eMs\030\014 \001(\003\022\014\n\004logs\030\r \001(\010*Q\n\nTaskStatus\022\013\n" +
         "\007PENDING\020\000\022\017\n\013IN_PROGRESS\020\001\022\013\n\007SUCCESS\020\002" +
         "\022\n\n\006FAILED\020\003\022\014\n\010CANCELED\020\004B\032\n\020org.sonarq",
@@ -5862,7 +5873,7 @@ public final class WsCe {
     internal_static_sonarqube_ws_ce_Task_fieldAccessorTable = new
       com.google.protobuf.GeneratedMessage.FieldAccessorTable(
         internal_static_sonarqube_ws_ce_Task_descriptor,
-      new java.lang.String[] {"Id", "Type", "ComponentId", "ComponentKey", "ComponentName", "Status", "SubmittedAt", "SubmitterLogin", "StartedAt", "FinishedAt", "IsLastFinished",
+      new java.lang.String[] {"Id", "Type", "ComponentId", "ComponentKey", "ComponentName", "Status", "SubmittedAt", "SubmitterLogin", "StartedAt", "ExecutedAt", "IsLastExecuted",
         "ExecutionTimeMs", "Logs",});
     org.sonarqube.ws.Common.getDescriptor();
   }
index 4698ecc1fc71ff00f907b238b9797e1794cd430f..4406113df2fb1637ad135ee53d1f610fb1a4b3fa 100644 (file)
@@ -64,8 +64,8 @@ message Task {
   optional string submittedAt = 7;
   optional string submitterLogin = 8;
   optional string startedAt = 9;
-  optional string finishedAt = 10;
-  optional bool isLastFinished = 11;
+  optional string executedAt = 10;
+  optional bool isLastExecuted = 11;
   optional int64 executionTimeMs = 12;
   optional bool logs = 13;
 }