Skip to content

Instantly share code, notes, and snippets.

View danielschonfeld's full-sized avatar

Daniel Schonfeld danielschonfeld

View GitHub Profile
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);