public class PurgeEvent
extends java.lang.Object
Deployment events are generic in structure and are keyed off of a set of state codes defined as constants in the event. Each time a deployment or deployment agent changes state, a deployment event is fired with relevant information.
DeploymentEvents also provide the ability to interrupt the deployment process. If a DeploymentEventListener receives a deployment event and needs to halt the deployment process, the listener can call interrupt() on the deployment event. Interrupted deployments are treated the same as if an error occurred during the deployment process.
PurgeEventListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static int |
END_STATE_FAILURE
This state means that a purge has ended in failure.
|
static int |
END_STATE_SUCCESS
This state means that a purge has ended successfully.
|
static int |
PRE_COMMIT_STATE
This state means that a purge is about to commits its work.
|
static int |
START_STATE |
Constructor and Description |
---|
PurgeEvent(java.sql.Timestamp pPurgeTime,
int pState) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInterruptCaller()
Who is interrupting this event, if it is interrupted.
|
java.lang.String |
getInterruptReason()
Why this event is being interrupted, if it is being interrupted.
|
java.sql.Timestamp |
getPurgeCutOff()
Time to be used as purge criteria
|
int |
getState()
|
boolean |
interrupt(java.lang.String pCaller,
java.lang.String pReason)
Call this method if you wish to adandon the current purge process.
|
boolean |
isInterrupted()
Whether or not this event has been interrupted.
|
public static int START_STATE
public static int PRE_COMMIT_STATE
public static int END_STATE_SUCCESS
public static int END_STATE_FAILURE
public static java.lang.String CLASS_VERSION
public boolean isInterrupted()
public java.lang.String getInterruptCaller()
public java.lang.String getInterruptReason()
public boolean interrupt(java.lang.String pCaller, java.lang.String pReason)
pCaller
- pReason
- public int getState()
public java.sql.Timestamp getPurgeCutOff()