com.google.appengine.tools.admin
Class UpdateProgressEvent
- java.lang.Object
-
- com.google.appengine.tools.admin.UpdateProgressEvent
-
public class UpdateProgressEvent extends java.lang.ObjectReceived by anUpdateListenerperiodically during an operation to indicate progress.
-
-
Constructor Summary
Constructors Constructor and Description UpdateProgressEvent(java.lang.Thread updateThread, java.lang.String message, int percentageComplete)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcancel()Cancels the operation.java.lang.StringgetMessage()Retrieves the current status message.intgetPercentageComplete()Retrieves the current percentage complete.
-
-
-
Constructor Detail
-
UpdateProgressEvent
public UpdateProgressEvent(java.lang.Thread updateThread, java.lang.String message, int percentageComplete)
-
-
Method Detail
-
cancel
public void cancel()
Cancels the operation. Arollbackis implicitly issued.
-
getMessage
public java.lang.String getMessage()
Retrieves the current status message.- Returns:
- a not
nullstatus message.
-
getPercentageComplete
public int getPercentageComplete()
Retrieves the current percentage complete.- Returns:
- a number inclusively between 0 and 100.
-
-