|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.appengine.tools.info.UpdateCheck
public class UpdateCheck
UpdateCheck
is responsible for gathering version
information about the local SDK, uploading this information to
Google's servers in exchange for information about the latest
version available, and making both sets of information available
programmatically via UpdateCheckResults
and for direct user
consumption via a nag screen printed to a specified PrintStream
.
Constructor Summary | |
---|---|
UpdateCheck(java.lang.String server)
Create a new UpdateCheck . |
|
UpdateCheck(java.lang.String server,
java.io.File appDirectory)
Create a new UpdateCheck . |
Method Summary | |
---|---|
boolean |
allowedToCheckForUpdates()
Returns true if the user wants to check for updates even when we don't need to. |
UpdateCheckResults |
checkForUpdates()
Check to see if there is a new version of the SDK available and return a UpdateCheckResults summarizing the results. |
boolean |
maybePrintNagScreen(java.io.PrintStream out)
Check to see if there is a new version of the SDK available and, if sufficient time has passed since the last nag, print a nag screen to out . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UpdateCheck(java.lang.String server)
UpdateCheck
.
server
- The remote server to connect to when retrieving
remote version information.public UpdateCheck(java.lang.String server, java.io.File appDirectory)
UpdateCheck
.
server
- The remote server to connect to when retrieving
remote version information.appDirectory
- The application directory that you plan to
test or publish, or null
if no application directory is
available.Method Detail |
---|
public boolean allowedToCheckForUpdates()
public UpdateCheckResults checkForUpdates()
UpdateCheckResults
summarizing the results.
Callers that do not already communicate with Google explicitly
(e.g. the DevAppServer) should check allowedToCheckForUpdates
before calling this method.
public boolean maybePrintNagScreen(java.io.PrintStream out)
out
. This method always errs on the side of
not nagging the user if errors are encountered.
Callers that do not already communicate with Google explicitly
(e.g. the DevAppServer) should check allowedToCheckForUpdates
before calling this method.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |