Constructor and Description |
---|
HistogramModule() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getCallbackTypeIDs()
Get the list of Type IDs that should be collected from the registered
StatsStorage instances, and
passed on to the UIModule.reportStorageEvents(Collection) method. |
java.util.List<Route> |
getRoutes()
Get a list of
Route objects, that specify GET/SET etc methods, and how these should be handled. |
void |
onAttach(StatsStorage statsStorage)
Notify the UI module that the given
StatsStorage instance has been attached to the UI |
void |
onDetach(StatsStorage statsStorage)
Notify the UI module that the given
StatsStorage instance has been detached from the UI |
void |
reportStorageEvents(java.util.Collection<StatsStorageEvent> events)
Whenever the
UIServer receives some StatsStorageEvent s from one of the registered StatsStorage
instances, it will filter these and pass on to the UI module those ones that match one of the Type IDs from
UIModule.getCallbackTypeIDs() .Typically, these will be batched together at least somewhat, rather than being reported individually. |
public java.util.List<java.lang.String> getCallbackTypeIDs()
UIModule
StatsStorage
instances, and
passed on to the UIModule.reportStorageEvents(Collection)
method.getCallbackTypeIDs
in interface UIModule
public java.util.List<Route> getRoutes()
UIModule
Route
objects, that specify GET/SET etc methods, and how these should be handled.public void reportStorageEvents(java.util.Collection<StatsStorageEvent> events)
UIModule
UIServer
receives some StatsStorageEvent
s from one of the registered StatsStorage
instances, it will filter these and pass on to the UI module those ones that match one of the Type IDs from
UIModule.getCallbackTypeIDs()
.reportStorageEvents
in interface UIModule
events
- List of relevant events (type IDs match one of those from UIModule.getCallbackTypeIDs()
public void onAttach(StatsStorage statsStorage)
UIModule
StatsStorage
instance has been attached to the UIpublic void onDetach(StatsStorage statsStorage)
UIModule
StatsStorage
instance has been detached from the UI