org.opennms.features.poller.remote.gwt.client.data
Class DataManager

java.lang.Object
  extended by org.opennms.features.poller.remote.gwt.client.data.DataManager
All Implemented Interfaces:
MapRemoteEventHandler

public class DataManager
extends Object
implements MapRemoteEventHandler


Field Summary
 
Fields inherited from interface org.opennms.features.poller.remote.gwt.client.remoteevents.MapRemoteEventHandler
LOCATION_EVENT_DOMAIN
 
Constructor Summary
DataManager()
           
 
Method Summary
 TreeSet<String> getAllApplicationNames()
           
 TreeSet<String> getAllLocationNames()
           
 List<String> getAllTags()
           
 ApplicationInfo getApplicationInfo(String name)
          
 ArrayList<ApplicationInfo> getApplications()
           
 Map<String,ApplicationInfo> getApplicationsMap()
           
 LocationInfo getLocation(String locationName)
          
 GWTBounds getLocationBounds()
           
 int getLocationCount()
           
 Collection<LocationInfo> getLocations()
           
 Map<String,LocationInfo> getLocationsMap()
           
 List<LocationInfo> getMatchingLocations(LocationFilter filter)
           
 void removeApplication(String applicationName)
          removeApplication
 void updateApplication(ApplicationInfo applicationInfo)
          updateApplication
 void updateComplete()
          This action is used to respond to server-side events sent when all initial location updates are complete.
 void updateLocation(LocationInfo locationInfo)
          This action is used to respond to server-side events when a location is updated.
 void updateLocations(Collection<LocationInfo> locations)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataManager

public DataManager()
Method Detail

getLocationsMap

public Map<String,LocationInfo> getLocationsMap()

getApplicationsMap

public Map<String,ApplicationInfo> getApplicationsMap()

updateApplication

public void updateApplication(ApplicationInfo applicationInfo)
Description copied from interface: MapRemoteEventHandler

updateApplication

Specified by:
updateApplication in interface MapRemoteEventHandler
Parameters:
applicationInfo - a ApplicationInfo object.

updateLocation

public void updateLocation(LocationInfo locationInfo)
Description copied from interface: MapRemoteEventHandler
This action is used to respond to server-side events when a location is updated.

Specified by:
updateLocation in interface MapRemoteEventHandler
Parameters:
locationInfo - a LocationInfo object.

getAllApplicationNames

public TreeSet<String> getAllApplicationNames()

getAllLocationNames

public TreeSet<String> getAllLocationNames()

getAllTags

public List<String> getAllTags()

getApplicationInfo

public ApplicationInfo getApplicationInfo(String name)

Parameters:
name - TODO

getLocation

public LocationInfo getLocation(String locationName)

Parameters:
locationName - TODO

getLocationBounds

public GWTBounds getLocationBounds()

getLocations

public Collection<LocationInfo> getLocations()

getApplications

public ArrayList<ApplicationInfo> getApplications()

removeApplication

public void removeApplication(String applicationName)
Description copied from interface: MapRemoteEventHandler

removeApplication

Specified by:
removeApplication in interface MapRemoteEventHandler
Parameters:
applicationName - a String object.

getMatchingLocations

public List<LocationInfo> getMatchingLocations(LocationFilter filter)

updateLocations

public void updateLocations(Collection<LocationInfo> locations)
Specified by:
updateLocations in interface MapRemoteEventHandler

updateComplete

public void updateComplete()
Description copied from interface: MapRemoteEventHandler
This action is used to respond to server-side events sent when all initial location updates are complete.

Specified by:
updateComplete in interface MapRemoteEventHandler

getLocationCount

public int getLocationCount()


Copyright © 2011. All Rights Reserved.