org.apache.ambari.view
Interface ViewController


public interface ViewController

View controller.


Method Summary
 void fireEvent(String eventId, Map<String,String> eventProperties)
          Notify all listeners registered to listen to this view of the given view event.
 void registerListener(Listener listener, String viewName)
          Register a listener to listen for events from the view identified by the given name.
 void registerListener(Listener listener, String viewName, String viewVersion)
          Register a listener to listen for events from the view identified by the given name and version.
 void unregisterListener(Listener listener, String viewName)
          Un-register the listener that is registered for the view identified by the given name.
 void unregisterListener(Listener listener, String viewName, String viewVersion)
          Un-register the listener that is registered for the view identified by the given name and version.
 

Method Detail

fireEvent

void fireEvent(String eventId,
               Map<String,String> eventProperties)
Notify all listeners registered to listen to this view of the given view event.

Parameters:
eventId - the event id
eventProperties - the event properties

registerListener

void registerListener(Listener listener,
                      String viewName)
Register a listener to listen for events from the view identified by the given name.

Parameters:
listener - the listener
viewName - the view to listen to

registerListener

void registerListener(Listener listener,
                      String viewName,
                      String viewVersion)
Register a listener to listen for events from the view identified by the given name and version.

Parameters:
listener - the listener
viewName - the view to listen to
viewVersion - the view version

unregisterListener

void unregisterListener(Listener listener,
                        String viewName)
Un-register the listener that is registered for the view identified by the given name.

Parameters:
listener - the listener
viewName - the view to listen to

unregisterListener

void unregisterListener(Listener listener,
                        String viewName,
                        String viewVersion)
Un-register the listener that is registered for the view identified by the given name and version.

Parameters:
listener - the listener
viewName - the view to listen to
viewVersion - the view version


Copyright © 2015 Apache Software Foundation. All rights reserved.