com.limegroup.gnutella.updates
Class UpdateManager
java.lang.Object
com.limegroup.gnutella.updates.UpdateManager
- public class UpdateManager
- extends java.lang.Object
Used for parsing the signed_update_file.xml and updating any values locally.
Has a singleton pattern.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SPECIAL_VERSION
public static final java.lang.String SPECIAL_VERSION
- See Also:
- Constant Field Values
instance
public static UpdateManager instance()
getVersion
public java.lang.String getVersion()
displayUpdate
public boolean displayUpdate()
- This method will be called just once from RouterService at startup
and it should prompt the user if there is an update message.
checkAndUpdate
public void checkAndUpdate(Connection connection)
isGreaterVersion
public static boolean isGreaterVersion(java.lang.String newVer,
java.lang.String oldVer)
- compares newVer with oldVer. and returns true iff newVer is a newer
version, false if neVer <= older.
treats @version@ as the highest version possible. The danger is that
we may try to get updates from all files that have @version@ in the
field. This is undesirable. So if we think the latest version is