| Constructor and Description |
|---|
DefaultModule() |
| 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 StatsStorageEvents 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()
UIModuleStatsStorage instances, and
passed on to the UIModule.reportStorageEvents(Collection) method.getCallbackTypeIDs in interface UIModulepublic java.util.List<Route> getRoutes()
UIModuleRoute objects, that specify GET/SET etc methods, and how these should be handled.public void reportStorageEvents(java.util.Collection<StatsStorageEvent> events)
UIModuleUIServer receives some StatsStorageEvents 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 UIModuleevents - List of relevant events (type IDs match one of those from UIModule.getCallbackTypeIDs()public void onAttach(StatsStorage statsStorage)
UIModuleStatsStorage instance has been attached to the UIpublic void onDetach(StatsStorage statsStorage)
UIModuleStatsStorage instance has been detached from the UI