public class ViewContextImpl extends Object implements org.apache.ambari.view.ViewContext, org.apache.ambari.view.ViewController
| Modifier and Type | Field and Description |
|---|---|
static String |
CORE_SITE |
static String |
HADOOP_SECURITY_AUTH_TO_LOCAL |
static String |
HDFS_AUTH_TO_LOCAL |
| Constructor and Description |
|---|
ViewContextImpl(ViewEntity viewEntity,
ViewRegistry viewRegistry)
Construct a view context from the given view entity.
|
ViewContextImpl(ViewInstanceEntity viewInstanceEntity,
ViewRegistry viewRegistry)
Construct a view context from the given view instance entity.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fireEvent(String eventId,
Map<String,String> eventProperties) |
org.apache.ambari.view.AmbariStreamProvider |
getAmbariClusterStreamProvider() |
String |
getAmbariProperty(String key) |
org.apache.ambari.view.AmbariStreamProvider |
getAmbariStreamProvider() |
org.apache.ambari.view.cluster.Cluster |
getCluster() |
org.apache.ambari.view.ViewController |
getController() |
org.apache.ambari.view.DataStore |
getDataStore() |
HttpImpersonatorImpl |
getHttpImpersonator() |
org.apache.ambari.view.ImpersonatorSetting |
getImpersonatorSetting() |
Map<String,String> |
getInstanceData() |
String |
getInstanceData(String key) |
String |
getInstanceName() |
String |
getLoggedinUser() |
Map<String,String> |
getProperties() |
org.apache.ambari.view.ResourceProvider<?> |
getResourceProvider(String type) |
org.apache.ambari.view.URLConnectionProvider |
getURLConnectionProvider() |
org.apache.ambari.view.URLStreamProvider |
getURLStreamProvider() |
String |
getUsername() |
org.apache.ambari.view.ViewDefinition |
getViewDefinition() |
Collection<org.apache.ambari.view.ViewDefinition> |
getViewDefinitions() |
org.apache.ambari.view.ViewInstanceDefinition |
getViewInstanceDefinition() |
Collection<org.apache.ambari.view.ViewInstanceDefinition> |
getViewInstanceDefinitions() |
String |
getViewName() |
void |
hasPermission(String userName,
String permissionName) |
void |
putInstanceData(String key,
String value) |
void |
registerListener(org.apache.ambari.view.events.Listener listener,
String viewName) |
void |
registerListener(org.apache.ambari.view.events.Listener listener,
String viewName,
String viewVersion) |
void |
removeInstanceData(String key) |
void |
unregisterListener(org.apache.ambari.view.events.Listener listener,
String viewName) |
void |
unregisterListener(org.apache.ambari.view.events.Listener listener,
String viewName,
String viewVersion) |
public static final String HADOOP_SECURITY_AUTH_TO_LOCAL
public static final String CORE_SITE
public static final String HDFS_AUTH_TO_LOCAL
public ViewContextImpl(ViewInstanceEntity viewInstanceEntity, ViewRegistry viewRegistry)
viewInstanceEntity - the view entityviewRegistry - the view registrypublic ViewContextImpl(ViewEntity viewEntity, ViewRegistry viewRegistry)
viewEntity - the view entityviewRegistry - the view registrypublic String getViewName()
getViewName in interface org.apache.ambari.view.ViewContextpublic org.apache.ambari.view.ViewDefinition getViewDefinition()
getViewDefinition in interface org.apache.ambari.view.ViewContextpublic String getInstanceName()
getInstanceName in interface org.apache.ambari.view.ViewContextpublic org.apache.ambari.view.ViewInstanceDefinition getViewInstanceDefinition()
getViewInstanceDefinition in interface org.apache.ambari.view.ViewContextpublic Map<String,String> getProperties()
getProperties in interface org.apache.ambari.view.ViewContextpublic void putInstanceData(String key, String value)
putInstanceData in interface org.apache.ambari.view.ViewContextpublic String getInstanceData(String key)
getInstanceData in interface org.apache.ambari.view.ViewContextpublic Map<String,String> getInstanceData()
getInstanceData in interface org.apache.ambari.view.ViewContextpublic void removeInstanceData(String key)
removeInstanceData in interface org.apache.ambari.view.ViewContextpublic String getAmbariProperty(String key)
getAmbariProperty in interface org.apache.ambari.view.ViewContextpublic org.apache.ambari.view.ResourceProvider<?> getResourceProvider(String type)
getResourceProvider in interface org.apache.ambari.view.ViewContextpublic String getUsername()
getUsername in interface org.apache.ambari.view.ViewContextpublic String getLoggedinUser()
getLoggedinUser in interface org.apache.ambari.view.ViewContextpublic void hasPermission(String userName, String permissionName) throws org.apache.ambari.view.SecurityException
hasPermission in interface org.apache.ambari.view.ViewContextorg.apache.ambari.view.SecurityExceptionpublic org.apache.ambari.view.URLStreamProvider getURLStreamProvider()
getURLStreamProvider in interface org.apache.ambari.view.ViewContextpublic org.apache.ambari.view.URLConnectionProvider getURLConnectionProvider()
getURLConnectionProvider in interface org.apache.ambari.view.ViewContextpublic org.apache.ambari.view.AmbariStreamProvider getAmbariStreamProvider()
getAmbariStreamProvider in interface org.apache.ambari.view.ViewContextpublic org.apache.ambari.view.AmbariStreamProvider getAmbariClusterStreamProvider()
getAmbariClusterStreamProvider in interface org.apache.ambari.view.ViewContextpublic org.apache.ambari.view.DataStore getDataStore()
getDataStore in interface org.apache.ambari.view.ViewContextpublic Collection<org.apache.ambari.view.ViewDefinition> getViewDefinitions()
getViewDefinitions in interface org.apache.ambari.view.ViewContextpublic Collection<org.apache.ambari.view.ViewInstanceDefinition> getViewInstanceDefinitions()
getViewInstanceDefinitions in interface org.apache.ambari.view.ViewContextpublic org.apache.ambari.view.ViewController getController()
getController in interface org.apache.ambari.view.ViewContextpublic HttpImpersonatorImpl getHttpImpersonator()
getHttpImpersonator in interface org.apache.ambari.view.ViewContextpublic org.apache.ambari.view.ImpersonatorSetting getImpersonatorSetting()
getImpersonatorSetting in interface org.apache.ambari.view.ViewContextpublic org.apache.ambari.view.cluster.Cluster getCluster()
getCluster in interface org.apache.ambari.view.ViewContextpublic void fireEvent(String eventId, Map<String,String> eventProperties)
fireEvent in interface org.apache.ambari.view.ViewControllerpublic void registerListener(org.apache.ambari.view.events.Listener listener,
String viewName)
registerListener in interface org.apache.ambari.view.ViewControllerpublic void registerListener(org.apache.ambari.view.events.Listener listener,
String viewName,
String viewVersion)
registerListener in interface org.apache.ambari.view.ViewControllerpublic void unregisterListener(org.apache.ambari.view.events.Listener listener,
String viewName)
unregisterListener in interface org.apache.ambari.view.ViewControllerCopyright © 2022 Apache Software Foundation. All rights reserved.