|
TrueUpdate Manager Specification 0.1.8 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||
java.lang.Objectjava.lang.Enum<UpdateMessage.Type>
net.java.trueupdate.manager.spec.UpdateMessage.Type
public static enum UpdateMessage.Type
The update message type. The communication protocol works as follows:
SUBSCRIPTION_REQUEST in
order to subscribe to the list of recipients for update announcements
for the application.
SUBSCRIPTION_SUCCESS_RESPONSE or a
SUBSCRIPTION_FAILURE_RESPONSE.
UPDATE_NOTICE for every update.
INSTALLATION_REQUEST.
INSTALLATION_SUCCESS_RESPONSE or an
INSTALLATION_FAILURE_RESPONSE.
UNSUBSCRIPTION_REQUEST or
UNSUBSCRIPTION_NOTICE in order to unsubscribe from the list of
recipients for update announcements for the application.
UNSUBSCRIPTION_REQUEST, then
the update manager needs to send an
UNSUBSCRIPTION_SUCCESS_RESPONSE or an
UNSUBSCRIPTION_FAILURE_RESPONSE.
SUBSCRIPTION_NOTICE for every subscription before shutting down
in order to persist them.
Upon startup, the manager then needs to process the messages without
responding to the update agents.
Note that messages may get lost or duplicated and no timeout is defined.
| Method Summary | |
|---|---|
UpdateMessage.Type |
failureResponse()
Returns the corresponding *_FAILURE_RESPONSE if and only if
this is a *_REQUEST type. |
abstract boolean |
forManager()
Returns true if and only if messages of this type should be
processed by an update manager. |
UpdateMessage.Type |
successResponse()
Returns the corresponding *_SUCCESS_RESPONSE if and only if
this is a *_REQUEST type. |
static UpdateMessage.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static UpdateMessage.Type[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final UpdateMessage.Type INSTALLATION_FAILURE_RESPONSE
public static final UpdateMessage.Type INSTALLATION_REQUEST
public static final UpdateMessage.Type INSTALLATION_SUCCESS_RESPONSE
public static final UpdateMessage.Type SUBSCRIPTION_FAILURE_RESPONSE
public static final UpdateMessage.Type SUBSCRIPTION_NOTICE
public static final UpdateMessage.Type SUBSCRIPTION_REQUEST
public static final UpdateMessage.Type SUBSCRIPTION_SUCCESS_RESPONSE
public static final UpdateMessage.Type UNSUBSCRIPTION_FAILURE_RESPONSE
public static final UpdateMessage.Type UNSUBSCRIPTION_NOTICE
public static final UpdateMessage.Type UNSUBSCRIPTION_REQUEST
public static final UpdateMessage.Type UNSUBSCRIPTION_SUCCESS_RESPONSE
public static final UpdateMessage.Type UPDATE_NOTICE
| Method Detail |
|---|
public UpdateMessage.Type failureResponse()
*_FAILURE_RESPONSE if and only if
this is a *_REQUEST type.
Otherwise throws an UnsupportedOperationException.
public abstract boolean forManager()
true if and only if messages of this type should be
processed by an update manager.
public UpdateMessage.Type successResponse()
*_SUCCESS_RESPONSE if and only if
this is a *_REQUEST type.
Otherwise throws an UnsupportedOperationException.
public static UpdateMessage.Type valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static UpdateMessage.Type[] values()
for (UpdateMessage.Type c : UpdateMessage.Type.values()) System.out.println(c);
|
TrueUpdate Manager Specification 0.1.8 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||