Skip to content

Commit 7c61520

Browse files
author
Joerg Huber
committed
Commented out "limited" uptime.
1 parent d49a3bf commit 7c61520

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

SIF3InfraREST/SIF3Demo/sif3-demo-web/src/test/java/sif3/test/infra/rest/consumer/TestConsumerLoader.java

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
public class TestConsumerLoader
2929
{
3030
// Local
31-
private static final String CONSUMER_ID = "StudentConsumer";
31+
// private static final String CONSUMER_ID = "StudentConsumer";
3232
// private static final String CONSUMER_ID = "RicOneConsumer";
3333

3434
// Broker
3535
// private static final String CONSUMER_ID = "BrokeredAttTrackerConsumer";
36-
// private static final String CONSUMER_ID = "QueueTestConsumer";
36+
private static final String CONSUMER_ID = "QueueTestConsumer";
3737

3838

3939
public void stopService(String serviceID)
@@ -92,22 +92,22 @@ public static void main(String[] args)
9292

9393
// Put this agent to a blocking wait.....
9494
long waitTime = 20; // seconds
95-
tester.doWait(waitTime);
95+
// tester.doWait(waitTime); // to test shutdown procedure
9696

97-
// try
98-
// {
99-
// Object semaphore = new Object();
100-
// synchronized (semaphore) // this will block until CTRL-C is pressed.
101-
// {
102-
// System.out.println("==================================================\nTestConsumerLoader is running (Press Ctrl-C to stop)\n==================================================");
103-
// semaphore.wait();
104-
// }
105-
// }
106-
// catch (Exception ex)
107-
// {
108-
// System.out.println("Blocking wait in TestConsumerLoader interrupted: " + ex.getMessage());
109-
// ex.printStackTrace();
110-
// }
97+
try
98+
{
99+
Object semaphore = new Object();
100+
synchronized (semaphore) // this will block until CTRL-C is pressed.
101+
{
102+
System.out.println("==================================================\nTestConsumerLoader is running (Press Ctrl-C to stop)\n==================================================");
103+
semaphore.wait();
104+
}
105+
}
106+
catch (Exception ex)
107+
{
108+
System.out.println("Blocking wait in TestConsumerLoader interrupted: " + ex.getMessage());
109+
ex.printStackTrace();
110+
}
111111

112112
ConsumerLoader.shutdown();
113113

0 commit comments

Comments
 (0)