de.willuhn.boot.Bootable
public class UpdateService
extends java.lang.Object
implements de.willuhn.boot.Bootable
Constructor | Description |
---|---|
UpdateService() |
Modifier and Type | Method | Description |
---|---|---|
java.lang.Class<de.willuhn.boot.Bootable>[] |
depends() |
|
java.util.TreeMap<java.lang.String,java.util.List<PluginData>> |
findUpdates(de.willuhn.util.ProgressMonitor monitor) |
Sucht nach Updates fuer die installierten Plugins und liefert sie zurueck.
|
boolean |
getUpdateCheck() |
Prueft, ob ueberhaupt regelmaessig nach Updates gesucht werden soll.
|
boolean |
getUpdateInstall() |
Prueft, ob Updates automatisch installiert werden sollen oder nur eine
Benachrichtigung erfolgen soll.
|
int |
getUpdateInterval() |
Liefert das Intervall (in Tagen), in denen nach Updates gesucht werden soll.
|
void |
init(de.willuhn.boot.BootLoader arg0,
de.willuhn.boot.Bootable arg1) |
|
void |
setUpdateCheck(boolean b) |
Legt fest, ob ueberhaupt regelmaessig nach Updates gesucht werden soll.
|
void |
setUpdateInstall(boolean b) |
Legt fest, ob Updates automatisch installiert werden sollen oder nur eine
Benachrichtigung erfolgen soll.
|
void |
setUpdateInterval(int days) |
Speichert das Intervall (in Tagen), in denen nach Updates gesucht werden soll.
|
void |
shutdown() |
public java.lang.Class<de.willuhn.boot.Bootable>[] depends()
depends
in interface de.willuhn.boot.Bootable
Bootable.depends()
public void init(de.willuhn.boot.BootLoader arg0, de.willuhn.boot.Bootable arg1) throws de.willuhn.boot.SkipServiceException
init
in interface de.willuhn.boot.Bootable
de.willuhn.boot.SkipServiceException
Bootable.init(de.willuhn.boot.BootLoader, de.willuhn.boot.Bootable)
public void shutdown()
shutdown
in interface de.willuhn.boot.Bootable
Bootable.shutdown()
public int getUpdateInterval()
public void setUpdateInterval(int days)
days
- Intervall in Tagen.public boolean getUpdateCheck()
public void setUpdateCheck(boolean b)
b
- true, wenn regelmaessig nach Updates gesucht werden soll.public boolean getUpdateInstall()
public void setUpdateInstall(boolean b)
b
- true, wenn automatisch installiert werden soll.public java.util.TreeMap<java.lang.String,java.util.List<PluginData>> findUpdates(de.willuhn.util.ProgressMonitor monitor) throws de.willuhn.util.ApplicationException
monitor
- optionale Angabe eines Progress-Monitor, in dem der Pruef-Fortschritt angezeigt wird.de.willuhn.util.ApplicationException