com.cloudera.api.v8
Interface RolesResourceV8

All Superinterfaces:
RolesResource, RolesResourceV2, RolesResourceV4, RolesResourceV6
All Known Subinterfaces:
RolesResourceV11

public interface RolesResourceV8
extends RolesResourceV6


Method Summary
 InputStream getStacksLog(String roleName)
          Retrieves the stacks log file, if any, for the role's main process.
 InputStream getStacksLogsBundle(String roleName)
          Download a zip-compressed archive of role stacks logs.
 
Methods inherited from interface com.cloudera.api.v6.RolesResourceV6
bulkDeleteRoles, listCommands, readRoles
 
Methods inherited from interface com.cloudera.api.v4.RolesResourceV4
getProcessesResource
 
Methods inherited from interface com.cloudera.api.v2.RolesResourceV2
enterMaintenanceMode, exitMaintenanceMode
 
Methods inherited from interface com.cloudera.api.v1.RolesResource
createRoles, deleteRole, getFullLog, getMetrics, getStandardError, getStandardOutput, listActiveCommands, readRole, readRoleConfig, readRoles, updateRoleConfig
 

Method Detail

getStacksLog

@Path(value="/{roleName}/logs/stacks")
InputStream getStacksLog(String roleName)
Retrieves the stacks log file, if any, for the role's main process. Note that not all roles support periodic stacks collection. The log files are returned as plain text (type "text/plain").

Parameters:
roleName - The role to fetch stacks logs from.
Returns:
Contents of the role's log file.

getStacksLogsBundle

@Path(value="/{roleName}/logs/stacksBundle")
InputStream getStacksLogsBundle(String roleName)
Download a zip-compressed archive of role stacks logs. Note that not all roles support periodic stacks collection.

Parameters:
roleName - The role to fetch the stacks logs bundle from.
Returns:
The archive data.


Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.