-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from tillias/dev
Build and visualize release path for particular microservice #57
- Loading branch information
Showing
40 changed files
with
1,177 additions
and
45 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
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
38 changes: 38 additions & 0 deletions
38
src/main/java/com/github/microcatalog/domain/custom/ReleaseGroup.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,38 @@ | ||
package com.github.microcatalog.domain.custom; | ||
|
||
import org.hibernate.annotations.Cache; | ||
import org.hibernate.annotations.CacheConcurrencyStrategy; | ||
|
||
import java.util.HashSet; | ||
import java.util.Set; | ||
|
||
/** | ||
* A ReleaseGroup. | ||
*/ | ||
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE) | ||
public class ReleaseGroup { | ||
private Set<ReleaseStep> steps = new HashSet<>(); | ||
|
||
public Set<ReleaseStep> getSteps() { | ||
return steps; | ||
} | ||
|
||
public ReleaseGroup steps(Set<ReleaseStep> releaseSteps) { | ||
this.steps = releaseSteps; | ||
return this; | ||
} | ||
|
||
public ReleaseGroup addSteps(ReleaseStep releaseStep) { | ||
this.steps.add(releaseStep); | ||
return this; | ||
} | ||
|
||
public ReleaseGroup removeSteps(ReleaseStep releaseStep) { | ||
this.steps.remove(releaseStep); | ||
return this; | ||
} | ||
|
||
public void setSteps(Set<ReleaseStep> releaseSteps) { | ||
this.steps = releaseSteps; | ||
} | ||
} |
68 changes: 68 additions & 0 deletions
68
src/main/java/com/github/microcatalog/domain/custom/ReleasePath.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,68 @@ | ||
package com.github.microcatalog.domain.custom; | ||
|
||
import com.github.microcatalog.domain.Microservice; | ||
import org.hibernate.annotations.Cache; | ||
import org.hibernate.annotations.CacheConcurrencyStrategy; | ||
|
||
import java.time.Instant; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
/** | ||
* A ReleasePath. | ||
*/ | ||
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE) | ||
public class ReleasePath { | ||
private Instant createdOn; | ||
private List<ReleaseGroup> groups = new ArrayList<>(); | ||
private Microservice target; | ||
|
||
public Instant getCreatedOn() { | ||
return createdOn; | ||
} | ||
|
||
public ReleasePath createdOn(Instant createdOn) { | ||
this.createdOn = createdOn; | ||
return this; | ||
} | ||
|
||
public void setCreatedOn(Instant createdOn) { | ||
this.createdOn = createdOn; | ||
} | ||
|
||
public List<ReleaseGroup> getGroups() { | ||
return groups; | ||
} | ||
|
||
public ReleasePath groups(List<ReleaseGroup> releaseGroups) { | ||
this.groups = releaseGroups; | ||
return this; | ||
} | ||
|
||
public ReleasePath addGroups(ReleaseGroup releaseGroup) { | ||
this.groups.add(releaseGroup); | ||
return this; | ||
} | ||
|
||
public ReleasePath removeGroups(ReleaseGroup releaseGroup) { | ||
this.groups.remove(releaseGroup); | ||
return this; | ||
} | ||
|
||
public void setGroups(List<ReleaseGroup> releaseGroups) { | ||
this.groups = releaseGroups; | ||
} | ||
|
||
public Microservice getTarget() { | ||
return target; | ||
} | ||
|
||
public ReleasePath target(Microservice microservice) { | ||
this.target = microservice; | ||
return this; | ||
} | ||
|
||
public void setTarget(Microservice microservice) { | ||
this.target = microservice; | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
src/main/java/com/github/microcatalog/domain/custom/ReleaseStep.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,42 @@ | ||
package com.github.microcatalog.domain.custom; | ||
|
||
import com.github.microcatalog.domain.Microservice; | ||
import org.hibernate.annotations.Cache; | ||
import org.hibernate.annotations.CacheConcurrencyStrategy; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* A ReleaseStep. | ||
*/ | ||
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE) | ||
public class ReleaseStep { | ||
private Microservice workItem; | ||
private List<Microservice> parentWorkItems; | ||
|
||
public Microservice getWorkItem() { | ||
return workItem; | ||
} | ||
|
||
public ReleaseStep workItem(Microservice microservice) { | ||
this.workItem = microservice; | ||
return this; | ||
} | ||
|
||
public void setWorkItem(Microservice microservice) { | ||
this.workItem = microservice; | ||
} | ||
|
||
public List<Microservice> getParentWorkItems() { | ||
return parentWorkItems; | ||
} | ||
|
||
public ReleaseStep parentWorkItems(List<Microservice> microservices) { | ||
this.parentWorkItems = microservices; | ||
return this; | ||
} | ||
|
||
public void setParentWorkItems(List<Microservice> parentWorkItems) { | ||
this.parentWorkItems = parentWorkItems; | ||
} | ||
} |
3 changes: 1 addition & 2 deletions
3
src/main/java/com/github/microcatalog/repository/DependencyRepository.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
Oops, something went wrong.