-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CYB - 194][UI] Git support for config pipeline. (#84)
- Loading branch information
1 parent
ef5a5ca
commit 8748f24
Showing
75 changed files
with
1,963 additions
and
531 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
...main/java/com/cloudera/service/common/config/kafka/ClouderaManagementKafkaProperties.java
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...src/main/java/com/cloudera/service/common/config/kafka/ClouderaWorkerKafkaProperties.java
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
...ber-service-common/src/main/java/com/cloudera/service/common/request/AbstractRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.cloudera.service.common.request; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public abstract class AbstractRequest { | ||
protected final String requestId; | ||
} |
48 changes: 48 additions & 0 deletions
48
...vice-common/src/main/java/com/cloudera/service/common/request/ClusterPipelineRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package com.cloudera.service.common.request; | ||
|
||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
|
||
import java.util.List; | ||
|
||
|
||
@Getter | ||
@Setter | ||
@ToString | ||
@EqualsAndHashCode(callSuper = true) | ||
public class ClusterPipelineRequest extends AbstractRequest { | ||
private final String pipelineName; | ||
private final String branch; | ||
private final String profileName; | ||
private final String parserName; | ||
private final String gitUrl; | ||
private final String userName; | ||
private final String password; | ||
private final List<String> jobs; | ||
|
||
@JsonCreator | ||
public ClusterPipelineRequest( | ||
@JsonProperty("requestId") String requestId, | ||
@JsonProperty("pipelineName") String pipelineName, | ||
@JsonProperty("branch") String branch, | ||
@JsonProperty("profileName") String profileName, | ||
@JsonProperty("parserName") String parserName, | ||
@JsonProperty("gitUrl") String gitUrl, | ||
@JsonProperty("userName") String userName, | ||
@JsonProperty("password") String password, | ||
@JsonProperty("jobs") List<String> jobs) { | ||
super(requestId); | ||
this.pipelineName = pipelineName; | ||
this.branch = branch; | ||
this.profileName = profileName; | ||
this.gitUrl = gitUrl; | ||
this.userName = userName; | ||
this.password = password; | ||
this.jobs = jobs; | ||
this.parserName = parserName; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...yber-service-common/src/main/java/com/cloudera/service/common/request/ClusterRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.cloudera.service.common.request; | ||
|
||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
@Setter | ||
@EqualsAndHashCode(callSuper = true) | ||
@ToString | ||
public class ClusterRequest extends AbstractRequest{ | ||
private final String clusterId; | ||
private final List<String> jobs; | ||
|
||
public ClusterRequest(String requestId, String clusterId, List<String> jobs) { | ||
super(requestId); | ||
this.clusterId = clusterId; | ||
this.jobs = jobs; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/cyber-service-common/src/main/java/com/cloudera/service/common/request/RequestType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package com.cloudera.service.common.request; | ||
|
||
public enum RequestType { | ||
GET_ALL_CLUSTERS_SERVICE_REQUEST, GET_CLUSTER_SERVICE_REQUEST, START_JOB_REQUEST, RESTART_JOB_REQUEST, STOP_JOB_REQUEST, GET_JOB_CONFIG_REQUEST, CREATE_EMPTY_PIPELINE, START_ARCHIVE_PIPELINE, UPDATE_JOB_CONFIG_REQUEST | ||
GET_ALL_CLUSTERS_SERVICE_REQUEST, GET_CLUSTER_SERVICE_REQUEST, START_JOB_REQUEST, RESTART_JOB_REQUEST, STOP_JOB_REQUEST, GET_JOB_CONFIG_REQUEST, CREATE_EMPTY_PIPELINE, START_PIPELINE, UPDATE_JOB_CONFIG_REQUEST | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...cyber-service-common/src/main/java/com/cloudera/service/common/response/ResponseType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package com.cloudera.service.common.response; | ||
|
||
public enum ResponseType { | ||
GET_ALL_CLUSTERS_SERVICE_RESPONSE, GET_CLUSTER_SERVICE_RESPONSE, START_JOB_RESPONSE, RESTART_JOB_RESPONSE, STOP_JOB_RESPONSE, GET_JOB_CONFIG_RESPONSE, UPDATE_JOB_CONFIG_RESPONSE, CREATE_EMPTY_PIPELINE_RESPONSE, START_ARCHIVE_PIPELINE_RESPONSE, ERROR_RESPONSE | ||
GET_ALL_CLUSTERS_SERVICE_RESPONSE, GET_CLUSTER_SERVICE_RESPONSE, START_JOB_RESPONSE, RESTART_JOB_RESPONSE, STOP_JOB_RESPONSE, GET_JOB_CONFIG_RESPONSE, UPDATE_JOB_CONFIG_RESPONSE, CREATE_EMPTY_PIPELINE_RESPONSE, START_PIPELINE_RESPONSE, ERROR_RESPONSE | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
...config/kafka/ClouderaKafkaProperties.java → ...onfiguration/ClouderaKafkaProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...er-worker-service/src/main/java/com/cloudera/cyber/restcli/configuration/KafkaConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
...rker-service/src/main/java/com/cloudera/cyber/restcli/configuration/WebConfiguration.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.