Skip to content

Commit

Permalink
v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Stu Arnett committed May 15, 2015
1 parent d606477 commit 44daedf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/emc/rest/smart/PollingDaemon.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
* Polling thread that will terminate automatically when the application exits
*/
public class PollingDaemon extends Thread {
public static final String PROPERTY_KEY = "com.emc.rest.smart.pollingDaemon";

private static final Logger l4j = Logger.getLogger(PollingDaemon.class);

private SmartConfig smartConfig;
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/com/emc/rest/smart/SmartClientFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ public static Client createSmartClient(SmartConfig smartConfig,
PollingDaemon pollingDaemon = new PollingDaemon(smartConfig);
pollingDaemon.start();

// attach the daemon thread to the client so users can stop it when finished with the client
client.getProperties().put(PollingDaemon.PROPERTY_KEY, pollingDaemon);

return client;
}

Expand Down

0 comments on commit 44daedf

Please sign in to comment.