public interface StateAccessForProviders
| Modifier and Type | Method and Description |
|---|---|
List<RoleInstance> |
cloneLiveContainerInfoList()
Create a clone of the list of live cluster nodes.
|
List<RoleInstance> |
cloneOwnedContainerList()
Clone a list of active containers
|
List<RoleStatus> |
cloneRoleStatusList()
Get a deep clone of the role status list.
|
List<RoleInstance> |
enumLiveInstancesInRole(String role)
Enum all role instances by role.
|
ConfTreeOperations |
getAppConfSnapshot()
Get at the snapshot of the appconf config
Changes here do not affect the application state.
|
ApplicationLivenessInformation |
getApplicationLivenessInformation()
get application liveness information
|
String |
getApplicationName()
Get the name of the application
|
ClusterDescription |
getClusterStatus()
Get the current cluster description
|
ComponentInformation |
getComponentInformation(String component)
Get the JSON serializable information about a component
|
Map<String,ComponentInformation> |
getComponentInfoSnapshot()
Get a snapshot of component information.
|
Map<org.apache.hadoop.yarn.api.records.ContainerId,RoleInstance> |
getFailedContainers()
Get a map of all the failed containers
|
AggregateConf |
getInstanceDefinitionSnapshot()
Get a snapshot of the entire aggregate configuration
|
ConfTreeOperations |
getInternalsSnapshot()
Get at the snapshot of the internals config.
|
Map<org.apache.hadoop.yarn.api.records.ContainerId,RoleInstance> |
getLiveContainers()
Get the live containers.
|
RoleInstance |
getLiveInstanceByContainerID(String containerId)
Get the
RoleInstance details on a container. |
List<RoleInstance> |
getLiveInstancesByContainerIDs(Collection<String> containerIDs)
Get the details on a list of instaces referred to by ID.
|
Map<String,Integer> |
getLiveStatistics()
Get the live statistics map
|
NodeInformation |
getNodeInformation(String hostname)
get information on a node
|
Map<String,NodeInformation> |
getNodeInformationSnapshot()
Get a clone of the nodemap.
|
int |
getNumOwnedContainers()
Get the number of active containers
|
PublishedConfigSet |
getOrCreatePublishedConfigSet(String name)
Get a named published config set, creating it if need be.
|
RoleInstance |
getOwnedContainer(org.apache.hadoop.yarn.api.records.ContainerId id)
Get any active container with the given ID
|
RoleInstance |
getOwnedContainer(String id)
Get any active container with the given ID
|
PublishedConfigSet |
getPublishedConfigSet(String name)
Get a named published config set
|
PublishedExportsSet |
getPublishedExportsSet()
Get the published exports set
|
PublishedConfigSet |
getPublishedSliderConfigurations()
Get the published configurations
|
ConfTreeOperations |
getResourcesSnapshot()
Get at the snapshot of the resource config
Changes here do not affect the application state.
|
Map<String,Map<String,ClusterNode>> |
getRoleClusterNodeMapping()
Find out about the nodes for specific roles
|
RoleStatistics |
getRoleStatistics()
Get the aggregate statistics across all roles
|
Map<Integer,RoleStatus> |
getRoleStatusMap()
Get a map of role status entries by role Id
|
long |
getSnapshotTime() |
AggregateConf |
getUnresolvedInstanceDefinition()
Get the desired/unresolved value
|
boolean |
isApplicationLive()
Flag set to indicate the application is live -this only happens
after the buildInstance operation
|
List<String> |
listConfigSets()
List the config sets -this takes a clone of the current set
|
List<RoleInstance> |
lookupRoleContainers(String component)
Look up all containers of a specific component name
|
RoleStatus |
lookupRoleStatus(org.apache.hadoop.yarn.api.records.Container c)
Look up a role from its key -or fail
|
RoleStatus |
lookupRoleStatus(int key)
Look up a role from its key -or fail
|
RoleStatus |
lookupRoleStatus(String name)
Look up a role from its key -or fail
|
ClusterDescription |
refreshClusterStatus()
Update the cluster description with anything interesting
|
Map<Integer,RoleStatus> getRoleStatusMap()
String getApplicationName()
PublishedConfigSet getPublishedSliderConfigurations()
PublishedExportsSet getPublishedExportsSet()
PublishedConfigSet getPublishedConfigSet(String name)
name - name to look upPublishedConfigSet getOrCreatePublishedConfigSet(String name)
name - name to look upList<String> listConfigSets()
Map<org.apache.hadoop.yarn.api.records.ContainerId,RoleInstance> getFailedContainers()
Map<org.apache.hadoop.yarn.api.records.ContainerId,RoleInstance> getLiveContainers()
ClusterDescription getClusterStatus()
ConfTreeOperations getResourcesSnapshot()
ConfTreeOperations getAppConfSnapshot()
ConfTreeOperations getInternalsSnapshot()
boolean isApplicationLive()
long getSnapshotTime()
AggregateConf getInstanceDefinitionSnapshot()
AggregateConf getUnresolvedInstanceDefinition()
RoleStatus lookupRoleStatus(int key)
key - key to resolveorg.apache.hadoop.yarn.exceptions.YarnRuntimeException - on no matchRoleStatus lookupRoleStatus(org.apache.hadoop.yarn.api.records.Container c) throws org.apache.hadoop.yarn.exceptions.YarnRuntimeException
c - container in a roleorg.apache.hadoop.yarn.exceptions.YarnRuntimeException - on no matchRoleStatus lookupRoleStatus(String name) throws org.apache.hadoop.yarn.exceptions.YarnRuntimeException
name - container in a roleorg.apache.hadoop.yarn.exceptions.YarnRuntimeException - on no matchList<RoleInstance> cloneOwnedContainerList()
int getNumOwnedContainers()
RoleInstance getOwnedContainer(org.apache.hadoop.yarn.api.records.ContainerId id)
id - container IdRoleInstance getOwnedContainer(String id) throws NoSuchNodeException
id - container IdNoSuchNodeExceptionList<RoleInstance> cloneLiveContainerInfoList()
RoleInstance getLiveInstanceByContainerID(String containerId) throws NoSuchNodeException
RoleInstance details on a container.
This is an O(n) operationcontainerId - the container IDNoSuchNodeException - if the node cannot be foundList<RoleInstance> getLiveInstancesByContainerIDs(Collection<String> containerIDs)
containerIDs - the containersClusterDescription refreshClusterStatus()
List<RoleStatus> cloneRoleStatusList()
ApplicationLivenessInformation getApplicationLivenessInformation()
Map<String,Integer> getLiveStatistics()
StatusKeys
keylist.Map<String,ComponentInformation> getComponentInfoSnapshot()
This does not include any container list, which is more expensive to create.
Map<String,Map<String,ClusterNode>> getRoleClusterNodeMapping()
List<RoleInstance> enumLiveInstancesInRole(String role)
role - role, or "" for all rolesList<RoleInstance> lookupRoleContainers(String component)
component - component/role nameComponentInformation getComponentInformation(String component)
component - component to look upMap<String,NodeInformation> getNodeInformationSnapshot()
NodeInformation getNodeInformation(String hostname)
hostname - hostname to look upRoleStatistics getRoleStatistics()
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.