public class LoggingRequestHelperImpl extends Object implements LoggingRequestHelper
| Modifier | Constructor and Description |
|---|---|
|
LoggingRequestHelperImpl(String hostName,
String portNumber,
String protocol,
CredentialStoreService credentialStoreService,
Cluster cluster,
String externalAddress) |
protected |
LoggingRequestHelperImpl(String hostName,
String portNumber,
String protocol,
CredentialStoreService credentialStoreService,
Cluster cluster,
String externalAddress,
org.apache.ambari.server.controller.logging.LoggingRequestHelperImpl.NetworkConnection networkConnection) |
| Modifier and Type | Method and Description |
|---|---|
protected static org.codehaus.jackson.map.ObjectMapper |
createJSONObjectMapper() |
String |
createLogFileTailURI(String baseURI,
String componentName,
String hostName)
Generates the log file tail URI, using the LogSearch server's
query parameters.
|
int |
getLogSearchConnectTimeoutInMilliseconds() |
int |
getLogSearchReadTimeoutInMilliseconds() |
HostLogFilesResponse |
sendGetLogFileNamesRequest(String hostName)
Sends a request to obtain the log file names for a given host
|
LogLevelQueryResponse |
sendLogLevelQueryRequest(String componentName,
String hostName)
Sends a request to obtain the log level counts for a given component on
a given host
|
LogQueryResponse |
sendQueryRequest(Map<String,String> queryParameters)
Sends a search query request to the LogSearch server
|
void |
setLogSearchConnectTimeoutInMilliseconds(int logSearchConnectTimeoutInMilliseconds) |
void |
setLogSearchReadTimeoutInMilliseconds(int logSearchReadTimeoutInMilliseconds) |
public LoggingRequestHelperImpl(String hostName, String portNumber, String protocol, CredentialStoreService credentialStoreService, Cluster cluster, String externalAddress)
protected LoggingRequestHelperImpl(String hostName, String portNumber, String protocol, CredentialStoreService credentialStoreService, Cluster cluster, String externalAddress, org.apache.ambari.server.controller.logging.LoggingRequestHelperImpl.NetworkConnection networkConnection)
public int getLogSearchConnectTimeoutInMilliseconds()
public void setLogSearchConnectTimeoutInMilliseconds(int logSearchConnectTimeoutInMilliseconds)
public int getLogSearchReadTimeoutInMilliseconds()
public void setLogSearchReadTimeoutInMilliseconds(int logSearchReadTimeoutInMilliseconds)
public LogQueryResponse sendQueryRequest(Map<String,String> queryParameters)
LoggingRequestHelpersendQueryRequest in interface LoggingRequestHelperqueryParameters - the query parameters to pass to LogSearchpublic HostLogFilesResponse sendGetLogFileNamesRequest(String hostName)
LoggingRequestHelpersendGetLogFileNamesRequest in interface LoggingRequestHelperhostName - the host namepublic LogLevelQueryResponse sendLogLevelQueryRequest(String componentName, String hostName)
LoggingRequestHelpersendLogLevelQueryRequest in interface LoggingRequestHelpercomponentName - the component namehostName - the host namepublic String createLogFileTailURI(String baseURI, String componentName, String hostName)
createLogFileTailURI in interface LoggingRequestHelperbaseURI - the base URI for this request, typically the URI to the
Ambari Integration searchEngine componentcomponentName - the component namehostName - the host nameprotected static org.codehaus.jackson.map.ObjectMapper createJSONObjectMapper()
Copyright © 2022 Apache Software Foundation. All rights reserved.