public abstract class RundeckMonitorTrayIcon extends Object
Modifier and Type | Field and Description |
---|---|
(package private) ActionListener |
aboutListener
About menu listener.
|
(package private) ActionListener |
configurationListener
Edit configuration listener.
|
(package private) Desktop |
desktop
Desktop to get the default browser.
|
(package private) ActionListener |
exitListener
Exit menu listener.
|
(package private) JDialog |
hiddenDialog
Dialog to auto-hade the popup menu.
|
(package private) static Icon |
ICON_KO_SMALL |
(package private) static Icon |
ICON_LATE_SMALL |
private static Image |
IMAGE_DISCONNECTED
Disconnected from rundeck image.
|
private static Image |
IMAGE_KO
KO image when a job has failed.
|
private static Image |
IMAGE_KO_LATE
KO image when a job has failed and a job seems to be blocked.
|
private static Image |
IMAGE_LATE
WARNING image when a job seems to be blocked.
|
(package private) static Image |
IMAGE_OK
OK image.
|
private static org.slf4j.ext.XLogger |
LOG
SLF4J XLogger.
|
(package private) static String |
LONG_EXECUTION_MARKER
Marker on the job when it is too long.
|
(package private) ActionListener |
menuListener
Menu failed item listener.
|
(package private) static String |
NEW_FAILED_JOB_ALERT
Alert message when a new failed job is detected.
|
(package private) static String |
NEW_LONG_EXECUTION_ALERT
Alert message when a new long execution is detected.
|
(package private) Set<Long> |
newFailedProcess
Already known failed process.
|
(package private) Set<Long> |
newLateProcess
Already known late/long process.
|
(package private) static String |
RUNDECK_JOB_EXECUTION_URL
URL to access job execution details.
|
(package private) static String |
RUNDECK_MONITOR_PROJECT_URL
GitHub Project URL.
|
(package private) RundeckMonitorConfiguration |
rundeckMonitorConfiguration
Date format to use for printing the Job start date.
|
(package private) RundeckMonitorState |
rundeckMonitorState
Current state of the trayIcon.
|
(package private) SystemTray |
tray
System tray.
|
(package private) TrayIcon |
trayIcon
Task bar tray icon.
|
Constructor and Description |
---|
RundeckMonitorTrayIcon(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 |
disposeTrayIcon()
remove the RundeckMonitor icon from the system tray.
|
(package private) void |
openBrowser(JobExecutionInfo jobExecutionInfo)
Open a browser page using the default browser to a job execution.
|
void |
reloadConfiguration()
Called when configuration is reloaded, clear all known process and reinitialize the tooltip.
|
abstract void |
updateExecutionIdsList(List<JobExecutionInfo> listJobExecutionInfo)
Update the list of failed/late jobs.
|
void |
updateTrayIcon()
Update the image of the tray icon.
|
private static final org.slf4j.ext.XLogger LOG
static final String RUNDECK_JOB_EXECUTION_URL
static final String RUNDECK_MONITOR_PROJECT_URL
static final String LONG_EXECUTION_MARKER
static final String NEW_FAILED_JOB_ALERT
static final String NEW_LONG_EXECUTION_ALERT
static final Image IMAGE_OK
private static final Image IMAGE_LATE
static final Icon ICON_LATE_SMALL
private static final Image IMAGE_KO
static final Icon ICON_KO_SMALL
private static final Image IMAGE_KO_LATE
private static final Image IMAGE_DISCONNECTED
final SystemTray tray
TrayIcon trayIcon
final Desktop desktop
ActionListener menuListener
final ActionListener configurationListener
final ActionListener aboutListener
final ActionListener exitListener
JDialog hiddenDialog
final RundeckMonitorConfiguration rundeckMonitorConfiguration
final RundeckMonitorState rundeckMonitorState
public RundeckMonitorTrayIcon(RundeckMonitorConfiguration rundeckMonitorConfigurationArg, RundeckMonitorState rundeckMonitorStateArg)
rundeckMonitorConfigurationArg
- loaded configurationrundeckMonitorStateArg
- state of the rundeck monitorpublic abstract void updateExecutionIdsList(List<JobExecutionInfo> listJobExecutionInfo)
listJobExecutionInfo
- list of failed and late jobs informationspublic final void updateTrayIcon()
public void reloadConfiguration()
public final void disposeTrayIcon()
final void openBrowser(JobExecutionInfo jobExecutionInfo)
jobExecutionInfo
- the job exeuction to openCopyright © 2013–2015. All rights reserved.