|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.resourcemanagement.support.server.managers.services.UpgradeListener
public abstract class UpgradeListener
To an upgrade process can be attached an handler to perform additional operations at the happening of events.
| Field Summary | |
|---|---|
protected static String |
LOG_PREFIX
|
| Constructor Summary | |
|---|---|
UpgradeListener()
|
|
| Method Summary | |
|---|---|
SWRepositoryUpgrader |
getUpgrader()
|
void |
onError(Exception failure)
Invoked in case of failure during update operation. |
void |
onError(String message,
Exception failure)
Invoked in case of failure during update operation. |
abstract void |
onFinish(String deployURL,
String reportFileName,
String distributionFileName)
In successful update, the resulting report files will be provided in input. |
abstract void |
onInit()
Method invoked at construction of listener. |
abstract void |
onProgress(double progress)
Invoked each time the update progresses. |
void |
onRelease()
Once finished the lock is released and this event raised. |
void |
onReserve()
Invoked once the lock has been acquired. |
void |
setUpgrader(SWRepositoryUpgrader upgrader)
Automatically invoked when the listener is attached to an upgrader. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String LOG_PREFIX
| Constructor Detail |
|---|
public UpgradeListener()
| Method Detail |
|---|
public abstract void onInit()
public final void setUpgrader(SWRepositoryUpgrader upgrader)
upgrader - public final SWRepositoryUpgrader getUpgrader()
public abstract void onProgress(double progress)
progress - public final void onError(Exception failure)
failure -
public final void onError(String message,
Exception failure)
failure -
public abstract void onFinish(String deployURL,
String reportFileName,
String distributionFileName)
public final void onReserve()
public void onRelease()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||