Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
1,119 additions
and
196 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package edu.tamu.app.cache; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import edu.tamu.app.cache.model.ProjectStats; | ||
|
||
public class ProjectsStatsCache extends AbstractCache<List<ProjectStats>> { | ||
|
||
public ProjectsStatsCache() { | ||
set(new ArrayList<ProjectStats>()); | ||
} | ||
|
||
} |
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
12 changes: 12 additions & 0 deletions
12
src/main/java/edu/tamu/app/cache/controller/ProjectsStatsCacheController.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,12 @@ | ||
package edu.tamu.app.cache.controller; | ||
|
||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
import edu.tamu.app.cache.service.ProjectsStatsScheduledCacheService; | ||
|
||
@RestController | ||
@RequestMapping("/projects/stats") | ||
public class ProjectsStatsCacheController extends AbstractCacheController<ProjectsStatsScheduledCacheService> { | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
package edu.tamu.app.cache.model; | ||
|
||
import java.io.Serializable; | ||
|
||
public class ProjectStats implements Serializable { | ||
|
||
private static final long serialVersionUID = -1622544796949909087L; | ||
|
||
private final String id; | ||
|
||
private final String name; | ||
|
||
private final int requestCount; | ||
|
||
private final int issueCount; | ||
|
||
private final int featureCount; | ||
|
||
private final int defectCount; | ||
|
||
public ProjectStats() { | ||
super(); | ||
id = ""; | ||
name = ""; | ||
requestCount = 0; | ||
issueCount = 0; | ||
featureCount = 0; | ||
defectCount = 0; | ||
} | ||
|
||
public ProjectStats(String id, String name, int requestCount, int issueCount, int featureCount, int defectCount) { | ||
super(); | ||
this.id = id; | ||
this.name = name; | ||
this.requestCount = requestCount; | ||
this.issueCount = issueCount; | ||
this.featureCount = featureCount; | ||
this.defectCount = defectCount; | ||
} | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public int getRequestCount() { | ||
return requestCount; | ||
} | ||
|
||
public int getIssueCount() { | ||
return issueCount; | ||
} | ||
|
||
public int getFeatureCount() { | ||
return featureCount; | ||
} | ||
|
||
public int getDefectCount() { | ||
return defectCount; | ||
} | ||
|
||
public int getBacklogItemCount() { | ||
return featureCount + defectCount; | ||
} | ||
|
||
} |
Oops, something went wrong.