App Engine Java SDK version 1.7.0
[gae.git] / java / src / main / com / google / appengine / tools / admin / UpdateListener.java
blobadb1230b23df1d80c26ac87a52e0343e36fafb5b
1 // Copyright 2008 Google Inc. All Rights Reserved.
3 package com.google.appengine.tools.admin;
5 /**
6 * A listener which receives events during a long running operation that
7 * involves interaction with the server. Implement
8 * this interface to be notified of progress during application update.
9 */
10 public interface UpdateListener {
12 /**
13 * Called each time some progress is made during the operation.
15 * @param event a not {@code null} event.
17 void onProgress(UpdateProgressEvent event);
19 /**
20 * Called if the operation has completed successfully.
22 * @param event a not {@code null} event.
24 void onSuccess(UpdateSuccessEvent event);
26 /**
27 * Called if the operation has failed.
29 * @param event a not {@code null} event.
31 void onFailure(UpdateFailureEvent event);