|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.alfresco.bm.event.Event
public class Event
An event that is persisted and retrieved for processing.
| Field Summary | |
|---|---|
static String |
EVENT_BEAN_PREFIX
|
static String |
EVENT_NAME_START
|
static String |
EVENT_NAME_STOP
|
static String |
FIELD_DATA_OWNER
|
static String |
FIELD_ID
|
static String |
FIELD_LOCK_OWNER
|
static String |
FIELD_LOCK_TIME
|
static String |
FIELD_NAME
|
static String |
FIELD_QUEUE_TIME
|
static String |
FIELD_SCHEDULED_TIME
|
static String |
INDEX_NAME
|
static String |
INDEX_NEXT_AVAILABLE_EVENT
|
| Constructor Summary | |
|---|---|
Event(String name,
long scheduledTime,
Object data)
Construct a scheduled event with some data. |
|
Event(String name,
long scheduledTime,
Object data,
boolean forceInMemoryDataStorage)
Construct a scheduled event with some data, optionally forcing the data to be stored in memory. |
|
| Method Summary | |
|---|---|
static void |
checkIndexes(org.springframework.data.mongodb.core.MongoTemplate mongo,
String collection)
Ensure that the MongoDB collection has the required indexes for events. |
void |
cleanData()
Ensure that any locally-stored data is cleaned up |
boolean |
equals(Object obj)
|
String |
getDataKey()
|
Object |
getDataObject()
Client-safe method to retrieve data based on in-memory or persisted storage |
String |
getDataOwner()
|
String |
getId()
|
String |
getLockOwner()
|
long |
getLockTime()
|
String |
getName()
|
long |
getQueueTime()
|
long |
getScheduledTime()
|
int |
hashCode()
|
void |
setDataOwner(String dataOwner)
|
void |
setId(String id)
|
void |
setLockOwner(String lockOwner)
|
void |
setLockTime(long lockTime)
|
void |
setName(String name)
|
void |
setQueueTime(long queueTime)
|
void |
setScheduledTime(long scheduledTime)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String FIELD_ID
public static final String FIELD_NAME
public static final String FIELD_SCHEDULED_TIME
public static final String FIELD_QUEUE_TIME
public static final String FIELD_LOCK_OWNER
public static final String FIELD_LOCK_TIME
public static final String FIELD_DATA_OWNER
public static final String INDEX_NEXT_AVAILABLE_EVENT
public static final String INDEX_NAME
public static final String EVENT_NAME_START
public static final String EVENT_NAME_STOP
public static final String EVENT_BEAN_PREFIX
| Constructor Detail |
|---|
public Event(String name,
long scheduledTime,
Object data)
Serializable,
will be persisted directly with this event.
Events that keep their data in memory cannot be executed by any other
running service and will therefore be lost if the server goes down.
name - the event namescheduledTime - when the event should be processeddata - the event data
public Event(String name,
long scheduledTime,
Object data,
boolean forceInMemoryDataStorage)
Serializable, then the data will be stored in local memory and a unique
look-up key will be persisted.
Events that keep their data in memory cannot be executed by any other
running service and will therefore be lost if the server goes down.
name - the event namescheduledTime - when the event should be processeddata - the event data| Method Detail |
|---|
public static void checkIndexes(org.springframework.data.mongodb.core.MongoTemplate mongo,
String collection)
mongo - connection to MongoDBcollection - name of DB collection containing eventspublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String getId()
public void setId(String id)
public String getName()
public void setName(String name)
public long getScheduledTime()
public void setScheduledTime(long scheduledTime)
public long getQueueTime()
public void setQueueTime(long queueTime)
public String getLockOwner()
public void setLockOwner(String lockOwner)
public long getLockTime()
public void setLockTime(long lockTime)
public Object getDataObject()
public String getDataKey()
public void cleanData()
public String getDataOwner()
public void setDataOwner(String dataOwner)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||