This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MetricsWeb extends BaseTaskHook { | |
private static final Logger log = LoggerFactory.getLogger(MetricsWeb.class); | |
private static Server server = null; | |
private static CuratorFramework zk = null; | |
private static ServiceDiscovery<Void> dsc = null; | |
@Override | |
public void prepare(Map conf, TopologyContext context) { | |
if ("production".equals(conf.get("environment"))) { | |
initWebConsole(9090); |