public class RESTServlet extends Object implements RestConstants
CRLF, DEFAULT_LISTEN_PORT, DEFAULT_MAX_AGE, MIMETYPE_BINARY, MIMETYPE_HTML, MIMETYPE_JSON, MIMETYPE_PROTOBUF, MIMETYPE_PROTOBUF_IETF, MIMETYPE_TEXT, MIMETYPE_XML, VERSION_STRING
Modifier and Type | Method and Description |
---|---|
List<String> |
getChildren(String znode) |
static RESTServlet |
getInstance() |
static RESTServlet |
getInstance(org.apache.hadoop.conf.Configuration conf) |
List<String> |
getMaster() |
String |
getParentZnode() |
List<String> |
getRegistered() |
List<String> |
getRunning() |
ZkClient |
getZk() |
static void |
stop() |
public static RESTServlet getInstance() throws IOException
IOException
public static RESTServlet getInstance(org.apache.hadoop.conf.Configuration conf) throws IOException
conf
- Existing configuration to use in rest servletIOException
public ZkClient getZk()
public String getParentZnode()
public static void stop()
public List<String> getChildren(String znode) throws IOException
IOException
public List<String> getMaster() throws IOException
IOException
public List<String> getRunning() throws IOException
IOException
public List<String> getRegistered() throws IOException
IOException
Copyright © 2016. All rights reserved.