Added new HTTP pool manager and http handling.

This commit is contained in:
Admin
2017-11-15 14:27:44 -06:00
parent d8d5e8f39a
commit df85c8a349
22 changed files with 311 additions and 132 deletions

View File

@@ -19,10 +19,13 @@ import com.bwssystems.HABridge.hue.TimeDecode;
public class CommandHome implements Home {
private static final Logger log = LoggerFactory.getLogger(CommandHome.class);
private BridgeSettings theSettings;
private boolean closed;
public CommandHome(BridgeSettings bridgeSettings) {
super();
closed = true;
createHome(bridgeSettings);
closed = false;
}
@Override
@@ -93,8 +96,13 @@ public class CommandHome implements Home {
@Override
public void closeHome() {
// noop
log.debug("Closing Home.");
if(closed) {
log.debug("Home is already closed....");
return;
}
closed = true;
}
}