package org.dummy.load;

/**
 * Created by baardl on 26.07.15.
 */
public class LoadThread implements Runnable {

    private final int sleepMillis;

    public LoadThread(int sleepMillis) {
        this.sleepMillis = sleepMillis;
    }

    @Override
    public void run() {
        do {
            performVisibleLoad();
            try {
                Thread.sleep(sleepMillis);
            } catch (InterruptedException e) {
                //sleep interupted
            }
        } while (true);
    }

    public void performVisibleLoad() {
        System.out.println("Hello You at " + System.currentTimeMillis());
    }
}

package org.dummy.load;

/**
 * Created by baardl on 26.07.15.
 */
public class LoadThread implements Runnable {

    private final int sleepMillis;

    public LoadThread(int sleepMillis) {
        this.sleepMillis = sleepMillis;
    }

    @Override
    public void run() {
        do {
            System.out.println("Hello You at " + System.currentTimeMillis());
            try {
                Thread.sleep(sleepMillis);
            } catch (InterruptedException e) {
                //sleep interupted
            }
        } while (true);
    }
}

--- 
+++ 
@@ -14,7 +14,7 @@
     @Override
     public void run() {
         do {
-            System.out.println("Hello You at " + System.currentTimeMillis());
+            performVisibleLoad();
             try {
                 Thread.sleep(sleepMillis);
             } catch (InterruptedException e) {
@@ -22,4 +22,8 @@
             }
         } while (true);
     }
+
+    public void performVisibleLoad() {
+        System.out.println("Hello You at " + System.currentTimeMillis());
+    }
 }
Load is picked up by Valuereporter-agent.
