public interface MgmtServiceResource
Modifier and Type | Method and Description |
---|---|
MgmtRoleCommandsResource |
getMgmtRoleCommandsResource()
Returns the management role commands resource handler.
|
MgmtRolesResource |
getRolesResource()
Return the management roles resource handler.
|
ApiCommandList |
listActiveCommands(DataView dataView)
List active Cloudera Management Services commands.
|
ApiRoleTypeList |
listRoleTypes()
List the supported role types for the Cloudera Management Services.
|
ApiService |
readService()
Retrieve information about the Cloudera Management Services.
|
ApiServiceConfig |
readServiceConfig(DataView dataView)
Retrieve the configuration of the Cloudera Management Services.
|
ApiCommand |
restartCommand()
Restart the Cloudera Management Services.
|
ApiService |
setupCMS(ApiService service)
Setup the Cloudera Management Services.
|
ApiCommand |
startCommand()
Start the Cloudera Management Services.
|
ApiCommand |
stopCommand()
Stop the Cloudera Management Services.
|
ApiServiceConfig |
updateServiceConfig(String message,
ApiServiceConfig config)
Update the Cloudera Management Services configuration.
|
@Path(value="/") ApiService readService()
javax.ws.rs.NotFoundException
- if no service exists.@Path(value="/config") ApiServiceConfig readServiceConfig(DataView dataView)
dataView
- The view of the data to materialize,
either "summary" or "full".javax.ws.rs.NotFoundException
- if no service exists.@Path(value="/config") ApiServiceConfig updateServiceConfig(String message, ApiServiceConfig config)
If a value is set in the given configuration, it will be added to the service's configuration, replacing any existing entries. If a value is unset (its value is null), the existing configuration for the attribute will be erased, if any.
Attributes that are not listed in the input will maintain their current values in the configuration.
message
- Optional message describing the changes.config
- Configuration changes.javax.ws.rs.ClientErrorException
- if no service exists.@Path(value="/roleTypes") ApiRoleTypeList listRoleTypes()
javax.ws.rs.NotFoundException
- if no service exists.@Path(value="/commands") ApiCommandList listActiveCommands(DataView dataView)
dataView
- The view of the data to materialize,
either "summary" or "full".javax.ws.rs.NotFoundException
- if no service exists.@Path(value="/commands/start") ApiCommand startCommand()
javax.ws.rs.NotFoundException
- if no service exists.@Path(value="/commands/stop") ApiCommand stopCommand()
javax.ws.rs.NotFoundException
- if no service exists.@Path(value="/commands/restart") ApiCommand restartCommand()
javax.ws.rs.NotFoundException
- if no service exists.@Path(value="/") ApiService setupCMS(ApiService service)
Configure the CMS instance and create all the management roles. The provided configuration data can be used to set up host mappings for each role, and required configuration such as database connection information for specific roles.
Regardless of the list of roles provided in the input data, all management roles are created by this call. The input is used to override any default settings for the specific roles.
This method needs a valid CM license to be installed beforehand.
This method does not start any services or roles.
This method will fail if a CMS instance already exists.
Available role types:
service
- Role configuration overrides.@Path(value="/roles") MgmtRolesResource getRolesResource()
@Path(value="/roleCommands") MgmtRoleCommandsResource getMgmtRoleCommandsResource()
Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.