public class PublisherResource extends AbstractSliderResource
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASSPATH |
static String |
CONFIG |
static String |
EXPORT_RESOURCE_PATH |
static String |
EXPORTS_NAME |
static String |
EXPORTS_RESOURCES_PATH |
protected static org.slf4j.Logger |
log |
static String |
SET_NAME |
static String |
SETNAME |
static String |
SETNAME_PATTERN |
metricsAndMonitoring, slider| Constructor and Description |
|---|
PublisherResource(WebAppApi slider) |
| Modifier and Type | Method and Description |
|---|---|
UriMap |
enumConfigSets(javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletResponse res) |
PublishedExportsSet |
gePublishedExports() |
Set<URL> |
getAMClassPath() |
PublishedExports |
getAMExports2(String exportname,
javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletResponse res) |
String |
getConfigurationContentJson(String setname,
String config,
javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletResponse res) |
String |
getConfigurationContentProperties(String setname,
String config,
javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletResponse res) |
String |
getConfigurationContentXML(String setname,
String config,
javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletResponse res) |
PublishedConfiguration |
getConfigurationInstance(String setname,
String config,
javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletResponse res) |
Map<String,String> |
getConfigurationProperty(String setname,
String config,
String propertyName,
javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletResponse res) |
PublishedConfiguration |
getPublishedConfiguration(String setname,
String config)
Get a configuration
|
PublishedConfigSet |
getPublishedConfiguration(String setname,
javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletResponse res) |
String |
getStringRepresentation(String setname,
String config,
javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletResponse res,
ConfigFormat format) |
buildException, mark, mark, markDelete, markGet, markGet, markPost, markPut, redirectToAppWadlprotected static final org.slf4j.Logger log
public static final String EXPORTS_NAME
public static final String EXPORTS_RESOURCES_PATH
public static final String EXPORT_RESOURCE_PATH
public static final String SET_NAME
public static final String SETNAME
public static final String CLASSPATH
public static final String CONFIG
public static final String SETNAME_PATTERN
public PublisherResource(WebAppApi slider)
public UriMap enumConfigSets(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.servlet.http.HttpServletResponse res)
public PublishedExportsSet gePublishedExports()
public PublishedExports getAMExports2(String exportname, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.servlet.http.HttpServletResponse res)
public PublishedConfigSet getPublishedConfiguration(String setname, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.servlet.http.HttpServletResponse res)
public PublishedConfiguration getConfigurationInstance(String setname, String config, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.servlet.http.HttpServletResponse res)
public PublishedConfiguration getPublishedConfiguration(String setname, String config)
setname - name of the config setconfig - configorg.apache.hadoop.yarn.webapp.NotFoundException - if there was no matching setpublic String getConfigurationContentJson(String setname, String config, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.servlet.http.HttpServletResponse res) throws IOException
IOExceptionpublic String getConfigurationContentXML(String setname, String config, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.servlet.http.HttpServletResponse res) throws IOException
IOExceptionpublic String getConfigurationContentProperties(String setname, String config, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.servlet.http.HttpServletResponse res) throws IOException
IOExceptionpublic String getStringRepresentation(String setname, String config, javax.ws.rs.core.UriInfo uriInfo, javax.servlet.http.HttpServletResponse res, ConfigFormat format) throws IOException
IOExceptionCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.