public class DynamicHandlerMapFactory extends HandlerMapFactory
HandlerMapFactory.ReturnHandlerByRoleOrPrefix| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.cache.LoadingCache<String,ClusterActionHandler> |
cache |
protected Map<String,ClusterActionHandler> |
clusterActionHandlerMap |
| Constructor and Description |
|---|
DynamicHandlerMapFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(ClusterActionHandler clusterActionHandler) |
com.google.common.cache.LoadingCache<String,ClusterActionHandler> |
create() |
void |
unbind(ClusterActionHandler clusterActionHandler) |
createprotected final Map<String,ClusterActionHandler> clusterActionHandlerMap
protected final com.google.common.cache.LoadingCache<String,ClusterActionHandler> cache
public com.google.common.cache.LoadingCache<String,ClusterActionHandler> create()
create in class HandlerMapFactorypublic void bind(ClusterActionHandler clusterActionHandler)
public void unbind(ClusterActionHandler clusterActionHandler)
Copyright © 2010–2016 Cloudera. All rights reserved.