com.cloudera.api.v8
Interface MgmtRolesResourceV8

All Superinterfaces:
MgmtRolesResource
All Known Subinterfaces:
MgmtRolesResourceV18

public interface MgmtRolesResourceV8
extends MgmtRolesResource


Method Summary
 InputStream getFullLog(String roleName)
          Retrieves the log file for the role's main process.
 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.
 InputStream getStandardError(String roleName)
          Retrieves the role's standard error output.
 InputStream getStandardOutput(String roleName)
          Retrieves the role's standard output.
 
Methods inherited from interface com.cloudera.api.v1.MgmtRolesResource
createRoles, deleteRole, listActiveCommands, readRole, readRoleConfig, readRoles, updateRoleConfig
 

Method Detail

getFullLog

@Path(value="/{roleName}/logs/full")
InputStream getFullLog(String roleName)
Retrieves the log file for the role's main process.

If the role is not started, this will be the log file associated with the last time the role was run.

Log files are returned as plain text (type "text/plain").

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

getStandardOutput

@Path(value="/{roleName}/logs/stdout")
InputStream getStandardOutput(String roleName)
Retrieves the role's standard output.

If the role is not started, this will be the output associated with the last time the role was run.

Log files are returned as plain text (type "text/plain").

Parameters:
roleName - The role to fetch stdout from.
Returns:
Contents of the role's standard output.

getStandardError

@Path(value="/{roleName}/logs/stderr")
InputStream getStandardError(String roleName)
Retrieves the role's standard error output.

If the role is not started, this will be the output associated with the last time the role was run.

Log files are returned as plain text (type "text/plain").

Parameters:
roleName - The role to fetch stderr from.
Returns:
Contents of the role's standard error output.

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.