Permalink
Browse files

Three BlameDisplays, add title to BlameDisplay

  • Loading branch information...
1 parent 3124bed commit 107a1c1389d65897e31331c9698a1faf340838d4 @philandstuff committed Feb 13, 2011
Showing with 9 additions and 5 deletions.
  1. +9 −5 src/main/com/thoughtworks/go/monitor/BuildStatusMonitor.java
@@ -7,21 +7,25 @@
private static final String goServer = "twu-ci";
public static void main(String[] args) throws InterruptedException {
- BlameDisplay buildDisplay = new BlameDisplay();
- BlameDisplay wordpressDisplay = new BlameDisplay();
+ BlameDisplay buildDisplay = new BlameDisplay("Build");
+ BlameDisplay deployDisplay = new BlameDisplay("Deploy to staging");
+ BlameDisplay wordpressDisplay = new BlameDisplay("Deploy Wordpress");
JFrame frame = createFrame();
- frame.setLayout(new GridLayout(2,1));
- frame.add(buildDisplay.createWindow());
- frame.add(wordpressDisplay.createWindow());
+ frame.setLayout(new GridLayout(3,1));
+ frame.add(buildDisplay.getPanel());
+ frame.add(deployDisplay.getPanel());
+ frame.add(wordpressDisplay.getPanel());
frame.setVisible(true);
StageMonitor buildMonitor = new StageMonitor("all", "build", goServer, buildDisplay, new SongListener());
+ StageMonitor deployMonitor = new StageMonitor("all", "deploy-staging", goServer, deployDisplay, new SongListener());
StageMonitor wordpressMonitor = new StageMonitor("wordpress-cms", "manual-deploy-to-staging-server", goServer, wordpressDisplay, new SongListener());
while (true) {
try {
buildMonitor.pollForNewCompletion();
+ deployMonitor.pollForNewCompletion();
wordpressMonitor.pollForNewCompletion();
Thread.sleep(10000);
System.out.println("Polling...");

0 comments on commit 107a1c1

Please sign in to comment.