/**
 *
 */
package de.sambalmueslie.extreme_feedback_device;

import de.sambalmueslie.extreme_feedback_device.ci.jenkins.JenkinsServer;
import de.sambalmueslie.extreme_feedback_device.xfd.LogExtremeFeedbackDevice;

/**
 * The controller for the extreme feedback from the continous integration.
 *
 * @author sambalmueslie 2015
 */
public class ExtremeFeedbackController {

	/**
	 * Main.
	 *
	 * @param args
	 *            the args
	 */
	public static void main(final String[] args) {
		final String host = "192.168.2.10";
		final String username = "test";
		final String password = "test";
		final String jobName = "Extreme%20Feedback%20Device";
		new ExtremeFeedbackController(host, username, password, jobName);
	}

	/**
	 * Constructor.
	 */
	public ExtremeFeedbackController(final String host, final String username, final String password, final String jobName) {
		final JenkinsServer jenkins = new JenkinsServer(host, username, password);
		final CIPollJob pollJob = new CIPollJob(jenkins, jobName, 5000, new LogExtremeFeedbackDevice());
		pollJob.start();
	}

}

@@ -496,24 +496,113 @@
 %5B%5D args) %7B%0D%0A
+%09%09// TODO get this from properties or by args%0D%0A%09%09// the host name of the jenkins server%0D%0A
 %09%09final Stri
@@ -624,24 +624,51 @@
 168.2.10%22;%0D%0A
+%09%09// the jenkins username%0D%0A
 %09%09final Stri
@@ -682,32 +682,59 @@
 name = %22test%22;%0D%0A
+%09%09// the jenkins password%0D%0A
 %09%09final String p
@@ -752,16 +752,53 @@
 test%22;%0D%0A
+%09%09// the html valid name of the job%0D%0A
 %09%09final 
@@ -1269,21 +1269,63 @@
 b.start();%0D%0A
+%09%09// TODO we need sth to stop this thing%0D%0A
 %09%7D%0D%0A%0D%0A%7D%0D%0A

add some comments