Class RemoteReceiverModule
- java.lang.Object
-
- org.deeplearning4j.ui.module.remote.RemoteReceiverModule
-
-
Constructor Summary
Constructors Constructor Description RemoteReceiverModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getCallbackTypeIDs()Get the list of Type IDs that should be collected from the registeredStatsStorageinstances, and passed on to theUIModule.reportStorageEvents(Collection)method.List<I18NResource>getInternationalizationResources()List<Route>getRoutes()Get a list ofRouteobjects, that specify GET/SET etc methods, and how these should be handled.booleanisEnabled()voidonAttach(StatsStorage statsStorage)Notify the UI module that the givenStatsStorageinstance has been attached to the UIvoidonDetach(StatsStorage statsStorage)Notify the UI module that the givenStatsStorageinstance has been detached from the UIvoidreportStorageEvents(Collection<StatsStorageEvent> events)Whenever theUIServerreceives someStatsStorageEvents from one of the registeredStatsStorageinstances, it will filter these and pass on to the UI module those ones that match one of the Type IDs fromUIModule.getCallbackTypeIDs().
Typically, these will be batched together at least somewhat, rather than being reported individually.voidsetEnabled(boolean enabled)voidsetStatsStorage(StatsStorageRouter statsStorage)
-
-
-
Method Detail
-
setEnabled
public void setEnabled(boolean enabled)
-
isEnabled
public boolean isEnabled()
-
setStatsStorage
public void setStatsStorage(StatsStorageRouter statsStorage)
-
getCallbackTypeIDs
public List<String> getCallbackTypeIDs()
Description copied from interface:UIModuleGet the list of Type IDs that should be collected from the registeredStatsStorageinstances, and passed on to theUIModule.reportStorageEvents(Collection)method.- Specified by:
getCallbackTypeIDsin interfaceUIModule- Returns:
- List of relevant Type IDs
-
getRoutes
public List<Route> getRoutes()
Description copied from interface:UIModuleGet a list ofRouteobjects, that specify GET/SET etc methods, and how these should be handled.
-
reportStorageEvents
public void reportStorageEvents(Collection<StatsStorageEvent> events)
Description copied from interface:UIModuleWhenever theUIServerreceives someStatsStorageEvents from one of the registeredStatsStorageinstances, it will filter these and pass on to the UI module those ones that match one of the Type IDs fromUIModule.getCallbackTypeIDs().
Typically, these will be batched together at least somewhat, rather than being reported individually.- Specified by:
reportStorageEventsin interfaceUIModule- Parameters:
events- List of relevant events (type IDs match one of those fromUIModule.getCallbackTypeIDs()
-
onAttach
public void onAttach(StatsStorage statsStorage)
Description copied from interface:UIModuleNotify the UI module that the givenStatsStorageinstance has been attached to the UI
-
onDetach
public void onDetach(StatsStorage statsStorage)
Description copied from interface:UIModuleNotify the UI module that the givenStatsStorageinstance has been detached from the UI
-
getInternationalizationResources
public List<I18NResource> getInternationalizationResources()
- Specified by:
getInternationalizationResourcesin interfaceUIModule- Returns:
- List of internationalization resources
-
-