public final class RundeckMonitorSwingTrayIcon extends RundeckMonitorTrayIcon
Modifier and Type | Field and Description |
---|---|
private Map<JMenuItem,JobExecutionInfo> |
failedMenuItems
MenuItem for lasts late/failed jobs.
|
private JPopupMenu |
popupMenu
Tray Icon menu.
|
aboutListener, configurationListener, desktop, exitListener, hiddenDialog, ICON_KO_SMALL, ICON_LATE_SMALL, IMAGE_OK, LONG_EXECUTION_MARKER, menuListener, NEW_FAILED_JOB_ALERT, NEW_LONG_EXECUTION_ALERT, newFailedProcess, newLateProcess, RUNDECK_JOB_EXECUTION_URL, RUNDECK_MONITOR_PROJECT_URL, rundeckMonitorConfiguration, rundeckMonitorState, tray, trayIcon
Constructor and Description |
---|
RundeckMonitorSwingTrayIcon(RundeckMonitorConfiguration rundeckMonitorConfigurationArg,
RundeckMonitorState rundeckMonitorStateArg)
Initialize the tray icon for the rundeckMonitor if the OS is compatible with it.
|
Modifier and Type | Method and Description |
---|---|
void |
reloadConfiguration()
Called when configuration is reloaded, clear all menu items and reinitialize action listeners.
|
void |
updateExecutionIdsList(List<JobExecutionInfo> listJobExecutionInfo)
Update the list of failed/late jobs.
|
disposeTrayIcon, openBrowser, updateTrayIcon
private final JPopupMenu popupMenu
private final Map<JMenuItem,JobExecutionInfo> failedMenuItems
public RundeckMonitorSwingTrayIcon(RundeckMonitorConfiguration rundeckMonitorConfigurationArg, RundeckMonitorState rundeckMonitorStateArg)
rundeckMonitorConfigurationArg
- loaded configurationrundeckMonitorStateArg
- state of the rundeck monitorpublic void updateExecutionIdsList(List<JobExecutionInfo> listJobExecutionInfo)
updateExecutionIdsList
in class RundeckMonitorTrayIcon
listJobExecutionInfo
- list of failed and late jobs informationspublic void reloadConfiguration()
reloadConfiguration
in class RundeckMonitorTrayIcon
Copyright © 2013–2015. All rights reserved.